Validation rules
BR-DE-22
Two embedded attachments share the same filename — every attached document's filename must be unique within the invoice.
- Rule
BR-DE-22— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-125— Supporting document binary- Field in your JSON
invoice.supporting_documents[*].content_base64
How to fix it
Rename the duplicate attachment filenames in invoice.supporting_documents.
BR-DE-22 auf Deutsch — was bedeutet der Fehler?
Zwei eingebettete Anlagen tragen denselben Dateinamen — jeder Anlagen-Dateiname muss innerhalb der Rechnung eindeutig sein.
So beheben Sie den Fehler
Benennen Sie die doppelten Dateinamen in invoice.supporting_documents um.
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.