KSeF Faktury
EN
Join the start list

FA(3) schema: what a KSeF structured invoice contains

In short: FA(3), often searched as "FA 3", is the template for the structured invoice (faktura ustrukturyzowana) in force since 1 February 2026, that is the XML file your software sends to KSeF. The file has eight main parts, four of which are always mandatory, and distinguishes seven invoice types. An online store usually fills in only a small part of the fields, but it must do so exactly according to the schema, because KSeF rejects a file that does not match FA(3).

What FA 3, or FA(3), is and how it differs from FA(2)

An invoice in KSeF is not a PDF but an XML file that follows an electronic document template. This template is called the logical structure (struktura logiczna), and its current version is FA(3). The Ministry of Finance (MF) publishes it in the Central Repository of Electronic Document Templates (Centralne Repozytorium Wzorów Dokumentów Elektronicznych, crd.gov.pl).

Dates worth knowing:

FA(3) is one of several changes that came with the switch to KSeF 2.0, next to the new API, KSeF certificates, offline modes and QR codes. The full comparison of the old and new system: KSeF 2.0: what it is and what changed.

What changed compared with FA(2)? The MF lists, among others, a new way of giving the payment deadline, a new "employee" role in third-party data, a longer product name field, solutions for local government units and VAT groups, and the option to add an attachment (MF FAQ, category "Rozwiązania informatyczne, integracje i struktura KSeF", q. 4). The product name in field P_7 can now be up to 512 characters.

For a store the most important practical change is two new mandatory markers for the buyer: JST and GV. They say whether the invoice concerns a subordinate unit of local government or a member of a VAT group. In an ordinary sale to a business, both get the value "2" (not applicable), but the field must be in the file. Software built for FA(2) that does not send them will get a rejection.

Main sections of the XML file

The FA(3) schema consists of eight main elements (FA(3) information brochure):

Element What it contains Mandatory
Naglowek form code and variant, date and time the file was created, software name yes
Podmiot1 seller: NIP (Polish tax number), name, address, optional contact yes
Podmiot2 buyer: NIP or a "no identifier" marker, name, address, JST and GV markers yes
Podmiot3 third parties, e.g. recipient, factor, payer (up to 100 entries) no
PodmiotUpowazniony e.g. a bailiff or enforcement authority only when present
Fa invoice content: dates, number, amounts, rates, annotations, lines, payment yes
Stopka footer, KRS, REGON, BDO no
Zalacznik structured attachment for invoices with very large amounts of data no

Inside Fa the Rozliczenie, Platnosc and WarunkiTransakcji nodes are optional, and the Zamowienie node applies only to advance invoices (MF FAQ, category "Rozwiązania informatyczne, integracje i struktura KSeF", q. 9).

There is one trap here. If the software fills in an optional node, for example Platnosc with a bank account, the mandatory fields inside that node must also be in the file. A missing field of this kind is a schema error and the invoice is rejected (same source, q. 6).

Invoice types in FA(3)

The RodzajFaktury field takes seven values (FA(3) information brochure):

Code Type When in a store
VAT basic invoice ordinary business order
KOR correction invoice return, discount after sale, error in the invoice
ZAL advance invoice prepayment before the goods are delivered, when an invoice is required
ROZ final (settlement) invoice settling advances after the goods are delivered
UPR simplified invoice up to 450 zł gross, with the buyer's NIP instead of full details
KOR_ZAL correction of an advance invoice refund or change of a prepayment
KOR_ROZ correction of a final invoice change after advances were settled

A correction of a simplified invoice is marked KOR. There is no separate type for an export or "WDT" invoice: it is an ordinary VAT invoice with the right rate and buyer data. Corrections are covered in KSeF corrections and refunds.

Fields an online store fills in

A typical invoice for a business from a store order, in zloty, at 23% VAT, needs roughly this data:

Seller (Podmiot1)

Buyer (Podmiot2)

Invoice content (Fa)

Lines (FaWiersz), one per product and one for delivery if you charge shipping (which VAT rate applies to shipping is covered in shipping cost on the invoice, in Polish):

Payment (Platnosc), optional: the Zaplacono (paid) marker when the order was paid before the invoice was issued, and the payment method. For a store where the customer pays when ordering, this is useful information for the buyer's accountant.

On an invoice in a foreign currency the amounts are in that currency, and only the VAT (fields P_14_xW) and the exchange rate are given in zloty (MF FAQ, category "Rozwiązania informatyczne, integracje i struktura KSeF", q. 19). Details in KSeF invoice in euro.

You can leave out optional fields. An invoice that has all the data required by the Act and the schema is correct without the optional fields (MF FAQ, category "Zasady obowiązywania KSeF i przepisy prawne" (KSeF rules and legislation), q. 25).

What FA(3) does not contain

The KSeF number. The file only has your invoice number in field P_2, and the system assigns the KSeF number after accepting the file (Podręcznik KSeF 2.0 (KSeF 2.0 manual), part II, chapter 4.1). More in KSeF number.

The MF brochure and other materials

A full description of every field, with examples, is in the "Broszura informacyjna dotycząca struktury logicznej FA(3)" (FA(3) information brochure, August 2026 version, over 160 pages) on the KSeF 2.0 downloads page. The XSD schema and sample files are there too. If you are not writing your own integration, you do not need to read it all: it is enough to know that your software or store app must produce files that match FA(3), and to check this in the KSeF test environment before going live.

In our app KSeF Faktury for Shopify the FA(3) file is built from the order data (lines, shipping, currency), so the store does not fill in fields by hand. Our free KSeF module for PrestaShop works the same way; that page also compares PrestaShop modules, including a free GitHub module that still builds FA(2).

FAQ

Are "fa 3" and "FA(3)" the same thing?

Yes. FA(3) is the official name of the third variant of the structured invoice logical structure, and in search engines people often type it as "fa 3".

Can I still send an invoice in FA(2)?

No. Since 1 February 2026 FA(3) applies, also for corrections of invoices issued earlier in FA(2).

Does KSeF check whether the amounts are calculated correctly?

No. KSeF checks that the file matches the schema and that the sender has permissions, but it does not calculate amounts. An invoice with an arithmetic error will be accepted and has to be corrected (MF FAQ, category "Wystawianie i otrzymywanie faktur" (Issuing and receiving invoices), q. 19).

Does an invoice for a consumer also use the FA(3) structure?

Yes, if you issue it in KSeF (for consumers this is optional, art. 106ga ust. 2 pkt 4 of the VAT Act). Instead of the buyer's NIP you then enter the BrakID marker = "1". More on invoices for private individuals in KSeF invoice for consumers.

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.