# BR-23

> An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).

Checked against Peppol BIS Billing 3.0 2026.5

Canonical: https://einvoicecheck.eu/rules/br-23

## Official rule text

An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).

## Why did my invoice fail BR-23?

Each Invoice line (BG-25) must express its Invoiced quantity (BT-129) with a unit of measure code (BT-130) taken from UN/ECE Recommendation 20 (and Rec 21). The unit code makes the quantity meaningful (pieces, kilograms, hours, etc.). In UBL this is the unitCode attribute on the quantity element rather than a separate tag.

## Common causes

- The cbc:InvoicedQuantity element is present but has no unitCode attribute.
- A free-text or invalid unit (e.g. 'pcs' or 'each') was used instead of a valid UN/ECE Rec 20 code such as C62.
- The unit code was placed in a description field instead of the unitCode attribute.

## How do I fix it?

```
<cbc:InvoicedQuantity unitCode="C62">2</cbc:InvoicedQuantity>
<!-- C62 = one/piece; use H87 for piece, KGM for kg, HUR for hour, etc. -->
```
