Reference

Errors

Error responses use the same format and explain why a request failed. Find the code below for the cause and next step.

200 error codes in v1Codes may be added during v1Find the full list under ErrorCode in the OpenAPI file
Every error looks like this
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
OrderPilot-Api-Version: v1

{
  "error": {
    "code": "RULE_REFUSED",
    "message": "Fabric is required for Linden Sofa."
  }
}

Some responses include extra error fields: supported for UNSUPPORTED_VERSION, and min_version and upgrade_url for CLIENT_TOO_OLD.

1
Use code to handle errorsCodes stay fixed throughout v1. The wording of message may change, so show it to the person using your app without relying on its text in your code.
2
Use the status for unfamiliar codesNew codes can be added during v1. Handle them by status; a new 409 code still means a conflict.
3
Expect a listed codeIf an error has no specific code, it uses the general code for its status below.
General codes by status
400VALIDATION
401UNAUTHORIZED
403ACCESS_DENIED
404NOT_FOUND
409CONFLICT
429RATE_LIMITED
5xxINTERNAL
Other 4xxREFUSED

Find a code by status

The 39 you’ll meet most often · 200 in all
CodeStatusWhat went wrongHow to resolve it
400Fix the requestCorrect the request before sending it again.
VALIDATIONGeneral400A value failed validation. This is the general code for 400 errors without a specific code.Correct and resend

Read message, correct the value it names and send the request again.

INVALID_BODYRequest400The body doesn’t match its Content-Length, or a required key is missing.Correct and resend

Compare the body with the endpoint’s fields. Writes accept JSON up to 256 KB.

INVALID_PARAMETERRequest400A query parameter has an invalid value. The message names the parameter.Correct and resend

Correct the named value. Unrecognized parameters are ignored rather than rejected.

INVALID_CURSORRequest400The list didn’t return this cursor value.Correct and resend

Copy next_cursor exactly from the response. Don’t create or change it.

IDEMPOTENCY_KEY_REQUIREDRequest retries400The request is missing a required Idempotency-Key header.Add a key

Give each new write a new key, using up to 100 letters, digits or - _ : .

UNSUPPORTED_VERSIONAccess400The path requests an unavailable API version, such as /connect/v2.Choose a supported version

Use a version from error.supported. The current version is v1.

401Check your sign-inRestore access before retrying.
UNAUTHORIZEDAccess401The Authorization header is missing, or the key or token is invalid, expired or revoked.Sign in and retry

Check the key in Settings > API and integrations. An agent using OAuth must refresh its token or reconnect.

KEY_REQUIREDAgent connection401The MCP server received no API key or OAuth token, or received another credential, such as a phone token.Sign in and retry

Connect the agent through OAuth using the WWW-Authenticate header, or send an API key (opk_…) with Authorization: Bearer.

403Check access and permissionsUse an account or key with the required access.
API_NOT_ENABLEDAccess403The store’s API access is disabled, or OrderPilot has been uninstalled.Enable access first

Ask us to enable API access for the store before making requests.

PLAN_REQUIREDAccess403The store’s plan doesn’t include API access. It requires the Professional plan.Change the plan first

The message identifies the current plan. A Store administrator can choose Professional in Billing to enable access.

IMPORT_ONLYAccess403This connection is for importing data only, so it can’t make this change.Use an import endpoint

Prepare imports with the data import endpoints. To work in the store, connect the agent again with more access in Settings > API and integrations (Professional plan).

SCOPE_MISSINGAccess403The key lacks a permission required by this endpoint.Use a key with permission

Create a key with the required permission in Settings > API and integrations, then retry.

STAFF_ONLYAccess403Only signed-in staff can use personal views (Today, unread, tab=mine) or apply or accept change requests.Requires staff sign-in

Use OrderPilot for these actions. API keys can’t perform them regardless of permissions. To settle a change request with a key, use its decision endpoint.

NO_ACCESSAccess403The account or key can’t access this part of OrderPilot.Check access first

Check the staff member’s role or the key’s permissions in Settings > API and integrations.

ACCESS_DENIEDGeneral403The account or key can’t make this change. For actions such as discounting or taking a quote out of review, the message names the extra permission needed.Check permissions first

If message names a permission, use a key that has it. Otherwise, perform the action in OrderPilot.

CAP_EXCEEDEDAccess403The request exceeds the key’s limit for a payment, refund, daily amount, daily emails or daily deletions. The message names the limit.Check the limit first

The action wasn’t performed. Ask a Store administrator to raise the limit, or wait until the next day (UTC) for a daily limit.

IMPORT_NEEDS_REVIEWData import403The request would apply a product template import or import Shopify products without review. Only OrderPilot’s data migration connection can do this.Prepare a draft

Send an import draft with POST /imports for the merchant to review and import.

ORIGIN_NOT_ALLOWEDAgent connection403The request came from a web page with an Origin the MCP server doesn’t allow.Use an allowed connection

Call the MCP server from your agent or server. Requests without an Origin header are allowed.

404Check the record and pathThe record may be missing or outside your access.
NOT_FOUNDGeneral404The record doesn’t exist or isn’t accessible to this account or key. This returns a missing-record response, never 403, to avoid revealing records.Check the record first

