Skip to main content
When the API refuses a request it returns an HTTP status and a JSON body with a machine-readable code. This page covers the error body and every error code the endpoints in the API reference return.

Error body

A 429 response, and a 503 response for a connection that is being updated, carry a Retry-After header with the seconds to wait. A price request that is accepted can still leave individual lines unpriced. Those lines come back in a 200 response with their own state and reason. See Price requests.

Request errors

Access errors

Pricing and outcome errors

Data errors

These come from the endpoints that send catalog items, customers and documents. See Sending data.

Retrying

Retry 429, 503 and 409 with idempotency_request_in_progress after a wait. Do not retry other 4xx responses unchanged; fix the request first. Send writes with the same Idempotency-Key on every retry.