Skip to main content
The End Close API uses standard HTTP status codes: 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
string
required
What went wrong, written for a developer. Log it, but don’t parse it: the wording can change.
A few errors add context next to 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/bulk validates and inserts each record on its own. Read per-record failures from GET /bulk_requests/{id}.
  • PUT /reconciliation_exceptions/{id}/findings and PUT /reconciliations/{reconciliation_id}/data_streams/{data_stream_id}/findings return 200 with an upserted count and an errors list for the findings that weren’t written.
Check those fields as well as the status code.

When to retry

Retrying a write without an Idempotency-Key can apply it twice. See Idempotency for the endpoints that accept one.

FAQ

API keys are scoped to one environment. The app may be showing Sandbox while your request uses the Production key, or the reverse.
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.
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.

Idempotency

Retry writes without applying them twice.

Authentication

Send your API key with each request.