KSeF

KSeF invoice status codes 100–550 explained

All twelve KSeF 2.0 invoice processing statuses (100 to 550) with their official descriptions, and how Notaly maps them to submitted, accepted or rejected.

Published 3 min readBy Tomek

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

CodeEnglish gloss of the official description
100Invoice accepted for further processing
150Processing in progress
200Success
405Processing cancelled due to a session error
410Invalid scope of permissions
415Sending an invoice with an attachment is not possible
430Invoice file verification error
435File decryption error
440Duplicate invoice
450Invoice document semantics verification error
500Unknown error
550Operation 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 system

How 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

Frequently asked questions

Which KSeF status means the invoice was accepted?

200, with the official description "Sukces". 100 and 150 mean it is still being processed.

Are 21155 or 21173 invoice statuses?

No. They are exception codes returned by an API call, not processing statuses of an invoice.

Issue your first KSeF test invoice today

Create a sandbox account: API key in seconds, 3 free test invoices on KSeF TEST, no credit card.