Skip to main content

BT-130 Invoice line quantity unit of measure code

The unit of measure applicable to the quantity in the invoice line. Must use UNECE Recommendation 20 or 21 codes.

Quick answer

Line items

The goods or services on each invoice line, including quantities, prices, and VAT.

Quick actions

In plain language

Specifies the unit of measurement for the quantity to ensure accurate interpretation.

What you usually enter here

Three-letter code from UNECE Recommendation 20/21

Typical valid values include: EA, HUR, KGM, LTR

Optional but recommended for clarity and automated processing.

Where the field sits

Lines
UBL 2.1 Syntax
  1. Invoice
  2. cac:InvoiceLine
  3. cbc:InvoicedQuantity @unitCodeBT-130
CII (UN/CEFACT) Syntax
  1. rsm:CrossIndustryInvoice
  2. rsm:SupplyChainTradeTransaction
  3. ram:IncludedSupplyChainTradeLineItem
  4. ram:SpecifiedLineTradeDelivery
  5. ram:BilledQuantity @unitCodeBT-130
BT-130 belongs to the Lines part of the invoice. UBL 2.1 Syntax: Invoice › cac:InvoiceLine › cbc:InvoicedQuantity @unitCode. CII (UN/CEFACT) Syntax: rsm:CrossIndustryInvoice › rsm:SupplyChainTradeTransaction › ram:IncludedSupplyChainTradeLineItem › ram:SpecifiedLineTradeDelivery › ram:BilledQuantity @unitCode.

What goes wrong often

Avoid values like: each, kg, 999

Relevant rule codes: BR-23, BR-CL-23

Valid Examples

  • EA
  • HUR
  • KGM
  • LTR
  • MTK
  • MTR
  • PCE

Invalid Examples

  • each
  • kg
  • 999

XML mapping and field facts

Open the technical reference if you need XML paths, validator rule codes, legal wording, or schema-specific mapping details.

Field ID:

BT-130

Data Type:

code

Cardinality:

0..1

Requirement:

Optional

Max Length:

3 characters

XML Implementation

UBL 2.1 Syntax
/Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode
CII (UN/CEFACT) Syntax
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode

Validation Rules

BR-23

BR-23

BR-CL-23

BR-CL-23

Next step

Create an XRechnung from your PDF and confirm the BT-130 code

The converter determines the code from the details on the invoice. You see the value before download and can correct it; the invoice is checked against the XRechnung rules. Already have an XML file? The free validator reports findings for this field, for example BR-CL-23, BR-23.

Download requires an account. Subscriptions from €10/month with annual billing (excl. taxes), or €5 per conversion (excl. taxes) without a subscription.

Official sources and tools