When a call fails, the body is a problem document. Match the code field. The HTTP status is in the same body, and request_id is the id to quote if you ask for help. Retry only the cases in Errors and retries.
Errors · Error codes · When a call fails, the body is a problem document. Match the code field. The HTTP status is in the same body, and request_id is the id to quote if you ask for help. Retry only the cases in Errors and retries. · 400 invalid_json · Invalid JSON. The request body is not valid JSON. · bad_request · Listed on Problem.code. · 401 unauthenticated · Unauthenticated. Missing or invalid API key. · 403 forbidden · Forbidden. This key does not have the orders:write scope. · 403 account_not_allowed · Account not allowed. client_account_id is not allowed for this key. · 404 order_not_found · Order not found. No order with this id is visible to this key. · not_found · 422 validation_failed · Validation failed. Validation failed for applicant.last_name. · package_not_found · 413 document_too_large · Document too large. A document is larger than 4194304 bytes. · applicant_login_exists · 409 duplicate_order · Duplicate order. An order with this external_reference already exists for this account. · 409 idempotency_conflict · Idempotency conflict. This Idempotency-Key was already used with a different request body. · 409 request_in_progress · Request in progress. A request with this Idempotency-Key is still in progress. · 429 rate_limited · Too many requests. Status was refreshed less than 5 minutes ago. · 501 not_implemented · Not implemented. Send entry_mode full. entry_mode applicant is not supported. · 503 service_unavailable · Service unavailable. The service is busy. Retry after the indicated delay. · 504 request_timeout · Request timed out. The request timed out. · internal_error