# XRechnung

German e-invoicing specification for the public sector based on EN 16931.

## Definition

German e-invoicing specification for the public sector based on EN 16931.

## Why this term matters

German federal authorities have required electronic invoices since November 2020. The E-Rechnungsverordnung (§ 4) names XRechnung as the standard but also accepts other formats that meet EN 16931; several Länder also require e-invoices from suppliers. The BMF letter and the Wachstumschancengesetz extend EN 16931-conformant e-invoicing to domestic B2B from 2025–2028. Failing XRechnung-specific BR-DE rules causes hard rejection in the recipient’s channel, such as the OZG-RE portal or Peppol delivery. OZG-RE serves the direct federal administration, more than 170 indirect federal bodies and several Länder; ZRE has been out of service since 19 September 2025.

## Explanation

Common syntaxes are UBL and CII (depending on profile and routing).

Typically validated with KoSIT (BR-DE rules) in Germany.

## Common mistakes

- Omitting BT-10 (BuyerReference / Leitweg-ID) for federal recipients — BR-DE-15 fails.
- Using XRechnung 2.x CustomizationID strings on a 3.0+ recipient portal.
- Treating BT-23 BusinessProcessTypeCode as optional — XRechnung makes it mandatory.
- Sending CII when the recipient has only declared support for UBL (or vice versa) in their Peppol SMP.

## Frequently asked questions

### What is the difference between XRechnung 3.0 and 2.3?
XRechnung 3.0 has applied since 1 February 2024 and uses the 3.0 CustomizationID. Version 2.3 belonged to the prior specification period. Check the version valid on the invoice date and the recipient’s channel policy; a validator update does not extend version 2.3.

### Do I need a Leitweg-ID for B2B XRechnung invoices?
No — Leitweg-ID is a German federal/state B2G routing identifier. For pure B2B XRechnung you can use any agreed BuyerReference (BT-10) such as a customer or order reference, but the field itself is still mandatory under BR-DE-15.

### Which syntax should I send: UBL or CII?
Both are XRechnung-compliant. Pick the syntax declared by the recipient — most German federal portals accept both, but the recipient’s Peppol SMP entry or onboarding form is the source of truth.

## Related resources

- [XRechnung field guide](/resources/xrechnung)
- [KoSIT validator errors](/resources/kosit-validator-errors)

## Related terms

- [Leitweg-ID](/resources/glossary/leitweg-id): German routing ID required for many public sector recipients (B2G).
- [KoSIT](/resources/glossary/kosit): German coordination body that publishes an open validator framework and XRechnung rule configuration.
- [UBL](/resources/glossary/ubl): Universal Business Language: an XML library for standard business documents.
- [CII](/resources/glossary/cii): UN/CEFACT Cross Industry Invoice: an XML syntax used for e-invoices.
- [CIUS](/resources/glossary/cius): Country or sector specific usage specification that constrains EN 16931.
