Validation rules
BR-27
The item net price (BT-146) must not be negative.
- Rule
BR-27— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-146— Item net price- Field in your JSON
invoice.lines[*].unit_price
How to fix it
Use a positive unit_price — credits and corrections use a negative qty instead (type_code 384; 381 only in the CII syntaxes).
BR-27 auf Deutsch — was bedeutet der Fehler?
Der Netto-Einzelpreis einer Position (BT-146) darf nicht negativ sein.
So beheben Sie den Fehler
Verwenden Sie einen positiven unit_price. Gutschriften und Stornos drücken Sie über type_code 384 mit negativer Menge (qty) aus — nie über einen negativen Preis (381 ist nur in den CII-Syntaxen zulässig).
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.