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-06official 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

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.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.