In short
UBL and CII both carry the data of the European standard EN 16931, but they organize it differently. A field that sits in one place in a UBL file sits somewhere else in a CII file, under another name. This guide shows where the main fields of an invoice are in each syntax, so you can read an XML file by eye, find a value, or compare a converted invoice with its source.
The numbers in brackets (BT-1, BT-2...) are the identifiers EN 16931 gives to each field. They are the same in both syntaxes, which is what makes a conversion possible.
How to read the paths
UBL invoices have the root element Invoice. Simple values are in cbc: elements and groups in cac: elements. The paths below start inside the root.
CII invoices have the root element rsm:CrossIndustryInvoice, with three blocks: rsm:ExchangedDocumentContext (which specification and process the invoice follows), rsm:ExchangedDocument (number, type, date) and rsm:SupplyChainTradeTransaction (parties, lines, payment, totals). To keep the table readable, four long beginnings are shortened:
Agreement stands for rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreementSettlement stands for rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlementTotals stands for Settlement/ram:SpecifiedTradeSettlementHeaderMonetarySummationLine stands for rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem
The document
| Field | CII | UBL |
|---|
| Specification identifier (BT-24) | rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID | cbc:CustomizationID |
| Business process (BT-23) | rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID | cbc:ProfileID |
| Invoice number (BT-1) | rsm:ExchangedDocument/ram:ID | cbc:ID |
| Type code (BT-3) | rsm:ExchangedDocument/ram:TypeCode | cbc:InvoiceTypeCode |
| Issue date (BT-2) | rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeString | cbc:IssueDate |
| Due date (BT-9) | Settlement/ram:SpecifiedTradePaymentTerms/ram:DueDateDateTime/udt:DateTimeString | cbc:DueDate |
| Currency (BT-5) | Settlement/ram:InvoiceCurrencyCode | cbc:DocumentCurrencyCode |
| Buyer reference (BT-10) | Agreement/ram:BuyerReference | cbc:BuyerReference |
| Purchase order reference (BT-13) | Agreement/ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID | cac:OrderReference/cbc:ID |
| Invoice note (BT-22) | rsm:ExchangedDocument/ram:IncludedNote/ram:Content | cbc:Note |
The parties
| Field | CII | UBL |
|---|
| Seller name (BT-27) | Agreement/ram:SellerTradeParty/ram:Name | cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName |
| Seller legal identifier (BT-30) | Agreement/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID | cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID |
| Seller VAT identifier (BT-31) | Agreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID | cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID |
| Buyer name (BT-44) | Agreement/ram:BuyerTradeParty/ram:Name | cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName |
| Buyer VAT identifier (BT-48) | Agreement/ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID | cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID |
Identifiers carry a scheme that says what they are: in France, a SIREN is the legal identifier with the scheme 0002 (the schemeID attribute in both syntaxes), and a VAT number is marked VA in CII.
The lines
| Field | CII | UBL |
|---|
| Line identifier (BT-126) | Line/ram:AssociatedDocumentLineDocument/ram:LineID | cac:InvoiceLine/cbc:ID |
| Item name (BT-153) | Line/ram:SpecifiedTradeProduct/ram:Name | cac:InvoiceLine/cac:Item/cbc:Name |
| Quantity (BT-129) | Line/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity | cac:InvoiceLine/cbc:InvoicedQuantity |
| Net unit price (BT-146) | Line/ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmount | cac:InvoiceLine/cac:Price/cbc:PriceAmount |
| Line net amount (BT-131) | Line/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount | cac:InvoiceLine/cbc:LineExtensionAmount |
| Line VAT category (BT-151) | Line/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode | cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID |
| Line VAT rate (BT-152) | Line/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent | cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent |
VAT and totals
| Field | CII | UBL |
|---|
| VAT category taxable amount (BT-116) | Settlement/ram:ApplicableTradeTax/ram:BasisAmount | cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount |
| VAT category amount (BT-117) | Settlement/ram:ApplicableTradeTax/ram:CalculatedAmount | cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount |
| VAT category code (BT-118) | Settlement/ram:ApplicableTradeTax/ram:CategoryCode | cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID |
| VAT rate (BT-119) | Settlement/ram:ApplicableTradeTax/ram:RateApplicablePercent | cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent |
| Sum of line net amounts (BT-106) | Totals/ram:LineTotalAmount | cac:LegalMonetaryTotal/cbc:LineExtensionAmount |
| Total without VAT (BT-109) | Totals/ram:TaxBasisTotalAmount | cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount |
| Total VAT (BT-110) | Totals/ram:TaxTotalAmount | cac:TaxTotal/cbc:TaxAmount |
| Total with VAT (BT-112) | Totals/ram:GrandTotalAmount | cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount |
| Paid amount (BT-113) | Totals/ram:TotalPrepaidAmount | cac:LegalMonetaryTotal/cbc:PrepaidAmount |
| Amount due (BT-115) | Totals/ram:DuePayableAmount | cac:LegalMonetaryTotal/cbc:PayableAmount |
Payment
| Field | CII | UBL |
|---|
| Payment means code (BT-81) | Settlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode | cac:PaymentMeans/cbc:PaymentMeansCode |
| IBAN of the payee (BT-84) | Settlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount/ram:IBANID | cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID |
| Payment terms (BT-20) | Settlement/ram:SpecifiedTradePaymentTerms/ram:Description | cac:PaymentTerms/cbc:Note |
Differences that are not about a field
- Dates. UBL writes a date as
2026-01-15. CII writes it as 20260115, with a format="102" attribute that says "year, month, day". - Currencies. UBL repeats the
currencyID attribute on every amount. CII amounts have none, except the total VAT amount: the currency of the invoice is the InvoiceCurrencyCode element. - Credit notes. In CII a credit note is the same document with the type code
381. In UBL it is another document, with the root CreditNote, a CreditNoteTypeCode and CreditNoteLine elements (with CreditedQuantity). - Repeated groups. A VAT category appears once per rate in the totals, and on each line. The totals must agree with the lines, in both syntaxes.
Using this when you convert
After a conversion, pick a few fields (the number, the totals, one line, the VAT number) and find them in the source and in the result with this table. The checklist lists what to compare, and the converter does the conversion itself.
Last updated: 2026-10-19