Validation rules

BR-23

An invoiced quantity has no unit of measure code (BT-130).

Rule
BR-23official 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.

Official sources

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.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.