# 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

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

> **Line items**: The goods or services on each invoice line, including quantities, prices, and VAT.

## In plain language

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

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

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.

## What goes wrong often

Avoid values like: , each, kg, 999

Relevant rule codes: BR-2, BR-CO-10

## Examples in context

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

Optional but recommended for clarity and automated processing.

## Valid Examples

- EA
- HUR
- KGM
- LTR
- MTK
- MTR
- PCE

## Invalid Examples

- each
- kg
- 999

## Related Fields

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

- [BT-129 Invoice line quantity](/resources/xrechnung/bt-129-invoice-line-quantity)
- [BT-131 Invoice line net amount](/resources/xrechnung/bt-131-invoice-line-net-amount)

## 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

### Since Version:
Optional

## XML Implementation

### UBL 2.1 Syntax
```
/Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode
```

### CII (UN/CEFACT) Syntax
```
/CrossIndustryInvoice/SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:BilledQuantity/@unitCode
```

## Validation Rules

### BR-2
BR-2

### BR-CO-10
BR-CO-10

## Why the standard cares about this field

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

### Legal Requirement
Optional but recommended for clarity and automated processing.

## Official sources and tools

- [KoSIT Validator](https://erechnungsvalidator.service-bw.de/)
- [Invoice Converter](/pdf-to-xrechnung)
- [XRechnung Standard](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
