# XRechnung 3.0 Invoice (UBL)

Source: https://xmlvalid.com/schemas/xrechnung-3-ubl

> The German e-invoice in UBL syntax, checked against the UBL 2.1 schema, the EN 16931 rules and the XRechnung rules (BR-DE-\*).

XRechnung is the German CIUS of EN 16931, required for invoices to the German public sector and one of the formats accepted under the German B2B e-invoicing mandate. KoSIT publishes its rules as Schematron.
The XRechnung rules add the buyer reference that carries the Leitweg-ID (BR-DE-15), seller contact details, payment information and other German requirements on top of EN 16931.

- Type: XSD + Schematron
- Version: 3.0.2, rules 2.6.0
- Namespace: `urn:oasis:names:specification:ubl:schema:xsd:Invoice-2`
- Root element: `Invoice`
- Publisher: KoSIT (OASIS copyright notice), source: https://xeinkauf.de/xrechnung/
- Rules: [EN 16931 rules 1.3.16 (UBL)](https://xmlvalid.com/rules/sets/en16931-ubl-1.3.16)
- Rules: [XRechnung 3.0 rules (UBL) 2.6.0](https://xmlvalid.com/rules/sets/xrechnung-3-ubl)
- Validate against it: https://xmlvalid.com/validate?schema=xrechnung-3-ubl

## Notes

- Rules run only when the document matches the schema. Documents over 50 MB are checked against the schema only.
- Rule levels follow the KoSIT validator configuration (2026-08-31) for the scenario the document declares (XRechnung, Extension or CVD): a few code list rules are warnings there, a few line rules errors. Its "information" level is shown as a warning.
- The example is from the XRechnung test suite by KoSIT (Apache License 2.0).
