Check the FA(3) file against the official XML schema of the Polish Ministry of Finance before you submit it. KSeF, the Polish national e-invoicing system, refuses files that do not match the schema. A check beforehand shows every problem at once, with a readable message and the line in the file.
Who must issue invoices in KSeF?
- from 1 February 2026: taxpayers whose sales in 2024, including VAT, exceeded 200 million złoty;
- from 1 April 2026: all other taxpayers;
- until the end of 2026, taxpayers whose sales documented by invoices do not exceed 10,000 złoty gross in a month are not yet obliged.
Receiving through KSeF has applied since 1 February 2026. Source: ksef.podatki.gov.pl.
What is FA(3)?
FA(3) is the logical structure of a structured invoice in KSeF, an XML format defined by an official XML schema. It replaced FA(2) on 1 February 2026; FA(2) files are no longer accepted. FA(3) is a national format, not an EN 16931 syntax, so a UBL or CII invoice has to be converted before it can be submitted.
Common reasons a file is refused
- the old structure: a file declares FA(2) or an outdated schema namespace;
- a missing mandatory element, for example the seller or buyer identification or the date of issue;
- a value in the wrong format: a NIP with separators, a date not in
YYYY-MM-DD, an amount with a comma instead of a dot or with more decimals than allowed; - elements in the wrong order: the schema fixes the sequence of elements;
- an invalid code, for example a currency or country code outside the allowed list.
How to validate an FA(3) file
curl -s https://einvoiceengine.com/v1/invoices/validate \
-H "Authorization: Bearer $EINV_KEY" -H "Content-Type: application/xml" \
--data-binary @fa3.xml
The file is checked against the official FA(3) schema (structure 1-0E). Each error comes with a readable explanation in Polish or another of eight languages and the line number. To try it without a key, use the KSeF validator.
KSeF also runs its own checks on submission, so a schema-valid file can still be refused there for other reasons — for example your authorisation or a duplicate invoice number.
Converting to and from FA(3)
- EN 16931 to FA(3):
target=ksefwrites an FA(3) file from UBL, CII or Peppol BIS. Polish data that EN 16931 does not carry, such as the annotations, is passed as options and never guessed. - FA(3) to EN 16931: FA(3) converts into UBL or CII, for example for a customer abroad. Polish-only data is listed as data loss.
See conversion for the details.
Frequently asked questions
Do you submit invoices to KSeF?
No. Submission needs your own authorised access to KSeF. The service checks and converts the document.
Is FA(2) still accepted?
No. Since 1 February 2026 only FA(3) is accepted; FA(2) files are recognised and reported as no longer accepted.
Does a schema-valid file always pass KSeF?
Not always. The schema check covers the structure and values; KSeF adds checks of its own on submission.
E-Invoicing API