How KSeF works step by step: KSeF number, UPO, receipt
In short: how does KSeF work? It sits between the seller and the buyer. The seller's software sends the invoice as an XML file, KSeF (Krajowy System e-Faktur, the Polish National e-Invoicing System) checks its structure and the sender's permissions, assigns a KSeF number and issues an official confirmation of receipt (UPO, urzędowe poświadczenie odbioru). The buyer downloads the invoice in their own software or in the Ministry's free app, Aplikacja Podatnika KSeF. The invoice counts as issued on the day it is sent, and as received on the day the number is assigned.
The obligation to issue invoices in KSeF applies from 1 February 2026 to companies whose 2024 sales exceeded PLN 200 million (including VAT), and from 1 April 2026 to all other taxpayers. Until 31 December 2026 you can still issue invoices outside KSeF as long as, in a given month, they do not exceed PLN 10,000 gross (Article 145m of the Polish VAT Act, ustawa o VAT). The obligation is tied to the seller who issues the invoice: a foreign business without a fixed establishment in Poland is excluded from it (Article 106ga(2)); see KSeF and foreign sales. This article explains how the system works and who does what in it. What the mandate requires and who it covers is in Poland e-invoicing mandate (KSeF). For a practical step-by-step guide to issuing an invoice, see how to issue an invoice in KSeF (in Polish).
How KSeF works: an invoice's path in 6 steps
Seller's software -> KSeF: verification -> KSeF number + UPO -> buyer downloads the invoice
- Preparing the file. The seller's software (or Aplikacja Podatnika KSeF) creates the invoice in the FA(3) structure, which is an XML file. We show what such a file looks like in sample KSeF invoice (in Polish).
- Logging in. The software authenticates with a KSeF certificate, a token or a signature, and states the context, i.e. the NIP (Polish tax ID) of the company it acts for. KSeF checks whether that person or company has the permission to issue invoices.
- Sending. The software opens a session, encrypts the file and sends it. The Ministry of Finance calls this "submitting the invoice" (przesłanie faktury): starting the upload and registering the file at the gateway (Ministry of Finance FAQ, category "Issuing and receiving invoices" (Wystawianie i otrzymywanie faktur), question 16). Single invoices go in an interactive session, larger batches in a batch session.
- Verification. KSeF checks the file (details below). A faulty file is rejected.
- KSeF number and UPO. A correct invoice gets a unique KSeF number (35 characters) and enters the system. The software can download the UPO, which contains the number, the date of submission and the date the number was assigned. This usually takes seconds; under heavy load the number may arrive with a delay. What the number is made of, with an example, is shown in KSeF number.
- Receipt. The buyer sees the invoice in their software or in Aplikacja Podatnika. KSeF does not send notifications; the buyer's software has to check for new invoices itself (Ministry FAQ, category "Issuing and receiving invoices", question 38). The seller will not find out whether the buyer has downloaded the invoice (question 39).
The buyer does not have to accept anything. The invoice is received when it gets a KSeF number (question 11). There is also no obligation to send the KSeF number to the buyer (question 41).
What KSeF checks and what it does not
| KSeF checks | KSeF does not check |
|---|---|
| that the XML file matches the FA(3) schema | whether the buyer is the right company |
| the permissions of the person or software sending it | whether the buyer is an active VAT taxpayer (the VAT taxpayer register, Wykaz podatników) |
whether this seller has already sent an invoice with this number (P_2) and type |
whether prices, rates and descriptions are correct in substance |
that the issue date (P_1) is not later than the date of acceptance |
whether the transaction took place at all |
| NIP checksums (in production) and file size |
Sources: Ministry FAQ, category "Issuing and receiving invoices", questions 15, 21, 27; KSeF 2.0 API documentation, "Invoice verification" (Weryfikacja faktury). In practice, this means an invoice with a wrong but correctly formed buyer NIP will go through. It then has to be corrected to zero and a new one issued to the right company (question 21), as we describe in wrong NIP on a KSeF invoice (in Polish).
A file rejected by KSeF is not an invoice. It is not corrected or cancelled; you fix it and send it again (question 20).
When an invoice is issued and when it is received
| Moment | For whom | Legal basis |
|---|---|---|
| Issue: the day it is submitted to KSeF | seller | Article 106na(1) |
| Receipt: the day the KSeF number is assigned | a buyer who receives in KSeF | Article 106na(3) |
| Receipt: the day of actual receipt (e.g. a PDF) | a consumer, a foreign company and other buyers under Article 106gb(4), who get the invoice outside KSeF | Article 106na(4) |
The Ministry's example: an invoice sent on 1 February, KSeF number assigned on 2 February. The issue date is 1 February (Ministry FAQ, category "Issuing and receiving invoices", question 13). In online mode, the date in the P_1 field must match the day of sending. If you send the invoice only on the following day, KSeF will treat it as an offline24 invoice (question 12). Details in deadline for sending an invoice to KSeF (in Polish).
For the buyer, the date of receipt matters for tax: it decides in which period they can deduct VAT (Ministry FAQ, category "KSeF in local government units" (KSeF w Jednostkach Samorządu Terytorialnego), question 26).
Invoices for consumers and foreign buyers
A consumer has no NIP and does not receive invoices in KSeF the way a company does. You can issue their invoice in KSeF or outside it; it is your choice (Article 106ga(2)(4); Ministry FAQ, category "Issuing and receiving invoices", question 5).
A foreign company without a Polish NIP cannot log in to KSeF either. You issue its invoice in KSeF (if you have the obligation) and then deliver it in an agreed way, for example as a PDF (questions 9 and 36).
If you give a KSeF invoice to someone outside the system, you must mark it with a QR code that lets them find and verify it in KSeF (Article 106gb(5)). An online invoice has one QR code, with the KSeF number below it (Ministry FAQ, category "Offline modes and QR codes" (Tryby offline i kody QR), question 7).
When KSeF is down: offline24, unavailability, outage
KSeF does not stop your sales when it is down. The Act has three separate modes: offline24 (the seller can always choose it; the invoice goes to KSeF no later than the next business day), offline during KSeF unavailability announced by the Ministry of Finance (the next business day after it ends), and emergency mode during an outage (7 business days after it ends). During a total outage announced in the media, invoices are not sent afterwards (Ministry FAQ, category "Offline modes and QR codes", question 1; category "Issuing and receiving invoices", question 10). We put a table of the modes with their legal bases in how to issue an invoice in KSeF (in Polish).
In offline modes, the invoice is issued on the date in the P_1 field. If you deliver it to the buyer outside KSeF before it gets a number, its visualisation carries two QR codes: "OFFLINE" and "CERTYFIKAT" (questions 6 and 8 in the category "Offline modes and QR codes"). The second code needs a type 2 KSeF certificate. More in KSeF offline24 mode.
UPO: do you have to keep it
The UPO confirms that KSeF accepted the invoice and contains the date the KSeF number was assigned (Ministry FAQ, category "Issuing and receiving invoices", question 37). The rules do not require you to keep it, and you can download it at any time if you have the permissions (Ministry FAQ, category "KSeF in local government units", question 81). The assignment of a KSeF number in itself means the invoice was processed correctly (question 41 in that category).
What this means for an online store
- The invoice comes into being when it is sent, so the store's software must send it on the same day as the date in
P_1. - KSeF will not fix customer data. The store is responsible for a correct NIP. That is why it is worth checking the NIP already in the basket, before the invoice is created.
- A business customer gets the invoice automatically through KSeF. You can also give them a PDF, but with a QR code.
- A private customer does not have to get the invoice through KSeF; if you issue one, give them a PDF with a QR code or an ordinary invoice outside KSeF.
- When KSeF is down, the software should send the invoice within the legal deadline for the mode in use.
In the KSeF Faktury app for Shopify these steps happen on their own: after an order with a valid NIP is paid, the app sends the FA(3) invoice to KSeF, saves the KSeF number on the order and creates a PDF with a QR code. It works only with Shopify. For a wider picture of a store's obligations, see the guide KSeF for an online store.
Questions and answers
Does KSeF replace invoicing software?
Not entirely. KSeF accepts and stores invoices. You can issue them in the free Aplikacja Podatnika or in software that connects to KSeF through the API.
Can I edit an invoice after sending it to KSeF?
No. An invoice with a KSeF number cannot be edited. Every change is a correction invoice (faktura korygująca) (Ministry FAQ, category "Issuing and receiving invoices", question 18).
Does KSeF notify the buyer about a new invoice?
No. The buyer checks KSeF themselves, or their software downloads invoices automatically (questions 38 and 40).
Can an invoice sent at 23:59 carry the next day's date?
What counts is the moment the file is registered at the KSeF gateway, not the moment the number is assigned (Ministry FAQ, category "IT solutions, integrations and KSeF structure" (Rozwiązania informatyczne, integracje i struktura KSeF), question 13). Still, do not leave sending to the last minutes of the day.
Sources
- Polish VAT Act (ustawa o podatku od towarów i usług), consolidated text Dz.U. 2026 item 1263: Article 106ga(2), Article 106gb(4) and (5), Article 106na(1), (3) and (4), Article 145m
- KSeF 2.0 questions and answers (Pytania i odpowiedzi KSeF 2.0): category "Wystawianie i otrzymywanie faktur", questions 5, 9, 10, 11, 12, 13, 15, 16, 18, 20, 21, 27, 36, 37, 38, 39, 40, 41; category "Tryby offline i kody QR", questions 1, 6, 7; category "KSeF w Jednostkach Samorządu Terytorialnego", questions 26, 41, 81; category "Rozwiązania informatyczne, integracje i struktura KSeF", question 13
- KSeF 2.0 downloads (Pliki do pobrania KSeF 2.0): FA(3) schema and brochure, KSeF 2.0 Manual parts I and II
- KSeF 2.0 API documentation, Ministry of Finance (GitHub CIRFMF): "Weryfikacja faktury", "Numer KSeF", "Tryby offline", "Kody weryfikujące QR"
Legal status as of 23 October 2026. This article is general information and not tax advice.