SAPI-SK: error codes

All errors on /sapi use a uniform envelope with a structured error object: a machine-readable code and category, an explicit retryable flag, and a correlation_id for tracing in logs and support.

Error shape

{
  "error": {
    "category": "VALIDATION",
    "code": "SAPI-VAL-001",
    "message": "Invalid send request",
    "details": [
      { "field": "metadata.documentId", "issue": "Required" }
    ],
    "retryable": false,
    "correlation_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

The details field is optional (e.g. field-level validation). category takes values AUTH, VALIDATION, PROCESSING, TEMPORARY, and PERMANENT.

Code catalog

HTTPCodeCategoryRetryableMeaning
401SAPI-AUTH-001AUTHnoInvalid client credentials.
401SAPI-AUTH-002AUTHnoThe access token is invalid or expired. The details field names the reason: a missing or malformed Authorization header, an expired token (renew it via /sapi/auth/renew) or an invalid signature.
403SAPI-AUTH-003AUTHnoThe client has no access to the given organization / Peppol participant. Typical causes: the participant from X-Peppol-Participant-Id is not active in production yet (no FS mandate/enroll), the organization belongs to a DIFFERENT partner account than the SAPI client (e.g. sandbox and production registered by two colleagues), a test identifier 9915:DIČ is sent with production credentials, or the other way round, a production 0245:DIČ is sent with test (sandbox) credentials, where 9915:DIČ belongs.
403SAPI-AUTH-004AUTHnoThe IP address is not on the client's allowlist.
423SAPI-AUTH-005AUTHyesThe client is temporarily locked after 5 failed attempts (15 min).
403SAPI-AUTH-006AUTHnoThe account the credentials belong to is not active. Returned by token issuance and renewal (/sapi/auth/token, /sapi/auth/renew), /sapi/auth/token/status and every /sapi/document/* call (send and receive). Causes: the plan of the company that created the client in the eFaktúra app does not include API access (Free), the company the client is bound to is deactivated, suspended or being deleted, the partner account is not active, a partner's production (live) client has no paid licence, or the user the client acts for is blocked or deleted (for a company's client: all of its owners and administrators). A plan change does not revoke the credentials: they work again once the company is back on a plan with API access (from the Pro plan). Do not retry until the account state changes.
400SAPI-VAL-001VALIDATIONnoMalformed request: bad JSON, missing field, or missing required header (Idempotency-Key, X-Peppol-Participant-Id).
400SAPI-VAL-002VALIDATIONnoX-Peppol-Participant-Id does not match metadata.senderParticipantId.
400SAPI-VAL-003VALIDATIONnoThe SHA-256 checksum does not match the payload.
400SAPI-VAL-004VALIDATIONnoThe payload exceeds the 10 MB limit.
400SAPI-VAL-005VALIDATIONnoThe send refused the document and nothing was sent: it failed Peppol validation or another check of the document, sender or number. The reason is in details; an overview of the reasons is under SAPI-VAL-005 reasons.
404SAPI-VAL-006VALIDATIONnoThe document does not exist or you don't have access to it.
409SAPI-PROC-001PROCESSINGnoThe Idempotency-Key was already used with a different request body.
422SAPI-PROC-002PERMANENTnoInsufficient credit to send.
422SAPI-PROC-004PERMANENTnoReceiver is not registered in the Peppol network. The attempt is recorded and nothing was delivered: deliver the document another way and do not send it again once the receiver registers. A test key resolves against the TEST network, where eFaktura sandbox firms are registered as 9915:DIČ; a 0245:DIČ receiver must itself be registered in the TEST network (production registrations are not visible there).
422SAPI-PROC-005PROCESSINGnoDelivery could not be confirmed: the connection to the access point broke during the send, so the document may have reached the receiver. Do not resend it, not even with a new Idempotency-Key. Check with the receiver first; if it did not arrive, reprocess it from the Peppol submission history in eFaktura. Repeating the request with the same Idempotency-Key never sends it again: while it stays unconfirmed it returns SAPI-PROC-005 again, once it has been sent it returns 202 with its providerDocumentId. The same code is returned for a document whose processing stopped before its outcome was recorded: send its providerDocumentId to eFaktura support.
409SAPI-PROC-006PROCESSINGyesThe same document is still being processed: the original request with this Idempotency-Key is still running, another request is sending the same content right now, or it is waiting for approval in eFaktura. Repeat it shortly with the same Idempotency-Key; nothing is sent twice.
500SAPI-PROC-003PROCESSINGnoInternal processing error.
429SAPI-TMP-001TEMPORARYyesRate limit exceeded: respect Retry-After.
502SAPI-TMP-002TEMPORARYyesThe Peppol network is temporarily unavailable: retry with exponential backoff.

SAPI-VAL-005 reasons

The send refuses the document at the first check that fails and puts the reason in details[].issue. Checks that need only the document itself are also run by the portal validator (E-invoice validation) and POST /v1/agent/peppol/preflight. Checks of the sender and the document number need your firm's data, so only the send runs them.

ReasonCaught by the portal validator
The file is not valid UBL XML.yes
cbc:CustomizationID, cbc:ProfileID or the document type belongs neither to Peppol BIS Billing 3.0 nor to self-billing.yes: the send accepts only the exact CustomizationID and ProfileID of Peppol BIS Billing 3.0 (ProfileID urn:fdc:peppol.eu:2017:poacc:billing:01:1.0) or Self-Billing 3.0 and the document type that belongs to them
The document fails the EN 16931 and Peppol BIS Billing 3.0 rules (rule code in the text).yes
The due date cbc:DueDate is before the issue date cbc:IssueDate.yes
The recipient is abroad (address or Peppol identifier outside SK): the buyer, or the supplier of a self-billed invoice.yes
The firm has no Peppol account, the account is not active, or the firm is not verified by the Financial Administration for live Peppol.no
The firm is in another Peppol network than the key sends to (test key and 9915:DIČ, production key and 0245:DIČ).no
The sender in the XML (the buyer for a self-billed invoice) is not the firm's Peppol identity, or the supplier in the XML carries another firm's IČO, DIČ or IČ DPH.no
The firm has no owner.no
A credit note to a self-billed invoice (type 261) does not name that invoice in cac:BillingReference.yes
A credit note to a self-billed invoice cannot be linked: the firm has no self-billed invoice with that number in eFaktura or has more than one, it is in another currency, names another supplier, or exceeds the amount that can still be credited.no
The document number is already held by an invoice issued directly in the eFaktura app or by a document of another type.no
A document with the same number has already been sent with other content or another way (from the app). Send the correction as a credit note and a new invoice.no
A document with the same number was not sent, but its data can no longer be overwritten: it is cancelled, paid, has a credit note, is in the accounts, archived or locked, belongs to a filed VAT return, or would fall into a closed accounting period. Use a new number or send the correction as a credit note and a new invoice.no
Issue date: until 31 Dec 2026 at most 10 days before the sending day in production (no limit in test), from 1 Jan 2027 only the sending day in both environments.yes in POST /v1/agent/peppol/preflight by the key's environment, and in the portal as for a production send; a date after today passes only for a document staged through the Connector (dispatch: later)

The portal validator also reports the Slovak Financial Administration rules (SK-…); a SAPI-SK send does not stop on them.

Resending

Before you retry, find out whether the document may have reached the receiver. After an error that sent nothing, fix the document and send it again; after one where it may have arrived, do not send it until you know its state.

ErrorWas the document sent?What to do
SAPI-VAL-001 to SAPI-VAL-005No, nothing was sent.Fix the document according to the reason in details and send it again. An error response is not stored under the Idempotency-Key, so the same key and a new one are both safe. An unsent document with the same number is overwritten by the new XML unless it is cancelled, paid, in the books, archived, locked or in a filed VAT return (see SAPI-VAL-005 reasons); otherwise use a new number.
SAPI-PROC-002No.Top up the credit and send the same document again.
SAPI-PROC-004No, the attempt is recorded but nothing was delivered.Check the receiver's Peppol identifier. If it was wrong, correct the receiver and send the document with the same number again (the content differs, so it is a new send). If the receiver is right but not in the network, deliver the document another way and do not send it again once the receiver registers.
SAPI-PROC-005Possibly: the connection broke during sending.Do not send again, not even with a new Idempotency-Key. Check with the receiver; if the document did not arrive, process it from the Peppol send history in eFaktúra. If details carries a providerDocumentId, send it to support.
SAPI-TMP-001, SAPI-TMP-002No.Repeat the same request with the same Idempotency-Key and exponential backoff.

Connection lost after sending (the request went through, you got no response or it timed out): do not resend with a new key. Repeat the same request with the same Idempotency-Key; nothing is sent a second time. The response tells the state: 202 with providerDocumentId (document accepted), 409 SAPI-PROC-006 (still processing, repeat shortly) or SAPI-PROC-005 (delivery not verified, follow the row above). Only the 202 response is stored under the key, for 24 hours; see Send and receive.

Only retry when retryable: true (categories TEMPORARY, SAPI-PROC-006 and the SAPI-AUTH-005 lockout), and always with exponential backoff. On 429, respect the Retry-After header.

Recommendations

Don't retry 4xx errors (other than 429, the 423 lockout and 409 SAPI-PROC-006) without changing the request: the retryable field is false. On 423, wait 15 minutes and retry the same request. When sending, store the providerDocumentId and use a stable Idempotency-Key to avoid duplicates on retry. Include the correlation_id when contacting support.