Key points
- A Peppol BIS Billing 3.0 invoice is validated in three layers: UBL 2.1 XSD schema, EN 16931 schematron (BR-, UBL-SR, UBL-CR, UBL-DT) and Peppol schematron (PEPPOL-, country rules).
- The current rules are BIS 3.0.21 with validation artefacts 1.3.16, mandatory from 17 August 2026, published on docs.peppol.eu.
- Both schematrons use queryBinding xslt2, so you need an XSLT 2.0 processor such as Saxon.
- In the current EN 16931 file, 676 of the 678 UBL-CR rules are warnings; only UBL-CR-666 and UBL-CR-673 are fatal.
- Country rules (DE-R, NL-R, SE-R and others) are triggered by the parties' country, so they do not fire on a UK-to-UK invoice today.
To validate a Peppol invoice you run three checks, in order: the UBL 2.1 XML schema (structure and element order), the EN 16931 rules (the European standard's business rules bound to UBL) and the Peppol BIS Billing 3.0 rules (Peppol's own rules and country rules). The current rule set is BIS 3.0.21, mandatory since 17 August 2026. This guide explains what a validator does, so you can build it into your own pipeline.
The three layers
| Layer | File | Rule prefixes | Typical errors |
|---|---|---|---|
| 1. UBL 2.1 XSD | UBL-Invoice-2.1.xsd, UBL-CreditNote-2.1.xsd |
none (schema messages) | "This element is not expected", invalid date |
| 2. EN 16931 | CEN-EN16931-UBL.sch |
BR-, BR-CO-, BR-CL-, BR-DEC-, BR-S-... , UBL-SR-, UBL-CR-, UBL-DT- |
Totals, VAT categories, code lists |
| 3. Peppol | PEPPOL-EN16931-UBL.sch |
PEPPOL-EN16931-, PEPPOL-COMMON-, DE-R-, NL-R-... |
Identifiers, profile, line amounts |
| Optional | PeppolBIS-Envelope-Rules.sch |
BR-SBDH- |
SBDH sender and receiver |
Run the schema first. A schematron run on a file with structural errors can give misleading results, and many problems, such as elements in the wrong order, only the schema catches. In our tests, putting cbc:TaxPointDate before cbc:InvoiceTypeCode passed both schematrons but failed the schema.
Where the current files are
Use the files published with the BIS on docs.peppol.eu:
- EN 16931:
https://docs.peppol.eu/poacc/billing/3.0/files/CEN-EN16931-UBL.sch, header "Schematron version 1.3.16 - Last update: 2026-04-10" - Peppol:
https://docs.peppol.eu/poacc/billing/3.0/files/PEPPOL-EN16931-UBL.sch, header "Last update: 2026 May release 3.0.21." - Envelope (optional):
https://docs.peppol.eu/poacc/billing/3.0/files/PeppolBIS-Envelope-Rules.sch
The UBL 2.1 schemas come from OASIS. Version discipline matters. On 20 October 2026 the OpenPEPPOL GitHub master branch still had the 3.0.20 Peppol rules, and the ConnectingEurope EN 16931 master branch already showed a newer 1.3.17 header that Peppol has not adopted. A validator built from either would disagree with Access Points. One visible symptom of old rules is BR-CO-25, which was removed in 3.0.21.
How to run the schematron
Both files declare queryBinding="xslt2", so you need an XSLT 2.0 (or 3.0) processor. Saxon HE is the usual open-source choice. The steps:
- Compile each
.schinto an XSLT stylesheet, using the ISO Schematron skeleton (iso_svrl_for_xslt2.xsl) or SchXslt. - Transform the invoice with each compiled stylesheet. The output is SVRL (Schematron Validation Report Language).
- Read each
svrl:failed-assert: itsidis the rule, itsflagisfatalorwarning, andsvrl:textis the message. - Decide: any fatal means reject.
A minimal Python version using the saxonche package:
from saxonche import PySaxonProcessor
import re
with PySaxonProcessor(license=False) as p:
x = p.new_xslt30_processor()
compiler = x.compile_stylesheet(stylesheet_file="iso_svrl_for_xslt2.xsl")
compiler.transform_to_file(source_file="PEPPOL-EN16931-UBL.sch",
output_file="PEPPOL-EN16931-UBL.xslt")
rules = x.compile_stylesheet(stylesheet_file="PEPPOL-EN16931-UBL.xslt")
svrl = rules.transform_to_string(source_file="invoice.xml")
for m in re.finditer(r'<svrl:failed-assert([^>]*)>', svrl):
rule = re.search(r'id="([^"]+)"', m.group(1)).group(1)
flag = re.search(r'flag="([^"]+)"', m.group(1)).group(1)
print(rule, flag)
Compile once and cache the XSLT; compiling is the slow step. Do the same for CEN-EN16931-UBL.sch. This is the approach we used to test the examples in our error guides, alongside the live service.
Fatal and warning
Only fatal rules reject an invoice. In the current EN 16931 file:
| Group | Fatal | Warning |
|---|---|---|
| BR- rules (all families) | 222 | 1 |
| UBL-SR (syntax) | 54 | 0 |
| UBL-CR (content restrictions) | 2 | 676 |
| UBL-DT (data types) | 3 | 21 |
The two fatal UBL-CR rules, UBL-CR-666 and UBL-CR-673, stop an AdditionalDocumentReference from being both an invoiced object identifier and an attachment or description. The other UBL-CR rules warn that a UBL element is outside EN 16931, for example UBL-CR-561 "A UBL invoice should not include the InvoiceLine TaxTotal". The invoice passes, but receivers can drop that data.
Some published fatal rules never fire: BR-CO-05 to BR-CO-08 have the test true(). See discounts and charges.
Country rules and the UK
The Peppol file includes country rules for Germany, Denmark, Greece, Iceland, Italy, the Netherlands, Norway and Sweden. They are triggered mainly by the supplier's country, and the German rules need both buyer and seller to be German. A UK-to-UK invoice triggers none of them today. There are no UK rules, because the UK has not published a data specification for the April 2029 mandate. Whether it will add UK rules (for example on VAT number format or type codes) is not yet confirmed.
What validation does not check
- That the VAT is right for UK law. Category codes and rates are checked for consistency, not correctness. See UK VAT category codes.
- That identifiers are real. BR-CO-09 checks only a VAT number's prefix (BR-CO-09).
- That the receiver can accept it. That is an SMP lookup (SMP and SML), which our Peppol directory lookup can help with.
- That the tax point is right. See tax points on a Peppol invoice.
Where validation happens in the network
Your software or Access Point should validate before sending. The receiving Access Point validates again and, if it rejects the message, returns a negative Message Level Response. See Invoice Response and MLS.
What to do now
- Validate every template change against all three layers before go-live.
- Pin your artefact versions and record them in your release notes.
- Watch the Peppol release notes: recent releases (3.0.20 and 3.0.21) became mandatory about three months after publication.
- Check sample files in a Peppol validator, and view them in the e-invoice viewer.
Frequently asked questions
How do I validate a Peppol invoice?
Check the XML against the UBL 2.1 schema, then run the EN 16931 UBL schematron and the Peppol BIS Billing schematron from docs.peppol.eu with an XSLT 2.0 processor. Any failed assert flagged fatal means the invoice should be rejected.
Which Peppol validation rules are current?
Peppol BIS Billing 3.0.21 (May 2026 release) with validation artefacts 1.3.16, mandatory from 17 August 2026. The Peppol schematron header reads 'Last update: 2026 May release 3.0.21.'
Do warnings make a Peppol invoice invalid?
No. Only fatal rules reject an invoice. Warnings, such as most UBL-CR rules, are reported but the invoice passes. Receivers may still ignore the data that caused them.
Is there a free Peppol validator?
Yes. The public validation service run by Philip Helger at peppol.helger.com checks UBL invoices and credit notes against the BIS 3.0.21 rules. You can also run the published schematron files yourself.
Spotted a mistake? Report an error. einvoices.uk is an independent publication and is not affiliated with HMRC. Details of the mandate may change; check the sources and official GOV.UK guidance before acting.