Error codes
All errors share a uniform JSON shape with a machine-readable code, a human-readable message, and optional details (e.g. field-level validation errors).
Error shape
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input data",
"details": [
{ "field": "items", "message": "Must contain at least one item" }
]
}
}Code reference
| HTTP | Code | Meaning / resolution |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid input. See details for field-level errors. |
| 400 | BAD_REQUEST | The request is malformed (e.g. a body that is not valid JSON). Fix the request; do not retry as is. |
| 401 | UNAUTHORIZED | Missing/invalid X-API-Key or an expired session. |
| 400 | MADE_UP_DETAILS_NOT_ALLOWED | made_up_details can be sent only with a test key and for a company that is not live. With a live key or a live company, correct the details to match the register, or send identity_override. |
| 403 | FORBIDDEN | Access denied. Typical messages: "X-Organization-Id header is required for this endpoint" (an org-scoped endpoint called without the header), "Neplatný formát ID organizácie." (the header is not a UUID), "Nemáte prístup k tejto organizácii." (the key has no access to that organization), "API key does not have scope: …" and "API key must include one of: …" (the key lacks a scope). |
| 403 | MODULE_ACCESS_DENIED | The key's user has not been given the module this endpoint belongs to (e.g. eDoklad) in the organization. The organization owner adds it under Team and roles. |
| 403 | PLAN_LIMIT_REACHED | Plan limit reached (e.g. number of keys). |
| 403 | PLAN_FEATURE_UNAVAILABLE | The feature isn't included in the current plan. |
| 403 | ORG_READ_ONLY | The organization is in read-only mode (e.g. an expired plan): changes are refused until the plan is upgraded. |
| 404 | NOT_FOUND | The resource doesn't exist or you don't have access to it. |
| 409 | CONFLICT | Conflict (e.g. a duplicate invoice number). |
| 409 | IDENTITY_MISMATCH | The company's name, IČO, DIČ or IČ DPH do not match the company register (POST/PATCH /agent/organizations, peppol/enroll, peppol-claim/confirm). See details.fields and details.resolution: made_up_details (a test company with made-up details) or identity_override (save despite the mismatch). See Going live. |
| 409 | PARTNER_CLAIM_COLLISION | peppol-claim/confirm: another real org already exists for the same IČO, so the company can't be assigned automatically. Contact support. |
| 429 | RATE_LIMITED | Rate limit exceeded: respect Retry-After. |
| 429 | API_LIMIT_EXCEEDED | The monthly call quota is used up and billing of over-limit calls was not agreed. See Rate limits. |
| 402 | INSUFFICIENT_CREDIT | Insufficient Peppol credit for a live send (POST /agent/peppol/send/*). Top up your credit. |
| 422 | INVOICE_ISSUE_DATE_NOT_SEND_DATE | The invoice's issue date (BT-2) doesn't match today in Europe/Bratislava (from 1.1.2027). Re-issue the document with today's date. See Scheduled and bulk Peppol sending. |
| 422 | INVOICE_ISSUE_DATE_TOO_OLD | A live invoice was issued more than 10 days ago (until 31.12.2026; an internal safety limit, not a statutory deadline). Review the invoice. See Scheduled and bulk Peppol sending. |
| 402 | SEAT_PAYMENT_FAILED | The payment for a seat increase failed. |
| 500 | INTERNAL_ERROR | Server-side error: try again later / contact support. A response with code DATABASE_ERROR is also a server error, not a mistake in your request: report it to support together with the X-Request-Id header. |
Two endpoints return a non-standard shape (not the
{ "error": { … } } envelope):POST /agent/peppol/send/*returns402with a flat body{ "error": "INSUFFICIENT_CREDIT", "message": "…" }on insufficient credit. Hereerroris a string, not an object. The same flat shape applies to422 INVOICE_ISSUE_DATE_NOT_SEND_DATEand422 INVOICE_ISSUE_DATE_TOO_OLDonPOST /agent/peppol/send/{invoiceId}.POST /agent/organizations/{id}/peppol-claimreturns the status directly:{ "organization_id": "…", "status": "…", "reason": "…" }(e.g.status: "collision"withreason: "real_org_exists_for_ico"), not wrapped in anerrorenvelope.
A request body over 32 MB is refused with 413 and a flat body { "error": "…" } (a string, not an object).
Recommendations
For 4xx, don't retry without changing the request. For 429 and 5xx, use exponential backoff. When issuing invoices, we recommend storing theid of the created document to avoid duplicates on retry.