Issuing and receiving invoices
Correcting a KSeF invoice: 6 steps with XML
An invoice sent to KSeF (Krajowy System e-Faktur, Poland's National e-Invoicing System) can't be edited or deleted, so you fix a mistake with a corrective invoice: a separate FA(3) file with RodzajFaktury = KOR that points to the original. The amounts on it are the difference from the original, not the new value.
The legal basis is Art. 106j of the Polish VAT Act. Since 1 February 2026 corrective notes no longer exist, so every mistake is fixed by the seller with a corrective invoice in KSeF. Invoicing software (Fakturownia, inFakt, wFirma and others) fills in most fields when you choose "issue correction". Below we show what it does on your behalf.
Art. 106j Polish VAT Act (corrective invoices), Dz.U. 2026 poz. 1263What you can and can't correct
A correction can fix almost anything: net, VAT and gross amounts, quantity, price, VAT rate, description of goods or services, date of supply, the buyer's or seller's name and address. The exception is the buyer's or seller's NIP (tax identification number). If you entered the wrong company's NIP, you need a zero-value correction and a new invoice (see below).
When you correct a name or address, the full details from the original go in Podmiot2K (buyer) or Podmiot1K (seller), and the corrected details in Podmiot2 or Podmiot1.
Correcting an amount step by step
Example: Ania, a freelance graphic designer running a JDG (sole proprietorship), issued invoice FV/001/04/2026 on 1 April 2026 for 5,000 zł net (23% VAT) for a visual identity project. It should have been 4,500 zł, so the difference is −500 zł net.
Step 1: invoice type KOR
In the XML, RodzajFaktury is KOR instead of VAT.
Step 2: reason for correction
PrzyczynaKorekty is a short description, for example "Błędna cena usługi" (wrong service price). The schema doesn't require it, but the tax office may ask for an explanation and your client sees at once what changed.
Step 3: correction period TypKorekty
This field decides which VAT return the correction goes into, so it has real tax consequences:
1: the correction takes effect on the date the original invoice was recorded (backwards),2: it takes effect on the date the correction is issued (current period),3: it takes effect on another date, including when dates differ between line items.
The field is optional. If your software doesn't pick the value itself, agree it with your accountant.
Step 4: reference to the original DaneFaKorygowanej
You give the original's issue date (DataWystFaKorygowanej), its number (NrFaKorygowanej) and its KSeF number information, in exactly one of two variants:
| Situation | What to set |
|---|---|
| Original has a KSeF number | NrKSeF = 1 + field NrKSeFFaKorygowanej with the original KSeF number |
| Original has no KSeF number (issued outside KSeF) | NrKSeFN = 1 (no NrKSeFFaKorygowanej) |
Setting both fields at once gets the invoice rejected. A KSeF number looks like NIP-DATE-XXXXXXXXXXXX-ZZ; copy it rather than retyping. In the example the original has a KSeF number, so we set NrKSeF = 1 and give its number.
Step 5: amounts as a difference
This is the most common mistake. Amounts on a correction are the difference between what was and what should be:
- original: 5,000 zł net, 1,150 zł VAT, 6,150 zł gross,
- should be: 4,500 zł net, 1,035 zł VAT, 5,535 zł gross,
- on the correction you enter: −500.00 zł net, −115.00 zł VAT, −615.00 zł gross.
A difference-method correction is added to the original in both parties' books. Enter 4,500 instead of −500 and the invoice effectively totals 9,500 zł.
The same applies to line items (FaWiersz): P_11 is the difference, while descriptive fields such as P_7 (name of goods or services) show the state after correction. There is also a "before/after" method using the StanPrzed field (two rows: original and corrected data). We describe the simpler difference method here.
Step 6: check the file before sending
A correction has more required fields than a regular invoice, so it's easier to miss something. If your software doesn't validate corrections and you have the XML file, upload it to ksefuj.to to check it against MF requirements, including the consistency of the reference fields to the original.
Zero-value correction when the buyer's NIP is wrong
An ordinary correction can't replace a wrong buyer's or seller's NIP with the right one. You issue two documents:
- A zeroing correction: every amount negated and equal to the original, so original plus correction comes to 0 zł.
- A new invoice with the right NIP and amount.
Here you need two documents rather than one, and many programs can't do it in one click. A zeroing correction doesn't cancel the invoice: both documents stay in KSeF (the system stores invoices for 10 years from the end of the year of issue) and their sum is zero. If you received such an invoice from someone else, see what to do about a fake invoice in KSeF.
Correcting an invoice without a KSeF number
Whether you set NrKSeF or NrKSeFN depends on whether the original has a KSeF number, not on its issue date. Invoices issued in KSeF since 1 February 2026 have one, including those from offline24 mode, from periods when KSeF was unavailable and from emergency mode, once they've reached the system. Invoices never sent to KSeF have none: paper or PDF invoices from before you became subject to the obligation and, once you're subject to it, for example invoices issued under the 10,000 zł monthly limit (Art. 145m, until the end of 2026), from a cash register (Art. 145n, until the end of 2026) or to a consumer, unless you chose to issue them in KSeF. For these you set NrKSeFN = 1. Why a correction of such an invoice issued to a business from 2027 should go to KSeF is explained in our post on correcting an invoice issued outside KSeF in 2027. A bulk correction can mix both kinds: each corrected invoice gets its own DaneFaKorygowanej block with the right flag.
The correction itself must be in FA(3): the FA(2) schema expired on 31 January 2026 and KSeF won't accept it in any form, even for an invoice from the FA(2) era. An FA(2) invoice sent to KSeF 1.0 has a KSeF number, and the FA(3) schema accepts KSeF 1.0-format numbers in NrKSeFFaKorygowanej. MF doesn't address this case directly, but the FA(3) brochure says to set NrKSeF = 1 when the original was issued in KSeF, and Art. 106j(2)(2a) of the VAT Act requires the original's KSeF number whenever one was assigned.
We compare the schemas in FA(2) vs FA(3).
XML example
Ania Kowalska's correction (FV/001/04/2026, −500 zł net, 23% VAT):
<?xml version="1.0" encoding="UTF-8"?>
<Faktura xmlns="http://crd.gov.pl/wzor/2025/06/25/13775/">
<Naglowek>
<KodFormularza kodSystemowy="FA (3)" wersjaSchemy="1-0E">FA</KodFormularza>
<WariantFormularza>3</WariantFormularza>
<DataWytworzeniaFa>2026-04-02T10:00:00Z</DataWytworzeniaFa>
</Naglowek>
<Podmiot1>
<DaneIdentyfikacyjne>
<NIP>5214567890</NIP>
<Nazwa>Ania Kowalska Grafika</Nazwa>
</DaneIdentyfikacyjne>
<Adres>
<KodKraju>PL</KodKraju>
<AdresL1>ul. Kwiatowa 12</AdresL1>
<AdresL2>00-123 Warszawa</AdresL2>
</Adres>
</Podmiot1>
<Podmiot2>
<DaneIdentyfikacyjne>
<NIP>7891234560</NIP>
<Nazwa>Klient Sp. z o.o.</Nazwa>
</DaneIdentyfikacyjne>
<Adres>
<KodKraju>PL</KodKraju>
<AdresL1>ul. Handlowa 5</AdresL1>
<AdresL2>30-002 Kraków</AdresL2>
</Adres>
<JST>2</JST>
<GV>2</GV>
</Podmiot2>
<Fa>
<KodWaluty>PLN</KodWaluty>
<P_1>2026-04-02</P_1>
<P_2>FV/001K/04/2026</P_2>
<P_13_1>-500.00</P_13_1>
<P_14_1>-115.00</P_14_1>
<P_15>-615.00</P_15>
<Adnotacje>
<P_16>2</P_16>
<P_17>2</P_17>
<P_18>2</P_18>
<P_18A>2</P_18A>
<Zwolnienie><P_19N>1</P_19N></Zwolnienie>
<NoweSrodkiTransportu><P_22N>1</P_22N></NoweSrodkiTransportu>
<P_23>2</P_23>
<PMarzy><P_PMarzyN>1</P_PMarzyN></PMarzy>
</Adnotacje>
<RodzajFaktury>KOR</RodzajFaktury>
<PrzyczynaKorekty>Błędna cena usługi</PrzyczynaKorekty>
<TypKorekty>2</TypKorekty>
<DaneFaKorygowanej>
<DataWystFaKorygowanej>2026-04-01</DataWystFaKorygowanej>
<NrFaKorygowanej>FV/001/04/2026</NrFaKorygowanej>
<NrKSeF>1</NrKSeF>
<NrKSeFFaKorygowanej>5214567890-20260401-000001000001-49</NrKSeFFaKorygowanej>
</DaneFaKorygowanej>
<FaWiersz>
<NrWierszaFa>1</NrWierszaFa>
<P_7>Projekt graficzny — identyfikacja wizualna</P_7>
<P_8B>1</P_8B>
<P_9A>-500.00</P_9A>
<P_11>-500.00</P_11>
<P_12>23</P_12>
</FaWiersz>
</Fa>
</Faktura>Four places matter in this file: RodzajFaktury = KOR, the DaneFaKorygowanej block pointing to the original, the negative P_13_1, P_14_1 and P_15 (a difference, not a new value), and FaWiersz with a negative P_11.
If a correction comes back with an error, check the most common FA(3) validation errors.
Was this article helpful?
Sources
Don’t miss KSeF changes
We’ll send a short email when KSeF rules or deadlines change. We only write then, so you won’t hear from us often.
You can unsubscribe at any time. Powered by Buttondown
Read next
- Invoices7 min read
VAT RR invoices in KSeF need the farmer's consent
The buyer issues the VAT RR invoice. Since 1 April 2026 it does so in KSeF if the farmer names it there in a statement. Otherwise, outside KSeF.
- Invoices7 min read
KSeF keeps your invoices for 10 years
KSeF stores invoices for 10 years from the end of the year of issue, so you don't keep them yourself. Invoices outside KSeF you store as before.
- Invoices7 min read
Your KSeF invoice can be in English
Your client can get an English or bilingual invoice. The invoice itself is the FA(3) XML in KSeF: Polish field names, and the translation must match it.
More on this topic: Issuing and receiving invoices
- KSeF invoice attachments can't be PDFs or scans
- Self-billing in KSeF requires a permission
- How to use the KSeF test environment
- Advance invoices in KSeF: ZAL, then ROZ
- Where do you correct a non-KSeF invoice in 2027?
- The KSeF mobile app invoices only in PLN
- Find your KSeF number in KSeF, not in the XML
- WDT at 0%: you need proof the goods left Poland