Skip to content

Errors

For developers

Errors return a non-2xx status and a JSON body with a human-readable error and a stable machine-readable code:

{
"error": "A card holder with external ID \"S1024\" already exists.",
"code": "conflict"
}

Branch on code, not on the message text, which may be reworded.

Status code Meaning What to do
400 bad_request Body is not valid JSON, a required parameter is missing, or there is nothing to update Fix the request
400 validation_failed A cardholder’s validFrom is after their expiryDate Fix one of the two dates
401 unauthorized Missing, malformed, wrong, revoked or expired key, or a call from outside the organisation’s IP allowlist Check the key, and the address you call from
403 forbidden The key lacks a required scope Add the scope or use another key
404 not_found No such record in your organisation, or no such endpoint Check the ID and the path
409 conflict A duplicate external ID, a status change that is not allowed, or the same request still in progress Resolve the conflict. For a request still in progress, retry shortly
409 external_id_conflict The record-ID upsert sent an ID number that belongs to a different person Correct the ID number in your system. CardOffice never merges two people
410 record_disposed The record-ID upsert sent a person whose record was de-identified under the organisation’s retention policy or on a privacy request Remove the person from your feed. The record is kept only as card numbers and dates and is never re-created
409 upload_incomplete A photo was finalised, but the file never arrived in storage. The upload is discarded Request a new upload link and upload again. See Photos
412 precondition_failed A prerequisite is missing, for example no approved photo or no card template Satisfy the prerequisite
413 payload_too_large The request body is over 1 MB, or over 4 KB for identify Send less in one request
413 quota_exceeded A photo is over 15 MB, or the organisation has reached its photo storage allowance Send a smaller file, or contact us about the allowance
422 validation_failed A field or query parameter failed validation. error names it and the first problem, such as holderType: Invalid option: expected one of … Fix that field
429 rate_limited Too many requests from your key, or too many failing keys from your address Wait Retry-After seconds
500 internal Something went wrong on our side Retry with backoff. Contact support if it persists

Retry a 429 after the Retry-After interval, and a 500 or a network failure with exponential backoff. Do not retry other 4xx responses, apart from a 409 for a request still in progress: the same request will fail the same way.

Error messages never contain another organisation’s data, and an authentication failure never says why it failed. See Authentication.

© 2026 Secure ID Ltd. All rights reserved.Documentation licence and terms