Errors
Error responses use the same format and explain why a request failed. Find the code below for the cause and next step.
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.
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.VALIDATIONUNAUTHORIZEDACCESS_DENIEDNOT_FOUNDCONFLICTRATE_LIMITEDINTERNALREFUSEDFind a code by status
The 39 you’ll meet most often · 200 in all| Code | Status | What went wrong | How to resolve it |
|---|---|---|---|
400Fix the requestCorrect the request before sending it again. | |||
| VALIDATIONGeneral | 400 | A value failed validation. This is the general code for 400 errors without a specific code. | Correct and resend Read |
| INVALID_ | 400 | The 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_ | 400 | A 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_ | 400 | The list didn’t return this cursor value. | Correct and resend Copy |
| IDEMPOTENCY_ | 400 | The 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_ | 400 | The path requests an unavailable API version, such as /connect/v2. | Choose a supported version Use a version from |
401Check your sign-inRestore access before retrying. | |||
| UNAUTHORIZEDAccess | 401 | The 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_ | 401 | The 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 |
403Check access and permissionsUse an account or key with the required access. | |||
| API_ | 403 | The 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_ | 403 | The 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_ | 403 | This 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_ | 403 | The 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_ | 403 | Only 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_ | 403 | The 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_ | 403 | The 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 |
| CAP_ | 403 | The 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_ | 403 | The 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 |
| ORIGIN_ | 403 | The 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 |
404Check the record and pathThe record may be missing or outside your access. | |||
| NOT_ | 404 | The 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 |
| UNKNOWN_ | 404 | No 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_ | 409 | The 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 |
| SYNC_ | 409 | Shopify is still syncing the record. Its shopify.sync_status is SYNCING. | Wait and retry Wait for |
| REQUEST_ | 409 | The 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_ | 409 | The 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_ | 409 | The 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_ | 409 | The 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 |
422Check the store’s rulesShow the store’s message to the person making the change. | |||
| RULE_ | 422 | A store rule, required field, required option or setting prevents the change. | Correct and resend Show |
| ORDER_ | 422 | The 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_ | 422 | This 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_ | 422 | The customer couldn’t be saved, for example because the email is already in use. | Correct and resend Show |
| CAP_ | 422 | Creating 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_ | 429 | The key, all keys together or the store reached its request limit. The message identifies which limit. | Wait for Retry-After Wait |
5xxOrderPilot or Shopify couldn’t complete the requestRetry with the same key. If Retry-After is included, wait the specified time first. | |||
| INTERNALOrderPilot | 500 | OrderPilot couldn’t complete the request. | Retry with the same key Retry with the same |
| SHOPIFY_ | 502 | Shopify 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 |
| BUSYRequest limits | 503 | Too many requests are running, or two PDFs are already being generated. | Wait for Retry-After Wait |
| API_ | 503 | API access is temporarily disabled for all stores. | Wait for Retry-After Wait |
405 · 410 · 426Other request errorsCheck the request method, endpoint availability or app version. | |||
| METHOD_ | 405 | The path doesn’t accept this request method. | Change the method Choose a method listed in the |
| ENDPOINT_ | 410 | The endpoint has been retired after at least six months’ notice through Deprecation and Sunset headers. | Use the replacement Use the replacement endpoint in the |
| CLIENT_ | 426 | The app version in OrderPilot-Client is older than the platform’s minimum. | Update the app Direct the person to |
SUBSCRIPTION_REQUIREDBILLING_UNVERIFIEDNOT_CONFIGUREDIMPORT_MODEREFUSEDCONFLICTINVALID_REQUESTINVALID_IDINVALID_KEYINVALID_FIELD_VALUEINVALID_OPTION_VALUEINVALID_MAXINVALID_IDLEINVALID_EXPIRYINVALID_LIMITINVALID_PAGEINVALID_UPDATED_SINCEINVALID_RANGEINVALID_UPLOAD_TOKENBODY_TOO_LARGEURI_TOO_LONGLENGTH_REQUIREDREQUEST_TIMEOUTUNSUPPORTED_MEDIA_TYPEINVALID_IDEMPOTENCY_KEYINVALID_GRANTEXPIRED_CODEUNSUPPORTED_GRANT_TYPEAUTHORIZATION_PENDINGALREADY_SCANNEDPAIRING_NOT_WAITINGPAIRING_CLAIMEDNO_SCOPESSTAFF_NOT_LINKEDSTATUS_CONFLICTQUOTE_SIGNEDLOCATION_LOCKEDLOCATION_REQUIREDLIST_OUT_OF_DATESAVE_IN_PROGRESSSAVE_LOCK_UNAVAILABLESPLIT_PENDINGCONVERSION_IN_PROGRESSBULK_STATUS_LOCKEDUNKNOWN_STATUSSTATUS_NOT_ALLOWEDUNKNOWN_LINEUNKNOWN_TEMPLATEUNKNOWN_OPTIONUNKNOWN_FIELDUNKNOWN_FEE_TEMPLATEUNKNOWN_FEEUNKNOWN_INTENTLOCATION_NOT_FOUNDCUSTOMER_NOT_FOUNDADDRESS_NOT_FOUNDATTACHMENT_NOT_FOUNDTERMS_NOT_FOUNDLINE_NOT_FOUNDLINE_UNAVAILABLELINE_EXCLUDEDLINE_VENDOR_MISMATCHSKU_NOT_FOUNDSKU_AMBIGUOUSCUSTOMER_AMBIGUOUSOPTION_AMBIGUOUSSKU_EXISTSUNKNOWN_CATEGORYCUSTOMER_INCOMPLETENO_CUSTOMERNO_RECIPIENTNO_THREAD_YETNOTHING_TO_ANSWERNO_FILES_ON_VENDOR_REPLIESREPLY_REFUSEDREPLY_REQUIREDNOT_APPLICABLEADDRESS_REFUSEDCONVERSION_REFUSEDDELETE_REFUSEDDROPSHIP_REFUSEDCHARGE_ALLOCATION_REFUSEDBULK_STATUS_KIND_REFUSEDTEMPLATE_REFUSEDTEMPLATE_UNPRICEDOPTION_UNSUPPORTEDFIELD_UNSUPPORTEDTERMS_UNSUPPORTEDREQUIREMENTS_NOT_METCURRENCY_MISMATCHSHOP_CURRENCY_UNKNOWNDELIVERY_NOT_READYDUPLICATE_VENDORVENDOR_MINIMUMPURCHASE_ORDER_STALEPURCHASE_ORDER_REFUSEDFEATURE_DISABLEDBRANDS_OFFWEBHOOK_OFFWEBHOOKS_UNAVAILABLEPLUS_REQUIREDPAYMENT_REFUSEDPAYMENT_REQUEST_OPENPAYMENT_PROVIDER_MISSINGPAYMENT_REQUEST_REFUSEDLINK_REFUSEDREFUND_FAILEDREFUND_REFUSEDREFUND_NOT_SENTREFUND_PARTIALSETTLE_FAILEDRETURN_REFUSEDFILE_TOO_BIGFILE_TOO_LARGEFILE_TYPEFILE_IN_USEFILE_UNAVAILABLENO_FILENOT_AN_IMAGENOT_STOREDUPLOAD_FAILEDSTORAGE_FAILEDCLEANUP_FAILEDPDF_UNAVAILABLEREPORT_TIMEOUTUPLOAD_NOT_FOUNDNOT_VALIDATEDIMPORT_IN_PROGRESSIMPORT_ENDEDSTALELINE_GONENO_CHANGEVALIDATION_ERRORDUPLICATE_OPERATIONOPEN_TO_APPLYSAVED_STILL_OPENNOT_ACCEPTABLELEGS_REQUIREDSEND_REFUSEDVALUE_NOT_OFFEREDSAVE_REFUSEDQUICKBOOKS_UNAVAILABLEQUEUE_FAILEDDELETE_FAILEDNUMBERING_PREFIX_CONFLICTIN_USEFIELD_REFUSEDFIELD_NOT_PLACEDNOTES_FULLPDF_NOT_READYSIGNATURE_PURGEDSCAN_REFUSEDSCAN_EXISTSSCHEDULE_CONFLICTSCHEDULE_REFUSEDSIGNED_COPY_REFUSEDORIGINAL_TOO_LARGESETUP_REFUSEDEMAIL_NOT_SET_UPDOMAIN_REPLACE_REQUIREDCONFIRMATION_REQUIRED
Rate limits
Read the rate limit guideEach request uses part of your allowed capacity. Capacity becomes available again every second. Requests sent when it’s full return 429 RATE_LIMITED.
| Applies to | Capacity | Restored each second |
|---|---|---|
| Store Shared by all of the store’s phones and keys | 40 | 2 |
| Each API key Also uses store capacity; a write counts as 5 | 15 | 0.6 |
| All API keys Leaves capacity for 15 requests from phones, restored at 1 a second | 25 | 1 |
| Each phone Also uses store capacity; a write counts as 5 | 30 | 1.5 |
OrderPilot-Api-Call-Limit: 12/40shows used capacity against the store’s limit. Slow down before reaching it.Retry-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.
/connect/v2, while v1 remains available. Before an endpoint is retired:
Responses include Deprecation + Sunset headersYou have at least 6 months to update your integrationRequests then return 410 ENDPOINT_RETIRED
Open API versions and retired endpoints

Need help with an error?
Send us your request, the response and the time you sent it. Remove your key before sharing.