Validation rules
NB-AC-MISMATCH
An allowance/charge amount does not equal base_amount × percent / 100 — the KoSIT validator rejects this (PEPPOL-EN16931-R040).
- Rule
NB-AC-MISMATCH— normbill pre-flight check (no single official rule id applies)- Severity
- error
How to fix it
Fix the amount, or omit it and let normbill compute base_amount × percent.
NB-AC-MISMATCH auf Deutsch — was bedeutet der Fehler?
Der Betrag eines Nachlasses/Zuschlags entspricht nicht base_amount × percent / 100. Der explizite Betrag gewinnt — meistens steckt aber ein Tippfehler dahinter.
So beheben Sie den Fehler
Korrigieren Sie den Betrag — oder lassen Sie amount weg, dann rechnet normbill base_amount × percent selbst.
NB-* checks run before generation to catch problems the official rule set would only report indirectly. The authoritative KoSIT validation still has the final word on conformance.
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.