2xx for success, 4xx when something about the request needs to change, and 5xx when End Close failed to handle it. Client errors return a JSON body with a human-readable message.
Error response body
422 Unprocessable Entity
What went wrong, written for a developer. Log it, but don’t parse it: the wording can change.
message. A 409 from POST /reconciliations/{id}/run includes run, the run already in progress, so you can poll it instead of starting another.
Status codes
Each endpoint page in the API reference lists the statuses it can return and why.
An ID from your Sandbox environment returns
404 when you call the API with your Production key, and the reverse. Check which key you’re using before assuming a resource is missing.Partial failures
Some endpoints succeed overall while individual items fail:POST /records/bulkvalidates and inserts each record on its own. Read per-record failures fromGET /bulk_requests/{id}.PUT /reconciliation_exceptions/{id}/findingsandPUT /reconciliations/{reconciliation_id}/data_streams/{data_stream_id}/findingsreturn200with anupsertedcount and anerrorslist for the findings that weren’t written.
When to retry
Retrying a write without an
Idempotency-Key can apply it twice. See Idempotency for the endpoints that accept one.
FAQ
Why do I get 404 for an ID I can see in the app?
Why do I get 404 for an ID I can see in the app?
API keys are scoped to one environment. The app may be showing Sandbox while your request uses the Production key, or the reverse.
Why does GET /records return 422?
Why does GET /records return 422?
GET /records needs at least one of data_stream_key, reconciliation_match_id, reconciliation_id, external_id or import_id. It also returns 422 for an invalid status, created_after or created_before.Why can't I update or delete a record?
Why can't I update or delete a record?
A record that’s already reconciled, or that came from a file import or bulk request, can’t be changed and returns
409. Records you created one at a time with POST /records can be changed until they’re reconciled.Related
Idempotency
Retry writes without applying them twice.
Authentication
Send your API key with each request.