Validation rules
UBL-SR-06
A cac:BillingReference contains more than one cac:InvoiceDocumentReference — each preceding-invoice reference (BG-3) holds exactly one.
- Rule
UBL-SR-06— official EN 16931 / XRechnung rule- Severity
- error
- Detected by
- tier 3 — KoSIT validator (authoritative)
- Reachability
- Only reachable when validating your own XML — normbill-generated documents cannot trigger it
The serializer emits one BillingReference with exactly one InvoiceDocumentReference for invoice.preceding_invoice.
How to fix it
Use one cac:BillingReference per preceding invoice, each with a single InvoiceDocumentReference.
UBL-SR-06 auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt die Rechnung ab, weil eine cac:BillingReference mehr als eine cac:InvoiceDocumentReference enthält — jede Referenz auf eine Vorgängerrechnung (BG-3) enthält genau eine.
So beheben Sie den Fehler
Verwenden Sie pro Vorgängerrechnung eine eigene cac:BillingReference mit jeweils einer InvoiceDocumentReference.
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.