CII and UBL side by side: where each invoice field is

The main fields of an invoice, with their EN 16931 numbers, and where to find each one in a CII file and in a UBL file.

  • Updated 24 October 2026
  • 4 min read
  • In English, French and German

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, five long beginnings are shortened:

  • Agreement stands for rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement
  • Settlement stands for rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement
  • Delivery stands for rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery
  • Totals stands for Settlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation
  • Line stands for rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem

The document

FieldCIIUBL
Specification identifier (BT-24)rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:IDcbc:CustomizationID
Business process (BT-23)rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:IDcbc:ProfileID
Invoice number (BT-1)rsm:ExchangedDocument/ram:IDcbc:ID
Type code (BT-3)rsm:ExchangedDocument/ram:TypeCodecbc:InvoiceTypeCode
Issue date (BT-2)rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeStringcbc:IssueDate
Due date (BT-9)Settlement/ram:SpecifiedTradePaymentTerms/ram:DueDateDateTime/udt:DateTimeStringcbc:DueDate
Currency (BT-5)Settlement/ram:InvoiceCurrencyCodecbc:DocumentCurrencyCode
Buyer reference (BT-10)Agreement/ram:BuyerReferencecbc:BuyerReference
Purchase order reference (BT-13)Agreement/ram:BuyerOrderReferencedDocument/ram:IssuerAssignedIDcac:OrderReference/cbc:ID
Invoice note (BT-22)rsm:ExchangedDocument/ram:IncludedNote/ram:Contentcbc:Note

The parties

FieldCIIUBL
Seller name (BT-27)Agreement/ram:SellerTradeParty/ram:Namecac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
Seller legal identifier (BT-30)Agreement/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:IDcac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
Seller VAT identifier (BT-31)Agreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:IDcac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
Buyer name (BT-44)Agreement/ram:BuyerTradeParty/ram:Namecac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
Buyer VAT identifier (BT-48)Agreement/ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:IDcac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
Payee name (BT-59)Settlement/ram:PayeeTradeParty/ram:Namecac:PayeeParty/cac:PartyName/cbc:Name

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.

Invoice period and delivery

FieldCIIUBL
Invoicing period start date (BT-73)Settlement/ram:BillingSpecifiedPeriod/ram:StartDateTime/udt:DateTimeStringcac:InvoicePeriod/cbc:StartDate
Invoicing period end date (BT-74)Settlement/ram:BillingSpecifiedPeriod/ram:EndDateTime/udt:DateTimeStringcac:InvoicePeriod/cbc:EndDate
Deliver to party name (BT-70)Delivery/ram:ShipToTradeParty/ram:Namecac:Delivery/cac:DeliveryParty/cac:PartyName/cbc:Name
Actual delivery date (BT-72)Delivery/ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTimeStringcac:Delivery/cbc:ActualDeliveryDate
Deliver to country (BT-80)Delivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryIDcac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode

The lines

FieldCIIUBL
Line identifier (BT-126)Line/ram:AssociatedDocumentLineDocument/ram:LineIDcac:InvoiceLine/cbc:ID
Item name (BT-153)Line/ram:SpecifiedTradeProduct/ram:Namecac:InvoiceLine/cac:Item/cbc:Name
Quantity (BT-129)Line/ram:SpecifiedLineTradeDelivery/ram:BilledQuantitycac:InvoiceLine/cbc:InvoicedQuantity
Net unit price (BT-146)Line/ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmountcac:InvoiceLine/cac:Price/cbc:PriceAmount
Line net amount (BT-131)Line/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmountcac:InvoiceLine/cbc:LineExtensionAmount
Line VAT category (BT-151)Line/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCodecac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID
Line VAT rate (BT-152)Line/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercentcac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent

VAT and totals

FieldCIIUBL
VAT category taxable amount (BT-116)Settlement/ram:ApplicableTradeTax/ram:BasisAmountcac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount
VAT category amount (BT-117)Settlement/ram:ApplicableTradeTax/ram:CalculatedAmountcac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount
VAT category code (BT-118)Settlement/ram:ApplicableTradeTax/ram:CategoryCodecac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID
VAT rate (BT-119)Settlement/ram:ApplicableTradeTax/ram:RateApplicablePercentcac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent
Sum of line net amounts (BT-106)Totals/ram:LineTotalAmountcac:LegalMonetaryTotal/cbc:LineExtensionAmount
Total without VAT (BT-109)Totals/ram:TaxBasisTotalAmountcac:LegalMonetaryTotal/cbc:TaxExclusiveAmount
Total VAT (BT-110)Totals/ram:TaxTotalAmountcac:TaxTotal/cbc:TaxAmount
Total with VAT (BT-112)Totals/ram:GrandTotalAmountcac:LegalMonetaryTotal/cbc:TaxInclusiveAmount
Paid amount (BT-113)Totals/ram:TotalPrepaidAmountcac:LegalMonetaryTotal/cbc:PrepaidAmount
Amount due (BT-115)Totals/ram:DuePayableAmountcac:LegalMonetaryTotal/cbc:PayableAmount

Allowances and charges

A document level allowance (a discount) and a charge (a fee) use the same element in both syntaxes; an indicator says which one it is: ram:ChargeIndicator/udt:Indicator in CII and cbc:ChargeIndicator in UBL, false for an allowance and true for a charge.

FieldCIIUBL
Amount of an allowance or a charge (BT-92, BT-99)Settlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmountcac:AllowanceCharge/cbc:Amount
Reason of an allowance or a charge (BT-97, BT-104)Settlement/ram:SpecifiedTradeAllowanceCharge/ram:Reasoncac:AllowanceCharge/cbc:AllowanceChargeReason
VAT category of an allowance or a charge (BT-95, BT-102)Settlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:CategoryCodecac:AllowanceCharge/cac:TaxCategory/cbc:ID
Sum of the allowances (BT-107)Totals/ram:AllowanceTotalAmountcac:LegalMonetaryTotal/cbc:AllowanceTotalAmount
Sum of the charges (BT-108)Totals/ram:ChargeTotalAmountcac:LegalMonetaryTotal/cbc:ChargeTotalAmount

Payment

FieldCIIUBL
Payment means code (BT-81)Settlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCodecac:PaymentMeans/cbc:PaymentMeansCode
IBAN of the payee (BT-84)Settlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount/ram:IBANIDcac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID
Payment terms (BT-20)Settlement/ram:SpecifiedTradePaymentTerms/ram:Descriptioncac: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.

Sources

  • EN 16931-1, the semantic model of the European standard (CEN): it gives each field its BT number.
  • CEN/TS 16931-3-2 and CEN/TS 16931-3-3: the technical specifications that bind the model to UBL 2.1 and to UN/CEFACT CII.
  • The validation artefacts of EN 16931 (European Commission, GitHub): the rules that check both syntaxes.
  • The paths of this guide are the ones the converter of this site reads and writes.

Last updated: 24 October 2026 · Written by CTC Engine. How the guides are written

Did this guide help you?

The guides are free and follow each new version of the rules. A small thank-you helps keep them up to date.