How to check whether an e-invoice is valid
Published
Also available in: Deutsch, 日本語
An e-invoice that "opens" is not necessarily a valid e-invoice. A recipient's software — or a public authority's portal — runs the file through formal checks, and if one rule fails, the invoice is rejected and you are not paid until you send a corrected one. Checking before you send saves that round trip.
This article explains the two layers of validation, the errors that come up most often, and how to check XRechnung and ZUGFeRD files for free.
Layer 1: the XML schema
The first check asks whether the file is valid XML in the right structure: are the elements named correctly, in the right order, with values of the right type (a date that is a date, an amount that is a number)? This is done against the official XSD schema of the syntax:
- CII (UN/CEFACT Cross Industry Invoice) — used by ZUGFeRD/Factur-X and one flavour of XRechnung;
- UBL (OASIS Universal Business Language) — the other flavour of XRechnung.
A ZUGFeRD file is a PDF/A-3 with the CII XML embedded; the check extracts the XML first.
Layer 2: the business rules (schematron)
Passing the schema only means the file is well-formed. The business rules then check the content, written as schematron rules with IDs:
- BR-… — rules of the European standard EN 16931, e.g. the invoice total must equal the sum of the lines plus VAT.
- BR-DE-… — the German XRechnung rules on top, e.g. BR-DE-15: the buyer reference (Leitweg-ID) must be present.
- Factur-X/ZUGFeRD profile rules, depending on the profile in the file.
The errors that come up most often
| Rule | What it means | Typical fix |
|---|---|---|
| BR-DE-15 | Buyer reference (BT-10) missing | Enter the customer's Leitweg-ID or order reference |
| BR-CO-15 | Total with VAT ≠ total without VAT + VAT | Recalculate; often a rounding issue per line |
| BR-S-08 | VAT breakdown does not match the lines for a rate | Group lines by VAT rate and sum again |
| BR-DE-1 | Payment instructions missing | Add the IBAN / payment means |
| Schema error | A field is in the wrong place or has the wrong type | Usually a bug in the generating software |
The rule ID is the useful part: search for it, or compare against the specification, rather than guessing from the message.
Check a file for free
The ARCH-Insight e-invoice checker runs both layers — the official XSD and the EN 16931, XRechnung and Factur-X schematron — on a file you upload:
- Open the checker; no account is needed.
- Drop an XRechnung (CII or UBL) XML or a ZUGFeRD/Factur-X PDF (up to 5 MB).
- Read the report: each failed rule with its ID and the message.
The file is checked in memory and not stored.
Prevent errors instead of finding them
If you write invoices by hand or in a word processor, every invoice is a new chance for BR-CO-15. Software that builds the XML from the same numbers it shows avoids most of these errors. ARCH-Insight's Finance app validates every invoice against the same rules before it is issued: an invoice that fails is not issued, and you see which rule failed and why. See XRechnung vs ZUGFeRD for which format to send to whom.
Send invoices that are right the first time.
Start free with one account. Your company details can come later.
ARCH-Insight