Check the ID and path. Quotes move to /orders when converted.

UNKNOWN_ENDPOINTAccess404No endpoint exists at this path under /connect/.Correct the path

Compare the path and API version with the reference.

409Resolve the conflictCheck the record or wait for the current request to finish before retrying.
STALE_VERSIONRecords409The record changed after you read it. Your expected_updated_at is out of date.Read and retry

Read the record again, apply your change to the latest version and send the new updated_at.

SYNC_IN_PROGRESSRecords409Shopify is still syncing the record. Its shopify.sync_status is SYNCING.Wait and retry

Wait for SYNCED, then send the change again.

REQUEST_IN_PROGRESSRequest retries409The earlier request with this Idempotency-Key is still running (under two minutes).Retry with the same key

Wait, then resend the same key and body to retrieve the response.

OUTCOME_UNKNOWNRequest retries409The original request may have made the change, but no response is available to return.Check the record first

Read the record. Resend with a new key only if the change is missing.

REQUEST_COMPLETED_NOT_STOREDRequest retries409The change succeeded, but the response exceeded 256 KB and wasn’t stored.Complete; don’t resend

Read the record to check the result. Don’t repeat the request.

ROWS_OUT_OF_ORDERData import409The rows start in the wrong place. start must be the row after the last one sent, or an earlier row.Correct the starting row

Use the starting row named in the message. The first row is 2. Reusing an earlier start replaces those rows.

422Check the store’s rulesShow the store’s message to the person making the change.
RULE_REFUSEDGeneral422A store rule, required field, required option or setting prevents the change.Correct and resend

Show message, which is the same message OrderPilot shows in the app. Correct the input before retrying.

ORDER_LOCKEDRecords422The record is locked by its status or has already become a Shopify order.Can’t edit in this state

The record can’t be edited in its current state. Don’t repeat the edit.

IDEMPOTENCY_KEY_REUSEDRequest retries422This Idempotency-Key was used with a different request body.Use a new key

Use a new key for a new write. Reuse a key only when retrying the same request.

CUSTOMER_REFUSEDRecords422The customer couldn’t be saved, for example because the email is already in use.Correct and resend

Show message. Search for an existing customer with GET /customers?q=.

CAP_REACHEDRecords422Creating this record would exceed a limit, such as 500 categories or 50,000 rows in an import draft. The message names the limit.Reduce the number first

Remove an existing record, or put the extra rows in another draft.

429Slow down requestsWait the number of seconds given in Retry-After.
RATE_LIMITEDRequest limits429The key, all keys together or the store reached its request limit. The message identifies which limit.Wait for Retry-After

Wait Retry-After seconds, add a small random delay and retry. Each write counts as 5 requests.

5xxOrderPilot or Shopify couldn’t complete the requestRetry with the same key. If Retry-After is included, wait the specified time first.
INTERNALOrderPilot500OrderPilot couldn’t complete the request.Retry with the same key

Retry with the same Idempotency-Key. OrderPilot won’t return a stored 5xx response. If it keeps failing, email support.

SHOPIFY_UNAVAILABLEShopify502Shopify didn’t respond. A payment or quote conversion may still have completed.Retry with the same key

Retry with the same key. If you receive OUTCOME_UNKNOWN, read the record before proceeding.

BUSYRequest limits503Too many requests are running, or two PDFs are already being generated.Wait for Retry-After

Wait Retry-After seconds before sending the request again.

API_UNAVAILABLEAccess503API access is temporarily disabled for all stores.Wait for Retry-After

Wait Retry-After seconds before retrying. Queued webhook deliveries are kept until service resumes.

405 · 410 · 426Other request errorsCheck the request method, endpoint availability or app version.
METHOD_NOT_ALLOWEDRequest405The path doesn’t accept this request method.Change the method

Choose a method listed in the Allow header.

ENDPOINT_RETIREDAPI versions410The endpoint has been retired after at least six months’ notice through Deprecation and Sunset headers.Use the replacement

Use the replacement endpoint in the Link header, if provided.

CLIENT_TOO_OLDApp version426The app version in OrderPilot-Client is older than the platform’s minimum.Update the app

Direct the person to error.upgrade_url. Server requests without the version header aren’t rejected.

161 more codes cover sign-in, records, store rules, payments and refunds, files, change requests, imports, purchase order lines and payment requests.

Each request uses part of your allowed capacity. Capacity becomes available again every second. Requests sent when it’s full return 429 RATE_LIMITED.

Applies toCapacityRestored each second
Store
Shared by all of the store’s phones and keys
402
Each API key
Also uses store capacity; a write counts as 5
150.6
All API keys
Leaves capacity for 15 requests from phones, restored at 1 a second
251
Each phone
Also uses store capacity; a write counts as 5
301.5
Every responseOrderPilot-Api-Call-Limit: 12/40shows used capacity against the store’s limit. Slow down before reaching it.
Only with 429 or 503Retry-After: 2gives the wait in seconds. Add a small random delay to keep retries from arriving together.

A write uses 5 requests of capacity; a PDF uses 5 total. The Rate limits page also covers sign-in and address limits.

Chip, the OrderPilot beaver

Need help with an error?

Send us your request, the response and the time you sent it. Remove your key before sharing.

Email support