Validation rules
BR-CL-15 — EN 16931 rule
The item country of origin (BT-159) is not an ISO 3166-1 alpha-2 code.
- Rule
BR-CL-15— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-159— Item country of origin- Field in your JSON
invoice.lines[*].origin_country
How to fix it
Correct invoice.lines[i].origin_country to a real two-letter code, e.g. "DE".
BR-CL-15 auf Deutsch — was bedeutet der Fehler?
Das Ursprungsland eines Artikels (BT-159) ist kein gültiger ISO-3166-1-alpha-2-Code.
So beheben Sie den Fehler
Korrigieren Sie invoice.lines[i].origin_country auf einen echten Zwei-Buchstaben-Code, z. B. "DE".
Related rules
BR-CL-14— A country code in the invoice is not an ISO 3166-1 alpha-2 code.BR-CL-16— The payment means code (BT-81) is not a UNTDID 4461 code.BR-CL-13— The list identifier of an item classification (BT-158 listID) is not a UNTDID 7143 code.BR-CL-17— A VAT category code at document level (BT-95, BT-102 or BT-118) is not one of the UNCL 5305 values EN 16931…BR-CL-18— A line VAT category code (BT-151) is not one of the UNCL 5305 values EN 16931 permits (AE, L, M, E, S, Z, G,…BR-CL-19— An allowance reason code (BT-98 document level, BT-140 line level) is not part of the UNCL 5189 subset EN…
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.