Skip to Content
CamBillDocs

Errors

What a failure looks like, and what to do about it.

Failures are application/problem+json (RFC 9457):

{ "type": "https://cambill.cubis.tech/errors/403", "title": "Feature Not Enabled", "status": 403,
  "detail": "This feature is not enabled for your business.", "instance": "/v1/customers", "trace_id": "9f2c…" }

Its type is a page: https://cambill.cubis.tech/errors/403 explains that status, its common titles and what to do. See all errors.

Quote trace_id when you ask for help: it finds the request in your API logs and the audit log. In the SDK it is a CamBillError:

try {
  await cambill.invoices.finalize(id)
} catch (e) {
  if (e instanceof CamBillError && e.title === "Business Not Verified") { /* … */ }
}
StatusMeaningDo
400The request is not valid; detail says what.Fix it. Do not retry.
401Unknown or missing key.Check the key and the mode.
403Not allowed: a feature is off, or the business is not verified.Read title.
404Not found, or it belongs to another business or mode.Check the id and the key's mode.
409A conflict: a used external_id, an invoice that cannot change.Read detail.
422Understood but refused: a reused idempotency key, a limit.Read detail.
429Too many requests.Wait Retry-After.
5xxOur side.Retry with the same Idempotency-Key.