error.type follows from the HTTP status. error.code is stable and meant for your code. error.message is for people and can change. error.param names the parameter when the error is about one, and is null otherwise. error.doc_url opens the code on this page. Quote request_id (also the X-Request-ID header) when you ask us about a request.
Types
Codes any route can answer
By type, with the HTTP status of each.Invalid request
request_invalid
Status400. The request is not valid; the message says why.
parameter_invalid
Status400. A parameter has a value the route does not accept; param names it.
parameter_missing
Status400. A required parameter is absent; param names it.
parameter_unknown
Status400. The route does not take this query parameter; param names it.
body_invalid
Status400. The body is not the JSON object the route expects.
cursor_invalid
Status400. The cursor is malformed, or was issued for another route or other filters.
idempotency_key_invalid
Status400. Idempotency-Key must be 1 to 128 visible ASCII characters.
not_found
Status404. No such resource in your organization.
route_not_found
Status404. No such route.
method_not_allowed
Status405. The route does not take this method; Allow lists the ones it takes.
conflict
Status409. The request conflicts with the resource’s current state.
idempotency_key_in_use
Status409. A request with this Idempotency-Key is still running; retry after Retry-After.
payload_too_large
Status413. The body, or the data the request would read, is larger than the route allows.
unsupported_media_type
Status415. The Content-Type is not one the route reads.
unprocessable
Status422. The request is well formed but cannot be carried out as sent.
idempotency_key_reused
Status422. This Idempotency-Key was already used with a different request.
Authentication
credentials_missing
Status401. No Authorization header. Send Authorization: Bearer <key>.
api_key_invalid
Status401. The API key is unknown or inactive.
api_key_expired
Status401. The API key is past its expires_at. Mint or rotate a key.
unauthenticated
Status401. The credentials were not accepted.
Permission
scope_missing
Status403. The API key lacks the scope this route needs.
module_not_enabled
Status403. The organization does not have the module this route belongs to.
org_suspended
Status403. The organization is suspended.
forbidden
Status403. The caller may not do this.
Limits
rate_limit_exceeded
Status429. Too many requests in the current window; retry after Retry-After.
daily_quota_exceeded
Status429. The API key’s daily quota is used up; it resets at 00:00 UTC (Retry-After).
model_budget_exceeded
Status429. The organization’s daily budget for routes that use AI is used up; it resets at 00:00 UTC.
Our side
internal_error
Status500. Something failed on our side. Quote request_id.
upstream_error
Status502. A service this route depends on failed.
service_unavailable
Status503. The route is not available right now.
timeout
Status504. The route did not finish in time.
Codes of one area
A route answers one of these for a failure only it has. The HTTP status anderror.type still say what kind of failure it is.
Orders and approvals
compliance_blocked
The current compliance verdict blocks this cross-border order.compliance_unknown
There is no usable compliance verdict for this order, and your organization holds back an order whose verdict is unknown.compliance_withheld
Status409. The movement was not proposed: the compliance check every proposed movement passes held it back. The answer’s compliance field says why.
key_without_creator
The API key has no creator on record, so it cannot act as a person. Key management, starting a sync and decisions on orders answer this (403).key_creator_left
The API key’s creator is no longer a member of the organization.not_org_admin
The caller (for a key, its creator) must be an organization admin.above_maximum
The quantity is above the most the recommendation allows.below_minimum_order
The quantity is below the supplier’s minimum order.not_a_multiple
The quantity is not a multiple of the order’s pack size.invalid_quantity
The quantity must be above 0, with at most three decimals.invalid_reason
A changed quantity needs a reason of 3 to 500 characters.not_editable
The quantity of this kind of recommendation or order cannot be changed.Connections
sync_in_progress
A sync of this connection is already running.pull_not_enabled
This connection does not pull from the source system.disconnected
The connection is disconnected.rate_limited
Too many of this action in the current window. Starting a sync of a connection answers this (429), withRetry-After. The per-minute limit of every route is rate_limit_exceeded.
Compliance and recalls
attribute_not_found
Status404. The item has no such attribute to confirm.
certificate_not_found
Status404. No such certificate in your organization.
invalid_stored_value
Status409. The stored value is not valid; set it again.
value_changed
Status409. The stored value differs from the one you sent; read it again.
concurrent_change
Status409. The record changed while the request ran; read it again.
too_many_certificates
Status409. The item already holds the most active certificates it can.
duplicate_certificate
Status409. The item already has an active certificate of this kind and number.
too_many_entries
Status400. The request holds more entries than one call may carry.
body_too_large
The body is larger than the route allows. Compliance checks answer this (413). Other routes answerpayload_too_large.
key_has_no_creator
Status403. The API key has no creator on record, so it cannot change data as a person.
no_person
Status403. The change needs a signed-in user or an API key with a creator.
not_a_member
Status403. The caller (for a key, its creator) is not a member of the organization.
bad_request
Status400. The body is not what the route expects.
not_configured
Status503. The feature is not available.
daily_cap
Status429. The organization has used today’s allowance of this action; it resets at 00:00 UTC. Retry-After says when the allowance resets.
model_timeout
Status502. The answer did not arrive in time; nothing was stored.
model_failed
Status502. No answer could be produced; nothing was stored.
invalid_output
Status502. The answer did not fit the expected form; nothing was stored.
item_not_found
No item with this external id in your organization.withheld_not_found
Status404. No such withheld movement.
match_not_found
Not an HTTP status: the code inside a failed tool result. No such recall match. Over HTTP a recall match that does not exist answersnot_found.
match_decided
Status409. The recall match already has a decision: a second opinion is given only while a match waits for one.
not_offered
Status409. A second opinion is not offered for this match.
duplicate_entry
Not an HTTP status: the code of one rejected entry inside a200 answer. The same item and attribute appear twice in the request. Only the first of the two is applied.
Forecast checks
A forecast check answers 200 and judges each row on its own: a row it could not check carries one of the first four codes in its ownerror.code.
unknown_item
No item with this external id.unknown_location
No location with this external id.period_in_past
The period starts before today.period_beyond_horizon
The period ends beyond the forecast horizon.read_limit
The request would read more rows than the route allows.Inventory actions
location_not_found
Status404. No location with this external id.
to_location_not_found
Status404. No destination location with this external id.
Keys, sandbox and webhooks
scope_not_held
A key cannot put a scope on a key, or rotate a key that holds one, unless it holds that scope itself.not_an_api_key
This is an app connection, not an API key: it has no secret to rotate and its permissions change by reconnecting.environment_mismatch
A test key manages test keys and a live key live keys.sandbox_missing
The organization has no sandbox yet.sandbox_exists
The organization already has a sandbox.sandbox_of_sandbox
A sandbox cannot have a sandbox of its own.session_required
This route needs a signed-in person, not an API key.delivery_pending
The delivery is still being retried on its schedule.delivery_cancelled
The delivery was cancelled before it was sent; it cannot be redelivered.endpoint_inactive
The webhook endpoint is switched off.Other
invalid_input
The input is not valid; the message says why.org_too_large
The organization holds more rows than this route reads on request.recommendation_not_found
Not an HTTP status: the code inside a failed tool result. No such recommendation. Over HTTP a recommendation that does not exist answersnot_found.
target_not_found
Status404. No target with this id in your organization.
MCP tool results
These are not HTTP answers: they appear as the error object inside a failed tool result of the MCP server.unknown_tool
No such tool.not_entitled
The organization does not have the module this tool belongs to. Over HTTP the same refusal ismodule_not_enabled.
insufficient_scope
The API key lacks the scope this tool needs. Over HTTP the same refusal isscope_missing.