Validation rules
BR-23 — EN 16931 rule
An invoiced quantity has no unit of measure code (BT-130).
- Rule
BR-23— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-130- Detected by
- tier 3 — KoSIT validator (authoritative)
- Reachability
- Only reachable when validating your own XML — normbill-generated documents cannot trigger it
line.unit defaults to "C62" (one/piece) in the request schema, so generated quantities always carry a unit.
How to fix it
Set the unitCode attribute on cbc:InvoicedQuantity to a UN/ECE Recommendation 20 code, e.g. C62.
BR-23 auf Deutsch — was bedeutet der Fehler?
Eine abgerechnete Menge hat keine Maßeinheit (BT-130).
So beheben Sie den Fehler
Setzen Sie das unitCode-Attribut auf cbc:InvoicedQuantity auf einen Code nach UN/ECE Empfehlung 20, z. B. C62.
Related rules
BR-22— An invoice line has no invoiced quantity (BT-129).BR-24— An invoice line has no line net amount (BT-131).BR-21— An invoice line has no line identifier (BT-126).BR-25— An invoice line has no item name (BT-153).BR-20— The tax representative's postal address must contain a country code (BT-69).BR-26— An invoice line has no item net price (BT-146).
Official sources
- XRechnung specification (KoSIT / xeinkauf.de)
- KoSIT validator on GitHub and the XRechnung validator configuration
Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.
Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.