CII, the Cross Industry Invoice, is an XML standard for electronic invoices published by UN/CEFACT, the United Nations body for trade facilitation and electronic business. It is one of the two XML syntaxes allowed for the European e-invoicing standard EN 16931, alongside UBL, and it sits underneath popular hybrid formats such as Factur-X and ZUGFeRD, where a readable PDF carries an embedded CII file. Germany’s XRechnung can be issued in CII or UBL, and France’s e-invoicing reform accepts CII among its formats. For most businesses, CII is invisible: their software produces it. But finance teams, developers and anyone choosing e-invoicing tools benefit from understanding what CII is, how its structure works, how it differs from UBL, which versions are used and how validation works. This guide explains all of that in plain language. It is general information; always follow the current specifications for your country.

What CII is
The Cross Industry Invoice is part of UN/CEFACT’s family of XML schemas based on its Core Component Library, a shared vocabulary for trade data. It describes an invoice as structured data: who the parties are, what was supplied, prices, tax and payment terms, so that software can read it without human input.
The version used for EN 16931 is CII D16B. Later UN/CEFACT releases exist, but e-invoicing rules usually specify the exact version and customisation to use.
CII and EN 16931
EN 16931 is the European standard semantic model for e-invoices, defining the business terms an invoice must or may contain, such as invoice number, issue date, seller VAT identifier and totals. It allows two syntaxes to express that model: UBL 2.1 and UN/CEFACT CII D16B. Public bodies in the EU must accept invoices complying with EN 16931 in either syntax.
National specifications, called CIUS, add stricter rules, such as XRechnung in Germany. See the EU ViDA e-invoicing timeline for how mandates are expanding.
The structure of a CII invoice
A CII invoice has a root element, CrossIndustryInvoice, with three main parts.
| Section | Contains |
|---|---|
| ExchangedDocumentContext | Specification identifier, such as the CIUS or profile |
| ExchangedDocument | Invoice number, type code, issue date, notes |
| SupplyChainTradeTransaction | Line items, agreement, delivery, settlement |
| IncludedSupplyChainTradeLineItem | Each line: product, quantity, price, tax |
| ApplicableHeaderTradeAgreement | Seller, buyer, references such as PO |
| ApplicableHeaderTradeDelivery | Delivery date and place |
| ApplicableHeaderTradeSettlement | Currency, payment means, tax, totals |
Type codes and code lists
CII uses standard code lists. The document type code 380 means a commercial invoice and 381 a credit note. Currencies use ISO 4217 codes, countries ISO 3166, units of measure UN/ECE Recommendation 20 codes, and VAT categories codes such as S for standard rate, Z for zero rate, E for exempt and AE for reverse charge.
Using the wrong code is one of the most common causes of rejected e-invoices, so software should pick codes from validated lists. See credit notes and reverse charge invoices.
CII versus UBL
Both syntaxes can carry the same EN 16931 information, and conversion between them is possible for compliant invoices. UBL, from OASIS, is widely used in Peppol and northern Europe; CII is common in Germany and France and in hybrid PDF formats.
| Aspect | CII | UBL |
|---|---|---|
| Publisher | UN/CEFACT | OASIS |
| EN 16931 version | D16B | 2.1 |
| Common use | Factur-X, ZUGFeRD, XRechnung | Peppol BIS, many national formats |
| Structure | Agreement, delivery, settlement blocks | Flatter invoice document |
Factur-X and ZUGFeRD
Factur-X (France) and ZUGFeRD (Germany) are technically aligned hybrid formats: a PDF/A-3 document with an embedded CII XML file. People can read the PDF, while software reads the XML. Profiles range from minimal to extended; only some profiles, such as EN 16931 or Extended, meet full e-invoicing requirements. See Factur-X invoices.
In hybrid invoices, the XML is usually the legally relevant data, so the PDF and XML must match exactly.
XRechnung in CII
XRechnung, Germany’s CIUS of EN 16931, can be issued in CII or UBL. Invoices to German federal public bodies require a buyer reference called the Leitweg-ID. From 2025, German B2B rules require businesses to be able to receive structured e-invoices, with phased obligations to issue them, and both XRechnung and suitable ZUGFeRD profiles qualify.
Validation
CII invoices are validated in two layers: the XML schema checks structure and data types, and Schematron business rules check content, such as whether totals add up or required fields are present. Rules are named, for example BR-CO-15 for totals. National CIUS add their own rules. Validation tools and access points report errors so they can be fixed before sending.
How businesses create CII invoices
Most businesses never write XML. Accounting software, ERP systems and e-invoicing services generate CII from invoice data. Small businesses can use online portals or tools that create Factur-X or XRechnung files. Developers can use open-source libraries in many programming languages.
Whichever tool you use, make sure your master data, such as VAT numbers, addresses, units and tax categories, is accurate, because e-invoices expose data errors immediately.
Receiving CII invoices
Buyers receiving CII invoices can import them directly into accounting or AP systems. A viewer or visualisation tool shows the content in readable form when needed. Receiving systems should support both CII and UBL where EN 16931 invoices are expected. See the AP automation checklist.
Why structured data matters
A plain PDF must be read by a person or OCR software, with errors and delays. A CII invoice is read exactly by software, enabling automatic matching to orders, faster approval and real-time tax reporting. See e-invoices versus PDF invoices.
Need a simple PDF invoice today? Create one free.
Open the free invoice generatorPractical tips
Keep these points in mind.
- Use the version and profile required by your customer or country.
- Validate every invoice before sending.
- Keep PDF and XML consistent in hybrid formats.
- Store the XML as the original for tax retention.
- Use correct code lists for units, tax and currency.
- Test with key customers before mandates start.
Line items in detail
Each invoice line in CII sits in its own IncludedSupplyChainTradeLineItem block. It contains a line identifier, the product name and optional identifiers such as a seller item number or global trade item number, the net unit price, the billed quantity with its unit code, the applicable VAT category and rate, and the line net amount. Allowances and charges, such as a discount on one line, can be added at line level.
Header-level allowances and charges, such as a freight charge for the whole invoice, sit in the settlement section instead. Getting the level right matters, because totals are calculated and validated separately for lines and header.
How totals are calculated
The settlement section holds a summary of monetary totals: the sum of line net amounts, header allowances and charges, the total without VAT, the VAT total, the total with VAT, any prepaid amount, rounding and the amount due for payment. Business rules require these figures to be mathematically consistent, to two decimal places, and to match the VAT breakdown by category. Software that rounds differently from the rules is a common cause of rejections.
Prepaid amounts, such as deposits already received, reduce the amount due. Show them explicitly rather than reducing line prices, so the buyer can match the invoice to earlier payments.
Parties and identifiers
CII describes the seller, buyer and optional parties such as the payee or the seller tax representative, each with a name, postal address, electronic address and identifiers such as VAT numbers or company registration numbers with scheme codes. Electronic addresses are increasingly important, because networks route invoices using them. Accurate party data is the foundation of automated processing on the receiving side.
Checklist
Understand whether your customers need CII, UBL or a hybrid format; confirm your software supports the required CIUS and profile; clean master data; validate before sending; archive XML correctly; and stay up to date with national mandates. For the network many countries use, see Peppol BIS Billing.
CII invoice FAQ
What is CII?
The UN/CEFACT Cross Industry Invoice, an XML format for e-invoices.
Is CII allowed under EN 16931?
Yes, CII D16B is one of the two allowed syntaxes, with UBL 2.1.
Is Factur-X based on CII?
Yes, Factur-X and ZUGFeRD embed CII XML in a PDF/A-3 file.
Can XRechnung use CII?
Yes, XRechnung can be issued in CII or UBL.
Do I need to write CII XML myself?
No, software usually generates it from your invoice data.
Create a clear, complete invoice in minutes
Need a simple PDF invoice today? Create one free. No sign-up.
- 134 invoice and document types
- 16 country tax presets
- 35 languages


