Skip to content

KSeF FA(3) API

Check FA(3) structured invoices (structure 1-0E) against the official XML Schema of the Ministry of Finance before you submit them: POST /v1/invoices/validate returns readable findings with line numbers. FA(2) files are recognised and reported as no longer accepted.

Convert an EN 16931 or XRechnung invoice to FA(3) with POST /v1/invoices/convert?target=ksef. Polish data that EN 16931 does not carry, such as the annotations, is passed as options and never guessed. FA(3) converts back to EN 16931 UBL or CII; data without an EN 16931 equivalent is listed instead of dropped.

The API does not submit invoices to KSeF. Submission needs the seller's own KSeF authorisation, and an invoice counts as issued only with its KSeF number.

curl https://einvoiceengine.com/v1/invoices/parse \
  -H "Authorization: Bearer $EINV_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @invoice.xml

Supported here

FormatVersionsChecks
KSeF FA(3) structured invoice (Poland) supportedFA(3) 1-0E (mandatory since 2026-02-01)XML well-formedness, FA(3) XML Schema (Ministerstwo Finansów), the same check KSeF applies on submission

Full list: supported formats and limitations.

Questions

Do you send invoices to KSeF?

No. The API validates and converts; you submit through your own KSeF access.

Which invoices can be converted to FA(3)?

Invoices (380) and self-billed invoices (389) of a seller with a valid Polish NIP. Credit notes and corrective invoices are refused with unsupported_conversion, because FA(3) correction data is not part of EN 16931.

What about invoices in another currency?

An FA(3) invoice in a currency other than PLN needs the VAT amount in PLN: the source must state BT-6 = PLN and BT-111, otherwise the conversion asks for the data (target_data_required).