Developers
Get started

Errors

Single error shape, stable codes, when to retry — and the full code catalogue.

Every API error — authentication, validation, ERP rules, quotas, outages — has the same shape, and a stable code that says what to do.

Shape of an error

JSON
{
  "success": false,
  "statusCode": 422,
  "error": {
    "statusCode": 422,
    "code": "BUSINESS_RULE_VIOLATION",
    "message": "Rejected by a business rule: see detail.reason.",
    "detail": { "reason": "Transition VALIDATED → SENT interdite." }
  },
  "message": "Rejected by a business rule: see detail.reason.",
  "requestId": "7d0c1f9a-3e2b-4a51-9a8e-0b6f3c2d1e4f",
  "timestamp": "2026-10-02T09:15:00.000Z"
}
FieldUse
error.codeto test in your code: it never changes
error.messageto show or log; follows the requested language, may change
error.detailcode-specific details: violations, required, modules, features, reason…
requestIdto quote to support (also in the X-Request-Id header)

ERP business-rule messages only exist in French: in English, message is the code’s generic message and the original cause is in detail.reason. No error contains a stack trace, a database message, a table name or a host.

400 or 422?

  • 400 — the request is malformed: missing, unknown or mistyped field, unknown parameter, sort not allowed. Your code needs fixing; detail.violations says what.
  • 422 — the request is correct, but the ERP’s state refuses it: forbidden status transition, a paid invoice whose amounts you want to change, a delivery note already delivered… It is a refusal to show to the user, not a bug.
JSON
{
  "success": false,
  "statusCode": 400,
  "error": {
    "statusCode": 400,
    "code": "VALIDATION_FAILED",
    "message": "Invalid request: see detail.violations.",
    "detail": { "violations": ["pageSize must not be greater than 100"] }
  },
  "message": "Invalid request: see detail.violations.",
  "requestId": "7d0c1f9a-3e2b-4a51-9a8e-0b6f3c2d1e4f",
  "timestamp": "2026-10-02T09:15:00.000Z"
}

When to retry

ResponseRetry?
429 API_RATE_LIMITEDyes, after Retry-After
503 SERVICE_UNAVAILABLEyes, after Retry-After
409 IDEMPOTENCY_IN_PROGRESSyes, after Retry-After, same key
500, timeout, network cutyes, with a growing delay and the same Idempotency-Key
other 4xx (400, 401, 402, 403, 404, 409, 410, 422)no: fix the request, the key or the data

A creation retried without Idempotency-Key may create twice: see Idempotency.

Resource not found

404 NOT_FOUND covers three cases, deliberately merged: the resource does not exist, it is of another kind (a quote requested on the invoices route), or it belongs to another workspace. A workspace can never learn that another one’s data exists.

Code catalogue

Every code the API can return, its status and its circumstance — taken from the contract:

StatusCodeWhen
400API_KEY_AMBIGUOUSAuthorization and X-API-Key carry two different keys.
400IDEMPOTENCY_KEY_INVALIDMalformed Idempotency-Key header (1–255 printable ASCII characters).
400INVALID_CURSORUnreadable cursor, or issued for another sort or other filters.
400VALIDATION_FAILEDMissing, unknown or mistyped field; unknown parameter; sort not allowed (detail.violations, detail.allowed).
401API_KEY_EXPIREDKey has expired.
401API_KEY_INVALIDUnknown or malformed key.
401API_KEY_MISSINGNo key presented.
401API_KEY_REVOKEDKey revoked.
401CUSTOMER_AUTH_FAILEDRental customer sign-in refused: wrong email or password, disabled account.
401CUSTOMER_SESSION_INVALIDRental customer session (X-Rental-Session) missing, expired or closed.
402FEATURE_NOT_INCLUDEDOption not included in the plan (multi-currency…).
402MODULE_NOT_INCLUDEDModule not included in the plan.
402PLAN_QUOTA_EXCEEDEDPlan quota reached by the operation (documents of the month…).
402SUBSCRIPTION_INACTIVEWorkspace subscription inactive.
403API_FEATURE_UNAVAILABLEOption required by the route missing from the plan (detail.features).
403API_INSUFFICIENT_SCOPEMissing scope (detail.required).
403API_KEY_WRONG_PERIMETERQuoSuite key on a QuoShop route, or the reverse; QuoRent key outside the rental routes and webhooks.
403API_MODULE_UNAVAILABLEResource module missing from the plan (detail.modules).
403API_ORIGIN_NOT_ALLOWEDBrowser call from an origin not allowed for this key.
403API_ROUTE_NOT_DECLAREDRoute not open to the public API.
403API_TENANT_INACTIVEWorkspace without an active subscription.
403API_TENANT_MISMATCHKey from another workspace than the one designated.
403FORBIDDENAction refused (suspended store…).
404NOT_FOUNDResource not found, of another kind, or from another workspace.
409CONFLICTUnique value already taken; external reference replayed with different content (detail).
409IDEMPOTENCY_IN_PROGRESSSame Idempotency-Key, first request still in progress (Retry-After).
410ENDPOINT_RETIREDDeprecated route whose end date has passed (detail.successor).
413PAYLOAD_TOO_LARGERequest body too large.
422BUSINESS_RULE_VIOLATIONERP business rule (forbidden transition, locked paid document, stock…).
422IDEMPOTENCY_KEY_REUSEDSame Idempotency-Key, different body or route.
429API_AUTH_BLOCKEDToo many authentication failures from this address.
429API_RATE_LIMITEDKey or workspace quota reached (Retry-After).
500INTERNAL_ERRORUnexpected error — quote requestId to support.
503SERVICE_UNAVAILABLETemporarily unavailable (Retry-After).