# EN 16931 Invoice (UBL)

Source: https://xmlvalid.com/schemas/en16931-ubl-invoice

> A UBL invoice checked against the schema and the business rules of the European e-invoicing standard EN 16931: mandatory fields, code lists and totals.

EN 16931 is the European standard for electronic invoices in public procurement, and the base that Peppol BIS Billing, XRechnung and most national formats build on. Its rules are published as Schematron by the European Commission together with CEN/TC 434.
The document is checked against the UBL 2.1 Invoice schema first. When it passes, the EN 16931 rules run: over 200 business rules and the code list checks, such as BR-CO-15 (total with VAT = total without VAT + VAT) and BR-CL-25 (electronic address scheme from the EAS code list).

- Type: XSD + Schematron
- Version: UBL 2.1, rules 1.3.16
- Namespace: `urn:oasis:names:specification:ubl:schema:xsd:Invoice-2`
- Root element: `Invoice`
- Publisher: CEN/TC 434, OASIS (OASIS copyright notice), source: https://github.com/ConnectingEurope/eInvoicing-EN16931
- Rules: [EN 16931 rules (UBL) 1.3.17](https://xmlvalid.com/rules/sets/en16931-ubl)
- Validate against it: https://xmlvalid.com/validate?schema=en16931-ubl-invoice

## Notes

- Rules run only when the document matches the schema, as in the KoSIT validator. Documents over 50 MB are checked against the schema only.
- The example is from the EN 16931 validation artefacts by the European Commission (EUPL 1.2).
