Overview
In KSeF 2.0 every invoice sent in a session gets its own processing status: a numeric code with an official Polish description. Codes 100 and 150 mean the invoice is still being processed, 200 means success, and every code from 405 upward means the invoice was not accepted.
Where the status comes from
After you send an invoice in an online session, KSeF processes it asynchronously. The status is read per invoice from the session (GET /v2/sessions/{referenceNumber}/invoices/{invoiceReferenceNumber}) and contains a code, a description and, for some codes, a details list. The descriptions below are quoted exactly from the KSeF API specification (version 2.8.1, TEST environment). The English glosses are ours; we do not add causes the specification does not state.
The twelve invoice statuses
| Code | English gloss of the official description |
|---|---|
| 100 | Invoice accepted for further processing |
| 150 | Processing in progress |
| 200 | Success |
| 405 | Processing cancelled due to a session error |
| 410 | Invalid scope of permissions |
| 415 | Sending an invoice with an attachment is not possible |
| 430 | Invoice file verification error |
| 435 | File decryption error |
| 440 | Duplicate invoice |
| 450 | Invoice document semantics verification error |
| 500 | Unknown error |
| 550 | Operation cancelled by the system |
The official descriptions, verbatim from the specification:
100 Faktura przyjęta do dalszego przetwarzania
150 Trwa przetwarzanie
200 Sukces
405 Przetwarzanie anulowane z powodu błędu sesji
410 Nieprawidłowy zakres uprawnień
415 Brak możliwości wysyłania faktury z załącznikiem
430 Błąd weryfikacji pliku faktury
435 Błąd odszyfrowania pliku
440 Duplikat faktury
450 Błąd weryfikacji semantyki dokumentu faktury
500 Nieznany błąd ({statusCode})
550 Operacja została anulowana przez systemHow Notaly maps them
Notaly treats 100 and 150 as still processing, so the invoice stays submitted and is checked again later. 200 means accepted: Notaly stores the KSeF number and requests the UPO from KSeF. Any other code marks the invoice rejected, and the error field carries a stable code built from the KSeF status, for example ksef_rejected:440 or ksef_rejected:450. You see the same result through GET /invoices/{id} and the invoice.rejected webhook.
Reading a rejection
The number gives you the category, and the details list, when KSeF returns one, carries KSeF's own text for that specific invoice. Start from the official description and the details instead of guessing. Where the specification gives only a description, as it does for most codes above, treat that description as the full official meaning.
Exception codes are a different thing
Codes such as 21155 (session invoice limit) or 21173 (session not found) are exception codes returned by an API call, not invoice statuses. Our guide to KSeF error codes covers them.
Disclaimer
Notaly is not a tax, accounting or legal advisor. This article is general information, not tax advice, and may be outdated. You are responsible for your own VAT compliance; confirm with a qualified accountant where required.
Sources
Source: api-test.ksef.mf.gov.pl