What it means
When an invoice or credit note refers to an earlier invoice (BG-3), that reference must contain the number of the earlier invoice (BT-25). The rule checks every cac:BillingReference for a cbc:ID inside its cac:InvoiceDocumentReference. A reference with no cbc:ID element fails, even if it holds the date of the earlier invoice (BT-26), which is optional.
Why it matters
EN 16931 requires an earlier invoice number in every preceding invoice reference.
How to fix it
In your invoicing software, find the field that links a credit note or corrected invoice to the original, often called original invoice or reference invoice. Enter the number exactly as it is printed on the original. If no earlier invoice is involved, clear the link so the software leaves the reference out. In the XML, the number is cbc:ID in cac:BillingReference/cac:InvoiceDocumentReference.
Once the file is corrected, check it again for free: Validate an invoice against EN 16931
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice
The rule as published
If there is a preceding invoice reference, the preceding invoice number shall be present Where this rule applies
| Rule set | Version |
|---|---|
| EN 16931 (UBL) | 1.3.17 |
| EN 16931 (UBL credit note) | 1.3.17 |
| XRechnung 3.0 (UBL) | 3.0.2 |
| XRechnung 3.0 (UBL credit note) | 3.0.2 |
| Peppol BIS Billing 3.0 (invoice) | 2026.5 |
| Peppol BIS Billing 3.0 (credit note) | 2026.5 |
| SI-UBL 2.0 / NLCIUS (invoice) | 2.0.3.13 |
| SI-UBL 2.0 / NLCIUS (credit note) | 2.0.3.13 |
| France CTC (UBL invoice) | 1.4.0-04 |
| France CTC (UBL credit note) | 1.4.0-04 |
| CIUS-RO UBL Invoice 1.0.9 | 1.0.9 |
| CIUS-RO UBL Credit Note 1.0.9 | 1.0.9 |
Check your file
Drop your e-invoice to see whether UBL-SR-07 still fails, and which other rules do.
Related rules
- UBL-SR-08 An invoice can have only one invoice period
- UBL-SR-09 An invoice can have only one seller name
- UBL-SR-10 An invoice can have only one seller trading name
- UBL-SR-11 An invoice can have only one seller company registration number
- UBL-SR-12 An invoice can have only one seller VAT number
- UBL-SR-13 An invoice can have only one seller tax number