UBL, CII and EN 16931: the formats behind e-invoices
Most European e-invoices follow one standard, EN 16931, written in one of two XML languages. A few lines at the top of the file tell you which one, and which extra rules it claims to follow.
One standard, two syntaxes
EN 16931-1 is the European standard for the content of an e-invoice: which pieces of information it has (invoice number, seller, buyer, VAT breakdown, amount due…) and what each one means. It defines them as business terms with numbers — BT-1 is the invoice number, BT-115 the amount due.
The standard does not prescribe one file format. The European Commission lists exactly two syntaxes that carry it: the UN/CEFACT Cross Industry Invoice (CII, XML schemas 16B) and UBL invoice and credit-note messages (ISO/IEC 19845:2015, which is UBL 2.1) — Implementing Decision (EU) 2017/1870. So the same invoice can arrive as UBL or as CII, and both are equally standard.
The business terms are the same in both; only the names and places of the XML elements differ. The invoice number BT-1 is the ID element directly under the root in UBL, and the ID inside the ExchangedDocument block in CII. The amount due BT-115 is PayableAmount in UBL and DuePayableAmount in CII. A reader that works by business term, as this site does, shows both the same way.
Recognising the syntax from the first lines
You do not need to read XML to tell which one you have. Open the file in a plain text editor such as Notepad or TextEdit and look at the first element after the line that starts with <?xml — the root element — and at the address in its xmlns attribute, the namespace. The namespace is the reliable part. The short prefix in front of the element name (ubl:, rsm: or none at all) is chosen by the software that wrote the file and varies from sender to sender.
- UBL invoice: root element Invoice, namespace urn:oasis:names:specification:ubl:schema:xsd:Invoice-2.
- UBL credit note: root element CreditNote, namespace urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2. A credit note reduces what is owed; it is not a second bill.
- CII: root element CrossIndustryInvoice, namespace urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100. CII uses the same root for credit notes; the document type code (BT-3) inside tells them apart — 380 is an invoice, 381 a credit note.
- ZUGFeRD 1.0: root element CrossIndustryDocument. This is the first ZUGFeRD version, older than the CII invoice above. Germany's tax administration names ZUGFeRD only from version 2.0.1 among its e-invoice formats.
Two checks come before that. If the file begins with %PDF it is a PDF, whatever its name says — possibly a Factur-X or ZUGFeRD PDF with the XML inside. If it begins with UNA or UNB+ it is an EDIFACT message, an older electronic data interchange format that is not XML at all. And if the very first characters look like , that is a byte-order mark displayed in the wrong encoding: harmless, and ten real invoices in our test collection started that way.
Reading the specification identifier
One value in the file says which rules it claims to follow: the specification identifier, business term BT-24. In UBL it is the CustomizationID element near the top. In CII it is the ID inside GuidelineSpecifiedDocumentContextParameter, in the ExchangedDocumentContext block at the start of the file.
The value is built like a chain. It starts with urn:cen.eu:en16931:2017, which is EN 16931 itself, and each further part adds a layer, introduced by #compliant# or #conformant#. Compliant marks a CIUS: a narrowing that stays inside the standard. Conformant marks an extension that adds information the standard does not have, so a reader that knows only EN 16931 will not understand all of it. Real examples from our test collection:
- urn:cen.eu:en16931:2017 — the plain European standard. A Factur-X or ZUGFeRD file in the EN 16931 profile carries exactly this.
- urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 — Peppol BIS Billing 3.0.
- urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0 — XRechnung 3.0, Germany's CIUS.
- urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0 — the XRechnung extension: a narrowing and an extension in one chain.
- urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended — the Factur-X EXTENDED profile.
- urn:factur-x.eu:1p0:minimum and urn:factur-x.eu:1p0:basicwl — note that the EN 16931 part is missing. These two Factur-X profiles sit below the standard and are not EN 16931 invoices.
Because the parts chain, an identifier has to be read part by part, not compared with a list of fixed strings. Real files also contain slips: one in our collection had #compliant#compliant# with the actual identifier pushed to the end. A good reader still finds it; a strict string match does not.
A second value, the business process type (BT-23, ProfileID in UBL), says which business process the invoice belongs to. It is optional in EN 16931, but Peppol uses it: an ordinary Peppol invoice carries urn:fdc:peppol.eu:2017:poacc:billing:01:1.0.
Specialisations: XRechnung, Peppol BIS and others
Countries and networks narrow the standard down for their use — a CIUS, a core invoice usage specification. Peppol BIS Billing 3.0 is one: OpenPeppol states that any document following it is always compliant with EN 16931. XRechnung is Germany's, operated by KoSIT since 1 January 2019, and it exists in both syntaxes. Others this site recognises by their identifier include NLCIUS (Netherlands), UBL.BE (Belgium), the French Peppol CIUS, PEF (Poland), EHF (Norway), CIUS-RO (Romania) and CIUS-IT (Italy). A layer the reader does not know is shown by its own identifier, never passed off as plain EN 16931.
The identifier is a claim, not a proof. It says which rules the sender's software meant to follow; whether the file actually follows them is what a rule check tests. The rule check on this site runs the XML schema, EN 16931 and, when the file claims it, XRechnung. The Peppol BIS rules are not included, and the report says which rule sets ran.
Formats outside EN 16931
Not every e-invoice is UBL or CII. Some countries use structures of their own:
- FatturaPA (Italy): root element FatturaElettronica.
- ISDOC (Czechia): namespace http://isdoc.cz/namespace/2013, root element Invoice — the same name as UBL, so only the namespace tells them apart.
- KSeF FA(3) (Poland): root element Faktura, with a namespace under http://crd.gov.pl/wzor/.
- Facturae (Spain) and EDIFACT INVOIC, the older message standard.
The reader opens KSeF FA(3), ISDOC and FatturaPA invoices. Facturae and EDIFACT it names without reading them, rather than showing a guess.
Why this matters when you receive one
- Your accounting software reads the data, not a picture — so the XML is the invoice.
- Opening an XML file directly shows tags, not an invoice. A reader like this site turns the business terms back into a readable document, in your language.
- The specification identifier tells you which country's or network's rules the invoice was written for, which is a useful hint when a supplier abroad sends something your software rejects.
- A copy of EN 16931-1 itself can be obtained free of charge from any national standards body that is a CEN member, as the Peppol documentation notes.
Facts on this page were checked against primary sources on 2026-11-04.