2xx means success, 4xx means the request was rejected, 5xx means something failed on the server.
Response Envelope
All responses — success and error — follow a consistent envelope. Success:error_code field mirrors the HTTP status code. For validation failures, data.errors contains the individual field messages:
Status Codes
| Status | Meaning |
|---|---|
200 | Success |
400 | Bad request — invalid parameters or missing required fields |
401 | Unauthorized — API key or JWT is missing or invalid |
403 | Forbidden — key is valid but lacks permission, or the resource is not accessible |
404 | Resource not found |
429 | Rate limit exceeded |
500 | Internal server error — contact support if it persists |
Rate Limit Errors
When rate limited, thedata field includes how long to wait:
Customer Suspension
If acustomer_key belongs to a suspended customer, the request returns 403: