Skip to main content
Every answer that is not a 2xx carries the same JSON object. 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

Status 400. The request is not valid; the message says why.

parameter_invalid

Status 400. A parameter has a value the route does not accept; param names it.

parameter_missing

Status 400. A required parameter is absent; param names it.

parameter_unknown

Status 400. The route does not take this query parameter; param names it.

body_invalid

Status 400. The body is not the JSON object the route expects.

cursor_invalid

Status 400. The cursor is malformed, or was issued for another route or other filters.

idempotency_key_invalid

Status 400. Idempotency-Key must be 1 to 128 visible ASCII characters.

not_found

Status 404. No such resource in your organization.

route_not_found

Status 404. No such route.

method_not_allowed

Status 405. The route does not take this method; Allow lists the ones it takes.

conflict

Status 409. The request conflicts with the resource’s current state.

idempotency_key_in_use

Status 409. A request with this Idempotency-Key is still running; retry after Retry-After.

payload_too_large

Status 413. The body, or the data the request would read, is larger than the route allows.

unsupported_media_type

Status 415. The Content-Type is not one the route reads.

unprocessable

Status 422. The request is well formed but cannot be carried out as sent.

idempotency_key_reused

Status 422. This Idempotency-Key was already used with a different request.

Authentication

credentials_missing

Status 401. No Authorization header. Send Authorization: Bearer <key>.

api_key_invalid

Status 401. The API key is unknown or inactive.

api_key_expired

Status 401. The API key is past its expires_at. Mint or rotate a key.

unauthenticated

Status 401. The credentials were not accepted.

Permission

scope_missing

Status 403. The API key lacks the scope this route needs.

module_not_enabled

Status 403. The organization does not have the module this route belongs to.

org_suspended

Status 403. The organization is suspended.

forbidden

Status 403. The caller may not do this.

Limits

rate_limit_exceeded

Status 429. Too many requests in the current window; retry after Retry-After.

daily_quota_exceeded

Status 429. The API key’s daily quota is used up; it resets at 00:00 UTC (Retry-After).

model_budget_exceeded

Status 429. The organization’s daily budget for routes that use AI is used up; it resets at 00:00 UTC.

Our side

internal_error

Status 500. Something failed on our side. Quote request_id.

upstream_error

Status 502. A service this route depends on failed.

service_unavailable

Status 503. The route is not available right now.

timeout

Status 504. 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 and error.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

Status 409. 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), with Retry-After. The per-minute limit of every route is rate_limit_exceeded.

Compliance and recalls

attribute_not_found

Status 404. The item has no such attribute to confirm.

certificate_not_found

Status 404. No such certificate in your organization.

invalid_stored_value

Status 409. The stored value is not valid; set it again.

value_changed

Status 409. The stored value differs from the one you sent; read it again.

concurrent_change

Status 409. The record changed while the request ran; read it again.

too_many_certificates

Status 409. The item already holds the most active certificates it can.

duplicate_certificate

Status 409. The item already has an active certificate of this kind and number.

too_many_entries

Status 400. 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 answer payload_too_large.

key_has_no_creator

Status 403. The API key has no creator on record, so it cannot change data as a person.

no_person

Status 403. The change needs a signed-in user or an API key with a creator.

not_a_member

Status 403. The caller (for a key, its creator) is not a member of the organization.

bad_request

Status 400. The body is not what the route expects.

not_configured

Status 503. The feature is not available.

daily_cap

Status 429. 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

Status 502. The answer did not arrive in time; nothing was stored.

model_failed

Status 502. No answer could be produced; nothing was stored.

invalid_output

Status 502. 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

Status 404. 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 answers not_found.

match_decided

Status 409. The recall match already has a decision: a second opinion is given only while a match waits for one.

not_offered

Status 409. A second opinion is not offered for this match.

duplicate_entry

Not an HTTP status: the code of one rejected entry inside a 200 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 own error.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

Status 404. No location with this external id.

to_location_not_found

Status 404. 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 answers not_found.

target_not_found

Status 404. 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 is module_not_enabled.

insufficient_scope

The API key lacks the scope this tool needs. Over HTTP the same refusal is scope_missing.

tool_failed

The tool failed on our side. Quote the request id.