Errors
One error format, status codes and the most common error codes.
{
"error": {
"code": "VALIDATION_FAILED",
"message": "shippingCountry: invalid format",
"requestId": "7c1e9a52-…"
}
}Rely on code; message text may change. Retry 5xx and 429; fix the request first for 4xx.
| HTTP | Meaning |
|---|---|
| 400 | Malformed request: key in query string, missing Idempotency-Key |
| 401 | Missing or invalid key |
| 402 | Store subscription inactive: writes are blocked, reads work |
| 403 | Insufficient scope, plan without API, forbidden Origin |
| 404 | Not found, or belongs to another store |
| 409 | Conflict: a request with this Idempotency-Key is still running |
| 422 | Validation or business-rule error |
| 429 | Rate limit exceeded; see Retry-After |
| 5xx | Server error: retry with backoff and report the requestId |
Business-rule codes
| Code | HTTP | When |
|---|---|---|
VALIDATION_FAILED | 422 | Body or parameters failed validation |
PLAN_FEATURE_LOCKED | 403 | The store plan has no API access |
RATE_LIMITED | 429 | Rate limit exceeded |
IDEMPOTENCY_KEY_REQUIRED | 400 | No Idempotency-Key |
IDEMPOTENCY_KEY_REUSED | 422 | Same key with a different body |
IDEMPOTENCY_IN_PROGRESS | 409 | The first request with this key is still running |
ORDER_CURRENCY_MISMATCH | 422 | Order currency differs from the store currency |
EXTERNAL_PAID_AT_REQUIRED | 422 | Paid order without paidAt |
EXTERNAL_FISCALIZATION_REQUIRED | 422 | Paid order without fiscalization |
EXTERNAL_PAYMENT_METHOD_UNSETTLEABLE | 422 | Card, installments or COD marked paid, which cannot be settled |
PAYMENT_METHOD_NOT_AVAILABLE_ABROAD | 400 | COD or cash on pickup for a foreign order |
SHIPPING_COUNTRY_UNAVAILABLE | 400 | Country is not in the international shipping zones |
WEBHOOK_URL_INVALID / WEBHOOK_URL_PRIVATE | 422 | Webhook URL is not https or not reachable from the internet |