KSeF e-invoicing reference
Practical, sourced reference for Poland's KSeF e-invoicing: FA(3) fields, codes and how-tos.
FA(3) fields
- Adnotacje in FA(3): the invoice annotations block
What the mandatory Adnotacje block of a KSeF FA(3) invoice contains, which values each annotation takes and exactly what Notaly emits.
- AdresKoresp in FA(3): the seller's correspondence address
How to fill AdresKoresp (the seller's correspondence address) in a KSeF FA(3) invoice: where it lives, its required children and a valid snippet.
- DaneKontaktowe in FA(3): seller email and phone
Where the seller's email and phone go in a KSeF FA(3) invoice: the DaneKontaktowe block, its limits (max 3, Email with @, Telefon up to 16 chars) and a snippet.
- GTU codes in FA(3): the 13 goods and services markers
What GTU codes are in a KSeF FA(3) invoice, the 13 GTU_01..GTU_13 categories, and when to put one on an invoice line.
- JST and GV in FA(3): buyer flags in Podmiot2
What the JST and GV flags in Podmiot2 of a KSeF FA(3) invoice mean, which values they take, and why Notaly always sends 2.
- KodWaluty in FA(3): the invoice currency code
How to fill KodWaluty (the currency code) in a KSeF FA(3) invoice: ISO 4217 code, where it lives, the PLN VAT rule for foreign currency and a valid XML example.
- Nagłówek in FA(3): the invoice header
The Nagłówek header of a KSeF FA(3) invoice: KodFormularza, WariantFormularza, DataWytworzeniaFa and SystemInfo, with a valid XML example.
- NoweSrodkiTransportu in FA(3): new means of transport
The mandatory NoweSrodkiTransportu block in FA(3) Adnotacje: P_22 for intra-Community supply of new means of transport, or P_22N=1.
- NrKlienta in FA(3): the buyer's customer number
What NrKlienta is in a KSeF FA(3) invoice: its path under Podmiot2, the 1–256 character limit, how it differs from the NIP, and a valid snippet.
- NrWierszaFa in FA(3): the invoice line number
How to fill NrWierszaFa (the line number) in each FaWiersz of a KSeF FA(3) invoice: format, sequence and a valid XML example.
- P_1 in FA(3): invoice issue date
How to fill P_1 (data wystawienia) in a KSeF FA(3) invoice: date format, timezone rules, common mistakes and a valid XML example.
- P_11 in FA(3): the net value of a line
How to fill P_11 (the net value) on each FaWiersz of a KSeF FA(3) invoice: when it is required, how it is calculated from P_9A and P_8B, and a valid XML snippet.
- P_12 in FA(3): the VAT rate on each invoice line
What P_12 holds in a KSeF FA(3) invoice line, the full list of values allowed by the schema, and which ones the Notaly API emits today.
- P_13_x in FA(3): net sales totals per VAT rate
How the P_13_x summary fields of a KSeF FA(3) invoice group net sales by VAT rate, and how Notaly computes P_13_1, P_13_2, P_13_3 and P_13_6_1.
- P_14_x in FA(3): VAT amount per rate
What the P_14_x fields of a KSeF FA(3) invoice hold, how they pair with P_13_x, and how Notaly calculates the VAT once per rate.
- P_15 in FA(3): total amount due on the invoice
What P_15 holds in a KSeF FA(3) invoice, where it sits in the XML and how Notaly computes it from the P_13_x and P_14_x sums.
- P_2 in FA(3): invoice number
What P_2 (numer identyfikujący fakturę) is in a KSeF FA(3) invoice, how to choose it, and a valid XML example.
- P_6 in FA(3): the date of supply
What P_6 (the date of supply or service completion) means in a KSeF FA(3) invoice, when to fill it, its date format and a valid XML example.
- P_7 in FA(3): the line item name
How to fill P_7 (the name of the goods or service) in each FaWiersz of a KSeF FA(3) invoice: when it is required, the 1–512 character format and what Notaly does.
- P_8A in FA(3): the unit of measure
How to fill P_8A (the measure of goods or scope of services) on each FaWiersz of a KSeF FA(3) invoice: when the VAT Act requires it, the 1–256 character format and what Notaly does.
- P_8B in FA(3): the quantity
How to fill P_8B (the quantity) on each FaWiersz of a KSeF FA(3) invoice: when the VAT Act requires it, the decimal format with up to 6 decimal places and what Notaly does.
- P_9A in FA(3): the unit net price
How to fill P_9A (the unit net price) on each FaWiersz of a KSeF FA(3) invoice: decimal format, how it relates to P_9B, and a valid XML example.
- Platnosc in FA(3): the payment information block
The optional Platnosc block of a KSeF FA(3) invoice: payment due dates, FormaPlatnosci vs PlatnoscInna + OpisPlatnosci, bank accounts and a valid snippet.
- PMarzy in FA(3): the margin scheme block
How the mandatory PMarzy block in FA(3) Adnotacje works: P_PMarzy with one margin type, or P_PMarzyN=1. Notaly always emits P_PMarzyN=1.
- Podmiot1 Adres in FA(3): the seller's address
The Adres block of Podmiot1 (the seller) in a KSeF FA(3) invoice: KodKraju, AdresL1, AdresL2, GLN and DaneKontaktowe, with a valid XML example.
- Podmiot1 in FA(3): the seller
How to fill Podmiot1 (the seller) in a KSeF FA(3) invoice: NIP, name, address, and a valid XML example.
- Podmiot1 DaneIdentyfikacyjne in FA(3): the seller's identity
The DaneIdentyfikacyjne block of Podmiot1 (the seller) in a KSeF FA(3) invoice: NIP, name (Nazwa), and a valid XML example.
- PrefiksPodatnika and NrEORI in FA(3): seller prefix and EORI number
The optional PrefiksPodatnika and NrEORI fields in the Podmiot1 (seller) identification block of a KSeF FA(3) invoice, with a valid XML example.
- Podmiot2 in FA(3): the buyer block
How to fill Podmiot2 (the buyer) in a KSeF FA(3) invoice: NIP, name, address and the JST/GV flags, with a valid XML example.
- Podmiot2 DaneIdentyfikacyjne in FA(3): the buyer's identity
The DaneIdentyfikacyjne block of Podmiot2 (the buyer) in a KSeF FA(3) invoice: NIP, KodUE, NrVatUE, NrID, BrakID, a valid XML example and what Notaly supports today.
- Podmiot3 and Rola in FA(3): third parties on an invoice
The optional Podmiot3 section and its Rola field in a KSeF FA(3) invoice: roles 8 and 10 linked to JST and GV, RolaInna and OpisRoli.
- RodzajFaktury in FA(3): the invoice type marker
What RodzajFaktury means in a KSeF FA(3) invoice: the seven values of TRodzajFaktury (VAT, KOR, ZAL, ROZ, UPR, KOR_ZAL, KOR_ROZ) and what Notaly emits today.
- SystemInfo in FA(3): naming the invoicing system
SystemInfo in the Naglowek of a KSeF FA(3) invoice: what to write, the 1–256 character limit, where it sits after DataWytworzeniaFa, and a valid snippet.
- Zwolnienie in FA(3): the VAT exemption block
How the mandatory Zwolnienie block in FA(3) Adnotacje works: P_19 with a legal basis, or P_19N=1 for no exempt supply. Notaly emits P_19N=1.
Guides
- KSeF API C# / .NET integration guide
Send a KSeF FA(3) invoice from C# and .NET with the Notaly API: HttpClient, decimal amounts, idempotency, error codes and status polling.
- From payment to your first KSeF Demo invoice
What happens after you pay for Notaly: connect a KSeF Demo token, send a test invoice with your API key, check the result, then move to production.
- KSeF API Java integration guide
Send a KSeF FA(3) invoice from Java 11+ with the Notaly API: java.net.http.HttpClient, idempotency, error codes and status polling.
- KSeF API Node.js integration guide
Send a KSeF FA(3) invoice from Node.js with the Notaly API: POST /invoices, idempotency, error handling and status tracking.
- KSeF API PHP integration guide
Send a KSeF FA(3) invoice from PHP with the Notaly API using cURL: POST /invoices, idempotency, error handling and status tracking.
- KSeF API Python integration guide
Send a KSeF FA(3) invoice from Python with the Notaly API using requests: POST /invoices, idempotency, error handling and status tracking.