UBL vs CII: the two syntaxes behind XRechnung, ZUGFeRD and Peppol
By evoicely · Last checked 20 October 2026
UBL and CII are two XML languages for the same invoice data. The European standard EN 16931 defines what an e-invoice contains, and allows two syntaxes to write it in: OASIS UBL 2.1 and UN/CEFACT CII. Peppol BIS Billing 3.0 uses only UBL, ZUGFeRD and Factur-X use only CII, and XRechnung may be either. So you rarely choose the syntax on its own: you choose the format your customer needs, and the syntax comes with it.
One data model, two syntaxes
EN 16931 is a semantic model: about 160 business terms such as BT-1 (invoice number) or BT-112 (total with VAT), plus business rules about how they fit together. It doesn't prescribe XML itself. Commission Implementing Decision (EU) 2017/1870 lists the syntaxes that may carry it, and CEN publishes a binding for each, which says exactly which element holds which term:
| UBL | CII | |
|---|---|---|
| Full name | Universal Business Language 2.1 | UN/CEFACT Cross Industry Invoice |
| Maintained by | OASIS (also published as ISO/IEC 19845:2015) | UN/CEFACT, the UN trade facilitation body |
| Version bound to EN 16931 | 2.1 | D16B (schema CrossIndustryInvoice_100pD16B) |
| Invoice and credit note | Two document types: Invoice and CreditNote | One document type; type code 381 in the same structure makes it a credit note |
| Used by | Peppol BIS Billing 3.0, XRechnung, France's reform | ZUGFeRD / Factur-X, XRechnung, France's reform |
Because both bindings map the same terms, a file in one syntax can be converted to the other without losing anything EN 16931 defines.
The European Commission publishes the EN 16931 business rules as two Schematron files, one per syntax, with the same rule IDs
(EN 16931 validation artefacts). BR-CO-15 means the same thing whether it fires on UBL or on CII.
Which format uses which syntax
| Format | UBL | CII | Source |
|---|---|---|---|
| Peppol BIS Billing 3.0 | Yes | No | OpenPeppol BIS Billing 3.0 |
| XRechnung 3.0 (Germany) | Yes | Yes | KoSIT, FeRD FAQ |
| ZUGFeRD / Factur-X (PDF with embedded XML) | No | Yes | FeRD FAQ |
| France's e-invoicing reform | Yes | Yes | DGFiP external specifications |
The FeRD FAQ puts the ZUGFeRD rule in one line: only the CII syntax is allowed, while XRechnung allows CII and UBL. In France, the three base formats every approved platform must support are UBL, CII and Factur-X (Factur-X being CII inside a PDF) (Dossier de spécifications externes, document général v3.2, 30 April 2026).
A note on CII versions: XRechnung and the EN 16931 rules check CII against the D16B schema. France's specifications name D22B as the CII version for the reform, and FNFE-MPE describes the XML of the current Factur-X release in D22B too (FNFE-MPE). If a recipient names a CII version, use that one.
The same invoice in both syntaxes
Below is one fictional invoice: a €49 monthly plan with 19% VAT, from a German seller to a German buyer. We generated it with evoicely's converter as XRechnung 3.0 in both syntaxes.
Both complete files pass the official checks in our validator: the XML schema, the EN 16931 rules 1.3.16 and KoSIT's XRechnung 3.0.2 rules, with no errors or warnings.
The excerpts show the same business terms; ... marks parts left out, and the <!-- --> comments were added for this page.
UBL
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID> <!-- BT-24 -->
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> <!-- BT-23 -->
<cbc:ID>INV-2026-0042</cbc:ID> <!-- BT-1 invoice number -->
<cbc:IssueDate>2026-11-02</cbc:IssueDate> <!-- BT-2 issue date -->
<cbc:DueDate>2026-11-16</cbc:DueDate> <!-- BT-9 -->
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> <!-- BT-3 -->
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
...
<cac:AccountingSupplierParty>
<cac:Party>
...
<cac:PartyLegalEntity>
<cbc:RegistrationName>Beispiel Software GmbH</cbc:RegistrationName> <!-- BT-27 seller name -->
</cac:PartyLegalEntity>
...
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">49.00</cbc:LineExtensionAmount> <!-- BT-106 -->
<cbc:TaxExclusiveAmount currencyID="EUR">49.00</cbc:TaxExclusiveAmount> <!-- BT-109 -->
<cbc:TaxInclusiveAmount currencyID="EUR">58.31</cbc:TaxInclusiveAmount> <!-- BT-112 -->
<cbc:PayableAmount currencyID="EUR">58.31</cbc:PayableAmount> <!-- BT-115 -->
</cac:LegalMonetaryTotal>
<cac:InvoiceLine> <!-- BG-25 -->
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">49.00</cbc:LineExtensionAmount> <!-- BT-131 -->
<cac:Item>
<cbc:Name>Pro plan (monthly)</cbc:Name> <!-- BT-153 -->
...
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">49</cbc:PriceAmount> <!-- BT-146 -->
</cac:Price>
</cac:InvoiceLine>
</Invoice>
CII
<rsm:CrossIndustryInvoice
xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
<rsm:ExchangedDocumentContext>
<ram:BusinessProcessSpecifiedDocumentContextParameter> <!-- BT-23 -->
<ram:ID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</ram:ID>
</ram:BusinessProcessSpecifiedDocumentContextParameter>
<ram:GuidelineSpecifiedDocumentContextParameter> <!-- BT-24 -->
<ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
</rsm:ExchangedDocumentContext>
<rsm:ExchangedDocument>
<ram:ID>INV-2026-0042</ram:ID> <!-- BT-1 invoice number -->
<ram:TypeCode>380</ram:TypeCode> <!-- BT-3 -->
<ram:IssueDateTime> <!-- BT-2 issue date -->
<udt:DateTimeString format="102">20261102</udt:DateTimeString>
</ram:IssueDateTime>
</rsm:ExchangedDocument>
<rsm:SupplyChainTradeTransaction>
<ram:IncludedSupplyChainTradeLineItem> <!-- BG-25 -->
<ram:AssociatedDocumentLineDocument>
<ram:LineID>1</ram:LineID>
</ram:AssociatedDocumentLineDocument>
<ram:SpecifiedTradeProduct>
<ram:Name>Pro plan (monthly)</ram:Name> <!-- BT-153 -->
</ram:SpecifiedTradeProduct>
<ram:SpecifiedLineTradeAgreement>
<ram:NetPriceProductTradePrice>
<ram:ChargeAmount>49</ram:ChargeAmount> <!-- BT-146 -->
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="C62">1</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
...
<ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:LineTotalAmount>49.00</ram:LineTotalAmount> <!-- BT-131 -->
</ram:SpecifiedTradeSettlementLineMonetarySummation>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
...
<ram:SellerTradeParty>
<ram:Name>Beispiel Software GmbH</ram:Name> <!-- BT-27 seller name -->
...
<ram:ApplicableHeaderTradeSettlement>
<ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
...
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>49.00</ram:LineTotalAmount> <!-- BT-106 -->
<ram:TaxBasisTotalAmount>49.00</ram:TaxBasisTotalAmount> <!-- BT-109 -->
<ram:TaxTotalAmount currencyID="EUR">9.31</ram:TaxTotalAmount> <!-- BT-110 -->
<ram:GrandTotalAmount>58.31</ram:GrandTotalAmount> <!-- BT-112 -->
<ram:DuePayableAmount>58.31</ram:DuePayableAmount> <!-- BT-115 -->
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
</ram:ApplicableHeaderTradeSettlement>
</rsm:SupplyChainTradeTransaction>
</rsm:CrossIndustryInvoice>
What differs
- Structure. UBL is fairly flat: header fields, parties, payment, tax, totals, then lines. CII nests everything under the trade transaction, split into agreement (parties, references), delivery and settlement (currency, payment, tax, totals), and puts the lines first.
- Dates. UBL writes
2026-11-02. CII writes20261102withformat="102". - Currency on amounts. UBL puts
currencyIDon every amount. CII states the currency once (InvoiceCurrencyCode) and addscurrencyIDto the VAT total (BT-110). - Names of the same thing. The seller's legal name (BT-27) is
cac:PartyLegalEntity/cbc:RegistrationNamein UBL andram:SellerTradeParty/ram:Namein CII. The net price (BT-146) iscbc:PriceAmountversusram:ChargeAmount. - Element order. Both schemas fix the order of elements. A field in the wrong place fails the schema check even if every value is right.
- Credit notes. In UBL a credit note is a separate
CreditNotedocument withCreditNoteLineelements. In CII it's the sameCrossIndustryInvoicewith type code 381.
How to tell which syntax a file uses
Look at the root element and its namespace, in the first lines of the file:
| Root element | Namespace | Syntax |
|---|---|---|
Invoice | urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 | UBL invoice |
CreditNote | urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2 | UBL credit note |
rsm:CrossIndustryInvoice | urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100 | CII (invoice or credit note) |
The syntax doesn't say which format the file follows. That's the specification identifier, BT-24: cbc:CustomizationID in UBL, ram:GuidelineSpecifiedDocumentContextParameter/ram:ID in CII.
In the example above, both files say XRechnung 3.0. A PDF that looks like a normal invoice may hold CII inside: ZUGFeRD and Factur-X embed it as an attachment, usually named factur-x.xml.
Our free validator reads both, tells you the syntax and the format, and runs the matching official rules. It doesn't store your file.
Converting between UBL and CII
Converting is mostly a matter of mapping elements one to one, since both sides share the EN 16931 model. A few things to watch:
- Data beyond the core. Anything outside EN 16931, such as ZUGFeRD EXTENDED fields, has no place in the other syntax's binding and gets lost.
- The target format's rules. Changing the syntax doesn't change the format. A CII XRechnung converted to UBL is still an XRechnung. To make it a Peppol BIS invoice, BT-24 changes and Peppol's own rules apply, which check things XRechnung doesn't, and the other way round.
- Validate after converting. Run the result through the official rules for its syntax and format. Element order, date formats and decimal handling are easy places to slip.
For the checks themselves, see How to validate an XRechnung and How to validate a Peppol BIS 3.0 invoice.
Which one to generate from Stripe
Stripe invoices are JSON, so whatever you send has to be generated from them, and the format decides the syntax:
- German B2B customers who want a readable invoice: ZUGFeRD with the EN 16931 profile, so CII inside a PDF. See XRechnung vs ZUGFeRD.
- German customers or authorities who ask for XRechnung: either syntax is valid. Check whether the recipient's portal or software names one; if it doesn't, UBL keeps you closer to Peppol BIS, should you need that later.
- Belgian customers, or anyone on Peppol: UBL, as Peppol BIS Billing 3.0. See Belgium's Peppol mandate.
Whichever syntax you write, the hard part is the same: getting the data right. The field-by-field mapping is in Mapping a Stripe invoice to EN 16931.
Related guides
- What is EN 16931?: the data model both syntaxes carry.
- ZUGFeRD profiles explained: what the CII inside a ZUGFeRD PDF contains.
- How to open and read an XRechnung: where to find each field in UBL and CII.
- How to validate a Peppol BIS 3.0 invoice: the UBL-only side.
Where evoicely fits
evoicely writes both from your Stripe invoices: ZUGFeRD EN 16931 (CII inside a PDF/A-3) and XRechnung (UBL), each checked with the official validators before it goes out. Belgian sellers can also send their invoices over Peppol. Get started, free for 10 e-invoices a month.
This is general information, not legal or tax advice. Check what applies to your business with your tax advisor.