KSeF Faktury
EN
Join the start list

KSeF rejected invoice: error codes and how to fix them

In short: an invoice rejected by KSeF was not issued: it has no KSeF number, it did not reach the buyer and you do not issue a correction for it. You have to find the cause from the error code, fix the file and send it again, preferably the same day and with the same invoice number. The most common reasons are an FA(3) schema error, missing permissions, a duplicate number and a date of issue in the future.

A rejected KSeF invoice is an invoice that was never issued

In KSeF an invoice becomes an invoice only when the system assigns it a number. If the file contains errors, KSeF rejects it and the invoice is not issued (MF FAQ, category "Wystawianie i otrzymywanie faktur" (Issuing and receiving invoices), q. 16).

Three practical consequences follow:

  1. You do not issue a correction or cancel anything. There is nothing to correct. The Ministry of Finance (MF) says it directly: you prepare and send a new, correct XML file (same source, q. 20). This is the opposite of an invoice accepted with an error, which can only be fixed by a correction, see cancelling a KSeF invoice (in Polish).
  2. The buyer received nothing. In KSeF there is no invoice under its NIP (Polish tax number).
  3. The obligation still has to be met. Until the corrected invoice is accepted, the sale has no invoice.

What KSeF checks

According to the MF, the system checks two things: whether the XML file matches the invoice template and whether the sender has permissions (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 15). The KSeF 2.0 technical documentation ("Weryfikacja faktury", invoice verification) spells it out in more detail:

What KSeF does not check: whether the amounts add up (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 19) or whether the NIP belongs to the right company (same source, q. 21). An invoice with a well-formed but wrong company's NIP will be accepted. Such cases are covered in wrong NIP in KSeF (in Polish). The full list of errors that pass the check is in accepted by KSeF but wrong.

Error codes when sending an invoice

The software that sent the invoice receives a status with a code from KSeF. The codes come from the KSeF 2.0 API documentation (invoice status in a session). Your software may show them its own way, but it is worth knowing the originals. The "What it usually means" column is our explanation; KSeF gives the exact cause in the response details:

Code Description in KSeF What it usually means What to do
200 Sukces (success) invoice accepted, has a KSeF number nothing
410 Nieprawidłowy zakres uprawnień (wrong scope of permissions) the certificate or token has no permission to issue invoices for this NIP grant the permission or generate a token with the right scope
415 Brak możliwości wysyłania faktury z załącznikiem (cannot send an invoice with an attachment) invoice with a Zalacznik element without notification in e-Urząd Skarbowy (the online tax office) remove the attachment or file the notification
430 Błąd weryfikacji pliku faktury (invoice file verification error) file does not match the FA(3) schema, a mandatory field is missing, wrong format fix the data in the software, check the schema version
440 Duplikat faktury (duplicate invoice) KSeF already has an invoice with this seller NIP, type and number check whether the invoice went through earlier
450 Błąd weryfikacji semantyki dokumentu faktury (invoice semantic verification error) content breaks the rules, e.g. a future date, wrong NIP checksum fix the indicated field
405, 435 session error, decryption error technical problem on the software side send again; if it repeats, report it to your provider
500, 550 unknown error, operation cancelled by the system problem on the KSeF side try again later

If you cannot connect to KSeF at all (the software's login fails with a token or certificate error), the invoice was not even sent. Then check whether the token or certificate has expired or been revoked.

The most common causes in an online store

Schema error (430). Most often after a software update or with unusual data: missing buyer address, a quantity with a comma instead of a dot, an empty line name, or missing JST and GV buyer markers, which are mandatory in FA(3). The fields are described in FA(3) schema.

NIP with a wrong checksum. The customer typed a NIP with a typo at checkout. In production KSeF will reject such a file. The simplest fix is to block it at checkout, see NIP field in checkout.

Duplicate (440). Two typical situations: the software sent the invoice a second time because it did not get a response in time, or two tools (e.g. the store app and an order management system) send invoices with the same number series. In the first case the invoice is in KSeF and has a number: the API documentation returns the KSeF number of the original in the response. Do not issue a new invoice under a different number in that case, because the buyer will get two.

No permissions (410). The token was generated with only the permission to view invoices, or the person who generated it has no permission to issue invoices.

Date in the future. The software put tomorrow's date in P_1, for example because of a time zone difference. A date earlier than the sending day is not a reason for rejection (Podręcznik KSeF 2.0 (KSeF 2.0 manual), part II, chapter 1.6.1).

Resending step by step

  1. Check the status. In your software or in Aplikacja Podatnika KSeF (the free MF taxpayer app): menu "Historia sesji" (session history), column "Faktury odrzucone" (rejected invoices), and after clicking a session, the status of each invoice (Podręcznik użytkownika Aplikacji Podatnika KSeF 2.0 (user manual), chapter 5.4).
  2. Make sure it is not a duplicate. Look for the invoice number in "Lista faktur" (invoice list), tab "Faktury sprzedażowe" (sales invoices). If it is there, the invoice already exists.
  3. Fix the data according to the error code. In Aplikacja Podatnika, after a failed send there is a "Popraw fakturę" (fix invoice) button that opens the form with the data entered (same manual, chapter 5.2.1.2.9).
  4. Send it again with the same invoice number. A rejected file does not use up the number in KSeF.
  5. Watch the date. An online invoice is issued on the day it is sent, if that matches the date in P_1. Sent later with an earlier date in P_1, it will be treated as an offline24 invoice (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 12; Podręcznik KSeF 2.0, part II, chapter 1.6.1), and that mode has its own rules, see KSeF offline24 mode. The simplest way is to fix the error the same day. If that is not possible, agree with your accountant which date of issue to use.

Numbering after a rejection

A common question: KSeF has already accepted invoices no. 8 and 9, and no. 7 comes back after the fix only after them. Is that a problem? The MF says no. If the numbers were assigned in order in the software and reached KSeF in a different order for technical reasons, that is not a reason for rejection or for correcting the number (Podręcznik KSeF 2.0, part II, chapter 1.6.7, example 5).

So do not create a new number for the corrected invoice, because that leaves a gap in the series. Use the same one.

Monitoring in a store

With dozens of orders a day, checking statuses by hand does not work. A good tool should:

In our app KSeF Faktury for Shopify, rejected invoices go to the Problems screen, which shows the cause and what to do next.

FAQ

Is there a penalty for a rejected invoice?

What matters is that the corrected invoice reaches KSeF, because until then the invoice simply does not exist. Under the current Act the penalties in art. 106ni apply from 1 January 2027, and the government draft UD477 moves them to 1 January 2028 (as of 19 October 2026 it was still a draft). Details in KSeF penalties.

Does KSeF tell the buyer about a rejected invoice?

No. Only the sender gets the rejection notice (art. 106nd ust. 2 pkt 10 lit. b of the Polish VAT Act, ustawa o VAT). The buyer simply does not see the invoice.

KSeF accepted an invoice with a wrong amount. Can I send it again, corrected?

No. An accepted invoice has a KSeF number and is issued. You fix it with a correction invoice (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 18 and 19). Resending with the same number will end with error 440.

What if KSeF is down?

That is not a rejection but KSeF unavailability or an outage. Then the offline modes apply, with separate deadlines for sending invoices (MF FAQ, category "Wystawianie i otrzymywanie faktur", q. 10). See KSeF outage.

This article is general information and not tax advice.

Sources

Legal status as of 23 October 2026.

KSeF Faktury

Join the launch list

We will write once, on launch day in the Shopify App Store (December 2026), and help you set up.