Skip to content

Errors

Every error has the same body:

{ "error": { "code": "ORDER_NUMBER_TAKEN", "message": "Order 100001 already exists in this store", "field": "number" } }

code is stable; branch on it. message is for people and may change. field names the input at fault, when there is one.

Status When Example codes
400 The request does not match the schema. INVALID_INPUT
401 No key, or an unknown or revoked one. UNAUTHENTICATED
403 The key lacks the scope, or the account or module does not allow it. FORBIDDEN, SUSPENDED, TICKETING_DISABLED
404 The addressed record does not exist, or the key may not use its product. ORDER_NOT_FOUND, PRODUCT_NOT_FOUND
409 It would clash with an existing record. EMAIL_TAKEN, ORDER_NUMBER_TAKEN, KEY_TAKEN
422 It breaks a rule, or names a record that does not exist. INVALID_PERIOD, STORE_NOT_FOUND (with field)
429 Too many requests for this key. RATE_LIMITED
500 Something went wrong on our side. INTERNAL

A *_NOT_FOUND with a field is a bad reference inside your input (422); without one, it is the record in the path (404).

Code Meaning
CHANNEL_NOT_FOUND channelAddress (or an integration’s replyChannelAddress) is not one of the product’s email channels.
CHANNEL_REQUIRED An Intercom integration needs replyChannelAddress.
EMPTY_THREAD A new ticket needs a message: message or reply to create one, at least one message to import one.
TOO_MANY_MESSAGES, TOO_MANY_FILES An import carries at most 500 messages and 100 files; send a longer thread in parts.
INVALID_MESSAGE An imported message has no externalId, or more than 50,000 characters of text.
TOO_MANY_TAGS, TAG_TOO_LONG A ticket holds at most 20 tags of at most 50 characters.
BODY_TOO_LONG A reply is at most 50,000 characters.
UNAVAILABLE A service it needs could not be reached (for an import, the team list); retry shortly.
SLUG_TAKEN, SLUG_INVALID, LANGUAGE_INVALID The new product’s knowledge base can’t use that slug or language; nothing was created.
KNOWLEDGE_BASE_NOT_CREATED The product was created without its knowledge base; don’t create it again, switch the module on in the admin.