Sending XRechnung to Government Agencies: Using ZRE, OZG-RE, and Leitweg-ID Correctly
If you are a supplier or service provider to public sector entities in Germany, you cannot avoid XRechnung. Federal agencies have accepted only e-invoices since November 2020 — and more and more states and municipalities are following. This article shows you the concrete process: from the Leitweg-ID to uploading on the ZRE.
> Quick answer: For invoices to federal agencies, you need an XRechnung XML with a valid Leitweg-ID. You upload the file to the ZRE (xrechnung.bund.de) or send it by email. For states/municipalities, use the OZG-RE or the respective state portal.
When must I send XRechnung to a government agency?
The Federal E-Invoice Regulation (ERechV) has required since November 27, 2020 that federal government suppliers submit their invoices as XRechnung. Exceptions apply only for:
- Direct orders under €1,000 (de minimis threshold)
- Certain security-related contracts
For states and municipalities, state-level regulations apply. As of 2026, most federal states require e-invoices for contracts above certain thresholds. Some (e.g., Bremen, Hamburg) also accept ZUGFeRD from profile EN 16931.
What do I need for an XRechnung to the federal government?
For a valid XRechnung to a federal agency, you need:
- Leitweg-ID of the invoice recipient — a unique address in the format 04011-1234567-12 (details in our article Leitweg-ID Explained)
- XRechnung in UBL 2.1 format — compliant with XRechnung 3.0 and EN 16931
- All mandatory fields per EN 16931 — especially invoice number, date, VAT ID, line items, payment information (complete list)
- Access to the ZRE — registration at xrechnung.bund.de
How do I create an XRechnung for government agencies?
Option 1: With TaxLayer from an existing PDF
The fastest way if you already create your invoices as PDFs:
- Upload PDF to TaxLayer
- Review data — the AI extracts all invoice fields automatically
- Enter Leitweg-ID — in the "Buyer Reference / Leitweg-ID" field (BT-10)
- Select XRechnung — choose "XRechnung 3.0" as output format
- Download — the validated XML file is output with KoSIT validation
Option 2: With the XRechnung Generator
For individual invoices without an existing PDF, you can use the free XRechnung Generator. All fields are entered via a form, and the Leitweg-ID is included as Buyer Reference.
Option 3: Via your ERP or accounting software
If your ERP system (SAP, Microsoft Dynamics, DATEV) supports XRechnung export, use that function. Ensure the Leitweg-ID is correctly transferred.
How do I submit the XRechnung on the ZRE?
The Zentrale Rechnungseingangsplattform (ZRE) is the official portal for e-invoices to the federal government:
- Register as an invoice issuer at xrechnung.bund.de (one-time, free)
- Log in and select "Submit invoice"
- Upload XML — the ZRE automatically checks the file for compliance
- Receive confirmation — if the check passes, the invoice is forwarded to the recipient
Alternatively, you can send the XRechnung by email to the ZRE or deliver it via the PEPPOL infrastructure.
What is the OZG-RE and when do I need it?
The OZG-Rechnungseingangsplattform (OZG-RE) is the counterpart to the ZRE for states and municipalities that do not operate their own platform. The process is analogous:
- Register on the OZG-RE
- Upload the XRechnung XML
- Automatic validation and forwarding
Some federal states operate their own platforms:
- NRW: Portal NRW
- Baden-Württemberg: service-bw.de
- Bavaria: E-invoicing portal Bavaria
When in doubt, ask your contracting authority which platform to submit through.
What errors lead to rejection?
The most common reasons the ZRE/OZG-RE rejects an XRechnung:
| Error | Solution |
|---|---|
| Leitweg-ID missing or empty | BT-10 (BuyerReference) must contain the Leitweg-ID |
| Leitweg-ID invalid (format/check digit) | Check format: XX-XXXXXXX-XX ([details](/blog/leitweg-id-explained)) |
| Missing mandatory fields (VAT ID, line items) | Ensure all [EN 16931 mandatory fields](/blog/en-16931-required-fields) |
| Wrong XML schema (not UBL 2.1) | Use XRechnung 3.0 in UBL format (not CII) |
| Validation errors | Check before upload with the [TaxLayer Validator](/tools/validator) |
Tip: Validate every XRechnung before upload. The TaxLayer Validator checks all EN 16931 mandatory fields and displays missing fields with BT references. This helps you avoid rejections and payment delays.
ZUGFeRD or XRechnung for government agencies?
The short answer: XRechnung for federal agencies, ZUGFeRD optionally for states/municipalities.
| Recipient | XRechnung | ZUGFeRD EN 16931 |
|---|---|---|
| Federal agencies | Mandatory via ZRE | Not accepted |
| State authorities | Generally accepted | Depends on state |
| Municipalities | Often accepted | Depends on municipality |
| B2B (private sector) | Possible | [Recommended](/blog/xrechnung-vs-zugferd) |
If you supply both government agencies and private companies, TaxLayer generates either XRechnung or ZUGFeRD from a single PDF invoice — you don't need to enter the data twice.
---
Create your XRechnung in 30 seconds: upload PDF, review data, enter Leitweg-ID, done. Try it free now — 2 conversions per month without credit card.
Frequently asked questions
Do I have to send XRechnung to government agencies?
For federal agencies, XRechnung has been mandatory since November 2020 (Federal E-Invoice Regulation). For states and municipalities, different regulations apply depending on the federal state — many also accept ZUGFeRD from profile EN 16931.
What is the ZRE and how do I upload an XRechnung there?
The Zentrale Rechnungseingangsplattform (ZRE) is the official portal for e-invoices to federal agencies. You can access it at xrechnung.bund.de. After registration, you upload your XRechnung XML or send it by email. The recipient's Leitweg-ID is mandatory.
What is the OZG-RE?
The OZG-Rechnungseingangsplattform (OZG-RE) is the platform for e-invoices to states and municipalities that do not operate their own platform. It works analogously to the ZRE but is responsible for state authorities.
Where do I find my contracting authority's Leitweg-ID?
The Leitweg-ID is usually on the purchase order, contract, or grant notice. You can also ask the contracting authority directly. More details in our article Leitweg-ID Explained.
Can TaxLayer create XRechnung for government agencies?
Yes. TaxLayer generates XRechnung 3.0 in UBL 2.1 format, EN 16931-compliant and KoSIT-validated. You enter the Leitweg-ID as Buyer Reference (BT-10) and then upload the generated XML file to the ZRE or OZG-RE.
Do government agencies also accept ZUGFeRD instead of XRechnung?
Federal agencies accept only XRechnung (UBL or CII) via the ZRE. Some states and municipalities also accept ZUGFeRD from profile EN 16931. Check the specific requirements of your contracting authority.
What happens if my XRechnung is rejected?
The ZRE/OZG-RE automatically checks the submitted file. Common rejection reasons: missing Leitweg-ID, incorrect Leitweg-ID, missing mandatory fields, invalid XML schema. Validate your file before upload with the TaxLayer Validator.
Free tools
Related articles
Convert PDF invoices now
Try TaxLayer for free — 2 conversions per month, no credit card required.
Get started