PEPPOL BIS Billing 3.0 vs Poland KSeF FA(3) XML Schema Guide
Architectural comparison of PEPPOL BIS Billing 3.0 and Polish KSeF FA(3) XML formats. A technical mapping guide for international ERP engineers.
Law and schema as of: 21 November 2026 (Polish VAT Act, consolidated text Dz.U. 2026 poz. 1263; FA(3) logical structure per the Ministry of Finance information sheet).
International enterprise resource planning (ERP) platforms operating across Europe must support two fundamentally different electronic invoicing architectures: the decentralized PEPPOL BIS Billing 3.0 framework (based on UBL 2.1) and Poland's centralized National e-Invoicing System (KSeF) FA(3) XML schema. While PEPPOL routes invoices through a 4-corner network of certified access points, a Polish structured invoice is legally issued only when it is submitted to the Ministry of Finance KSeF system.
Architectural comparison: 4-Corner network vs central clearing
The fundamental divergence between European cross-border e-invoicing and Poland's KSeF lies in the messaging topology and legal moment of invoice issuance:
| Architectural Metric | PEPPOL BIS Billing 3.0 | Poland KSeF FA(3) |
|---|---|---|
| Network Topology | 4-Corner decentralized model | Centralized government clearing model (CTC) |
| Underlying XML Syntax | OASIS Universal Business Language (UBL 2.1) | Custom Ministry of Finance XML Schema (XSD) |
| Legal Issuance Moment | When Access Point C2 transmits to C3 | Date of submission to KSeF (art. 106na(1) of the VAT Act); the buyer is deemed to receive it when KSeF assigns the 35-character KSeF number (art. 106na(3)) |
| Validation Authority | PEPPOL Schematron rules at Access Point | Ministry of Finance central validation gateway |
| Archival Mandate | Stored by trading partners / service providers | Stored in KSeF for 10 years from the end of the year of issue (art. 112aa(1)) |
| B2C Scope | Optional / primarily B2G and B2B | Mandate excludes invoices to consumers, but they may be issued in KSeF voluntarily (art. 106ga(2)(4) and (4)) |
In PEPPOL, the seller ERP connects to an Access Point (Corner 2), which resolves the buyer Access Point (Corner 3) via the Service Metadata Publisher (SMP) and delivers the UBL XML invoice directly to the buyer ERP (Corner 4).
Under KSeF Continuous Transaction Controls (CTC), the seller authenticates against the Ministry of Finance API, submits the FA(3) XML payload, and receives an Official Confirmation of Receipt (UPO) containing the unique 35-character KSeF number. The buyer retrieves the invoice directly from the government database.
Structural XML mapping: UBL 2.1 to KSeF FA(3)
Engineering teams integrating ERP systems (such as SAP S/4HANA, Microsoft Dynamics 365, or NetSuite) must build transformation pipelines between UBL nodes and KSeF elements:
PEPPOL UBL 2.1 Node KSeF FA(3) Element
---------------------------------------- ----------------------------------------
/Invoice/cbc:ID /Faktura/Fa/P_2 (Internal Invoice Number)
/Invoice/cbc:IssueDate /Faktura/Fa/P_1 (Invoice Issue Date)
/Invoice/cac:AccountingSupplierParty /Faktura/Podmiot1 (Seller Identification)
/cac:Party/cac:PartyTaxScheme/cbc:CompanyID -> /Faktura/Podmiot1/DaneIdentyfikujace/NIP
/Invoice/cac:AccountingCustomerParty /Faktura/Podmiot2 (Buyer Identification)
/cac:Party/cac:PartyTaxScheme/cbc:CompanyID -> /Faktura/Podmiot2/DaneIdentyfikujace/NIP
/Invoice/cac:TaxTotal/cac:TaxSubtotal /Faktura/Fa/P_13_x + P_14_x (one pair per VAT rate)
/Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount -> /Faktura/Fa/P_15 (Total Gross Payable)
/Invoice/cac:InvoiceLine /Faktura/Fa/FaWiersz (Line Item Array)
Key schema difference: Tax bucket breakdowns
In PEPPOL UBL 2.1, tax subtotals group under repeatable <cac:TaxSubtotal> nodes using standard UN/ECE 5305 tax category codes (S for standard rate, Z for zero rate, E for exempt).
In KSeF FA(3), statutory tax amounts map to fixed, numbered element names derived directly from Polish VAT legislation:
P_13_1: Net turnover subject to standard 23% VAT rateP_14_1: Calculated VAT amount at 23%P_13_2: Net turnover subject to reduced 8% VAT rateP_14_2: Calculated VAT amount at 8%P_13_3: Net turnover subject to reduced 5% VAT rateP_14_3: Calculated VAT amount at 5%P_13_6_1: Net turnover at 0%, excluding intra-EU supplies of goods and exportsP_13_6_2: Net turnover at 0% for intra-EU supplies of goodsP_13_6_3: Net turnover at 0% for exportsP_13_7: Turnover exempt from VAT (zw)
When mapping PEPPOL tax categories, S splits into P_13_1 to P_13_3 by rate, Z maps to one of the P_13_6_x fields depending on the transaction type, and E maps to P_13_7.
<!-- Example tax breakdown segment in KSeF FA(3) XML -->
<Faktura xmlns="http://crd.gov.pl/wzor/2025/06/25/13775/">
<Fa>
<P_13_1>1000.00</P_13_1>
<P_14_1>230.00</P_14_1>
<P_15>1230.00</P_15>
</Fa>
</Faktura>
Production Pro-Tip: The offline contingency QR code requirement
Polish law allows invoices to be issued outside a live KSeF session in several modes:
- Offline24 (art. 106nda): the taxpayer issues the invoice in the FA(3) format and must send it to KSeF without delay, no later than the next working day after issue.
- KSeF unavailability (art. 106nf) and KSeF failure (art. 106nh): separate modes with their own submission deadlines, triggered by announced system outages.
If such an invoice is delivered to a buyer outside KSeF, for example as a PDF or printout, it must carry QR codes defined in the Ministry of Finance technical specification so that the recipient can verify the invoice in KSeF. Build QR generation into the same pipeline that produces the XML, because the code is derived from the final file.
During development and QA testing of ERP XML pipelines, engineers often need to inspect raw FA(2) and FA(3) XML files without installing desktop accounting suites. Use a browser-based KSeF XML viewer and generator to inspect node hierarchies, generate printable previews, and export batches of XML invoices to CSV spreadsheets locally. For checking statutory Polish net and gross VAT calculations and generating Polish currency text for contract terms, use an in-browser VAT calculator.
Frequently Asked Questions (FAQ)
Can a foreign company use PEPPOL to deliver invoices to Polish entities?
Yes. The KSeF mandate does not apply to taxpayers with neither a seat nor a fixed establishment in Poland, or whose Polish fixed establishment is not involved in the supply (art. 106ga(2)(1) and (2)). Such companies may keep using PEPPOL or other electronic or paper formats, and may also issue invoices in KSeF voluntarily (art. 106ga(4)).
What is the structure of the KSeF Reference Number?
The KSeF number is a 35-character string assigned by KSeF. Its format is 9999999999-YYYYMMDD-FFFFFFFFFFFF-FF: the seller's 10-digit NIP, a date, a 12-character hexadecimal technical part, and a 2-character hexadecimal checksum, separated by hyphens. Example (fictitious): 1234567890-20261012-0A1B2C3D4E5F-BD.
Does KSeF accept PDF attachments inside the XML invoice?
No. Unlike hybrid formats such as Factur-X or ZUGFeRD, which embed XML inside PDF/A-3 containers, FA(3) has no element for embedding PDF or other binary files. FA(3) does add an optional structured Zalacznik (attachment) element, but it holds structured data such as text and tables for invoices with a complex volume of units, quantities, or unit prices, not files.
References & Official Sources
- Polish Ministry of Finance: Information sheet on the FA(3) logical structure (PDF) - descriptions of P_13_x, P_15 and Zalacznik.
- FA(3) XSD schema - Central Repository of Electronic Document Templates (CRD)
- Polish VAT Act, consolidated text Dz.U. 2026 poz. 1263 (PDF, Sejm) - art. 106ga, 106na, 106nda, 106nf, 106nh, 112aa.
- KSeF number and collective identifier - Ministry of Finance KSeF portal (Polish)
- OpenPEPPOL: PEPPOL BIS Billing 3.0 specification
- Directive 2014/55/EU on electronic invoicing in public procurement (EUR-Lex)
This article is for general information only and is not tax or legal advice. Confirm implementation details with a Polish tax adviser and the current Ministry of Finance specifications.