Skip to Content
ArteloAPI

Errors

How failed requests look, and the limits the API enforces.

Errors from the API handler return an HTTP status and a JSON body. A request rejected before it reaches the handler, such as malformed JSON, can get a plain-text response.

{
  "code": "NOT_FOUND",
  "message": "Order not found",
  "data": {}
}
  • code is the kind of error. Branch on it, or on the status.
  • message says what went wrong, for a person to read. It can change, so don't parse it.
  • data is optional. When a request fails validation, data.issues lists each problem with its path and message. The response also includes the same list as a top-level issues field.

Statuses

StatuscodeMeaning
400BAD_REQUESTThe request failed validation, or breaks one of the endpoint's rules.
401UNAUTHORIZEDThe API key is missing, invalid or revoked.
404NOT_FOUNDThe endpoint or requested resource could not be found.
409CONFLICTThe request clashes with something that already exists or is still happening, such as a duplicate name or images that are still processing.
415UNSUPPORTED_MEDIA_TYPEThe endpoint expects a JSON body. Send it with Content-Type: application/json.
429TOO_MANY_REQUESTSYou hit the rate limit.
500INTERNAL_SERVER_ERRORSomething went wrong on our side.

Any endpoint can return 401, 429 or 500. Input that fails validation returns 400. Reference pages list the 400, 404 and 409 errors specific to each endpoint.

Rate limits

Each API key can make 50 requests per 10-second window. Past that, the API returns 429 with a Retry-After header giving the seconds to wait.

Retrying

  • Retry 429 after the Retry-After delay. Retry a 409 about something still processing after a short wait.
  • Retry 500 with a growing delay when the operation is safe to repeat. When retrying Create an order, reuse the original orderId with the same integration. If the order was already saved, the API can return a duplicate-order 400.
  • Don't retry other 4xx errors without changing the request.

Getting help

When you contact us about a failed request, include the x-request-id response header if available.

On this page