DEV Community

Michael Sathya Gorski
Michael Sathya Gorski

Posted on • Originally published at normbill.com

BR-DE-15 is not a Schematron mystery

If you generate XRechnung and KoSIT dies on BR-DE-15, it is not a broken validator. The buyer reference (BT-10) is missing. For German public buyers that field is the Leitweg-ID.

Typical log:

[error] BR-DE-15 | XRechnung_3.0 | severity=fatal
Enter fullscreen mode Exit fullscreen mode

What you actually need to set is invoice.buyer_reference. B2G: 04011000-1234512345-06. B2B: whatever you agreed with the buyer.

I mapped the KoSIT rules onto the JSON fields we send, so the 422 names the path instead of the XPath. The BR-DE-15 page is here: https://normbill.com/docs/rules/br-de-15

Same report, no account, if you just want to drop XML: https://normbill.com/validator

Top comments (0)