Validation rules
BR-22 — EN 16931 rule
An invoice line has no invoiced quantity (BT-129).
- Rule
BR-22— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-129— Invoiced quantity- Field in your JSON
invoice.lines[*].qty- Detected by
- tier 3 — KoSIT validator (authoritative)
- Reachability
- Only reachable when validating your own XML — normbill-generated documents cannot trigger it
The request schema requires line.qty on every line.
How to fix it
Add cbc:InvoicedQuantity to the line.
BR-22 auf Deutsch — was bedeutet der Fehler?
Eine Rechnungsposition hat keine abgerechnete Menge (BT-129).
So beheben Sie den Fehler
Ergänzen Sie cbc:InvoicedQuantity in der Position.
Related rules
BR-21— An invoice line has no line identifier (BT-126).BR-23— An invoiced quantity has no unit of measure code (BT-130).BR-20— The tax representative's postal address must contain a country code (BT-69).BR-24— An invoice line has no line net amount (BT-131).BR-19— A seller tax representative (BG-11) must carry a postal address (BG-12).BR-25— An invoice line has no item name (BT-153).
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.