How a failed call is shaped, which code to branch on, and when to retry.
Read the error body when a call fails. The HTTP status is the class of failure. The code is the specific case your program should branch on. Show detail to the person who can fix the request, and keep request_id if you contact support.
Failed calls return application/problem+json and a Problem. A typical body has type, title, status, code, detail, and request_id. Field failures also include errors, with a field and a code on each item.
A sane inbound X-Request-Id is echoed. Otherwise the response creates one. Send the request_id from the body when you ask for help. Do not send the API key.
The full list is on the error codes page. Each code there comes from Problem.code or from a response example in the OpenAPI document. A reference page links each error response to that code.
What to do
400invalid_json means the body is not JSON. Fix the body. Do not retry the same bytes.
401unauthenticated means the key is missing or not recognized. Fix the header. Do not retry in a loop.
404order_not_found means this key cannot see that order. Check the id and the key.
409duplicate_order means external_reference is already used for that key and account. The body includes existing_order_id. Use that order. Do not create another.
409idempotency_conflict means the same Idempotency-Key was sent with a different body. Use a new key if the body was supposed to change.
409request_in_progress means the first create with that key is still running. Wait, then retry the same body and the same key.
422validation_failed means a field failed. Read errors and correct the request.
429rate_limited means you should wait. Honor Retry-After. A status refresh sooner than 5 minutes for the same order is one cause. The document also names a per-key limit and does not publish a requests-per-minute number.
501not_implemented means entry_modeapplicant was sent. Send full, which is the default.
503 means the service could not finish. Retry only when Retry-After is present.
Do not retry 401, 403, 404, or 422 until the request itself changes. For a create, a retry must reuse the idempotency key and the raw body. See Idempotency.
Guides · Errors and retries · How a failed call is shaped, which code to branch on, and when to retry. · Read the error body when a call fails. The HTTP status is the class of failure. The code is the specific case your program should branch on. Show detail to the person who can fix the request, and keep request_id if you contact support. · Failed calls return application/problem+json and a Problem. A typical body has type, title, status, code, detail, and request_id. Field failures also include errors, with a field and a code on each item. · Copy · { "type": "https://api.backchecked.app/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "detail": "One or more fields failed validation.", "request_id": "req_example12345678", "errors": [ { "field": "applicant.dob", "code": "required" }] } · A sane inbound X-Request-Id is echoed. Otherwise the response creates one. Send the request_id from the body when you ask for help. Do not send the API key. · The full list is on the error codes page. Each code there comes from Problem.code or from a response example in the OpenAPI document. A reference page links each error response to that code. · What to do · 400 invalid_json means the body is not JSON. Fix the body. Do not retry the same bytes. · 401 unauthenticated means the key is missing or not recognized. Fix the header. Do not retry in a loop. · 403 forbidden means the key lacks the scope. account_not_allowed means client_account_id is not on the key. · 404 order_not_found means this key cannot see that order. Check the id and the key. · 409 duplicate_order means external_reference is already used for that key and account. The body includes existing_order_id. Use that order. Do not create another. · 409 idempotency_conflict means the same Idempotency-Key was sent with a different body. Use a new key if the body was supposed to change. · 409 request_in_progress means the first create with that key is still running. Wait, then retry the same body and the same key. · 422 validation_failed means a field failed. Read errors and correct the request. · 429 rate_limited means you should wait. Honor Retry-After. A status refresh sooner than 5 minutes for the same order is one cause. The document also names a per-key limit and does not publish a requests-per-minute number. · 501 not_implemented means entry_mode applicant was sent. Send full, which is the default. · 503 means the service could not finish. Retry only when Retry-After is present. · Do not retry 401, 403, 404, or 422 until the request itself changes. For a create, a retry must reuse the idempotency key and the raw body. See Idempotency.