Error Format
All errors return a consistent JSON body:errors is an object mapping field names to error codes. For single-message errors, only message is present.
HTTP Status Codes
| Code | Meaning | Common Causes |
|---|---|---|
200 | OK | Successful GET / PATCH |
201 | Created | Successful POST |
204 | No Content | Successful DELETE |
400 | Bad Request | Missing required fields, invalid values |
401 | Unauthorized | Missing, invalid, expired, or revoked API key |
403 | Forbidden | Valid key, but insufficient permissions |
404 | Not Found | Resource doesn’t exist or is not in your scope |
422 | Unprocessable Entity | Business rule violation (e.g., order can’t be cancelled in current status) |
429 | Too Many Requests | Rate limit exceeded — see Rate Limits |
500 | Internal Server Error | Unexpected server error |
Common Error Examples
Invalid API key
Expired API key
Rate limit exceeded
Validation error
Resource not found
Idempotency
The Partner API does not currently support idempotency keys. To avoid duplicate orders, check for existing orders before creating a new one usingGET /partner/orders.