# XRechnung 3.0 (UBL)

> The German e-invoice standard, required for invoices to German public authorities, in UBL syntax. It is the German CIUS of EN 16931 and requires a buyer reference (BT-10), such as the Leitweg-ID.

- Publisher: [KoSIT](https://xeinkauf.de/xrechnung/)
- Version: 3.0.2
- Specification: [XRechnung (xeinkauf.de)](https://xeinkauf.de/xrechnung/)
- Syntax: OASIS UBL 2.1
- Root element: Invoice or CreditNote
- Specification identifier (BT-24): `urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0`
- Detected when: The specification identifier (BT-24) contains urn:xeinkauf.de:kosit:xrechnung_3.0, also in its extension form. A file with the Peppol CustomizationID is checked as Peppol BIS.

## Checks

1. XSD: OASIS UBL 2.1 Invoice or Credit Note
2. [EN 16931 (UBL)](https://peppolvalidator.com/rules/sets/en16931-ubl): 979 rules (281 fatal, 698 warning)
3. [KoSIT XRechnung 3.0 rules (UBL)](https://peppolvalidator.com/rules/sets/xrechnung-3-ubl): 77 rules (66 fatal, 10 warning, 1 information)

## Sample file

https://peppolvalidator.com/samples/xrechnung-3-ubl.xml passes the XSD check and every rule set above.

## Validate

Validate an XRechnung: https://peppolvalidator.com/en/xrechnung-validator#validate (the schema is detected from the file), or POST the XML to https://peppolvalidator.com/api/v1/validate.
