Validation rules
BR-42
A line-level allowance must state why it is granted (BT-139/BT-140).
- Rule
BR-42— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-139— Line allowance reason- Field in your JSON
invoice.lines[*].allowances
How to fix it
Set the allowance's reason (e.g. "Mengenrabatt") or a UNCL 5189 reason_code.
BR-42 auf Deutsch — was bedeutet der Fehler?
Ein Nachlass auf Positionsebene muss begründet werden (BT-139 Freitext oder BT-140 Code).
So beheben Sie den Fehler
Setzen Sie reason (z. B. "Mengenrabatt") oder einen reason_code aus der Codeliste UNCL 5189.
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.