If you sell to a German public-sector buyer — a government agency, a public institution — a PDF invoice, however professional, is generally no longer a valid invoice. Germany's B2G e-invoicing requirement means the invoice has to be XRechnung, a specific structured XML format, or another format that meets the European e-invoicing standard EN 16931.
What XRechnung is
XRechnung is the German implementation of the EU's EN 16931 e-invoicing standard. It is defined by KoSIT (Koordinierungsstelle für IT-Standards) on behalf of the German federal government, and it specifies exactly which fields a structured XML invoice must contain and how they must be formatted so public-sector accounting systems across Germany can process invoices automatically. The current version at time of writing is 3.0.x; the version advances as the standard evolves.
Delivery happens either directly as XML or via Peppol, the pan-European e-invoicing delivery network. In either case, it is a machine-readable document, not a PDF. The customer-facing visualisation of an XRechnung — the version a human reads — is generated from the XML, not vice versa.
The fields XRechnung requires
XRechnung inherits the EN 16931 field set and adds German-specific extensions. The most consequential ones for sellers:
- Leitweg-ID: the routing identifier that tells the public-sector infrastructure where to send the invoice. Every federal and most state-level public buyers have one. Without a valid Leitweg-ID, the invoice does not route.
- Seller and buyer VAT IDs: structured, not free-form.
- Line items: quantity, unit price, VAT category per line, with specific codes.
- Payment terms: due date, IBAN, BIC — structured fields, not a text block.
- VAT breakdown: amounts per tax rate, separately from line items.
Any one of these missing or malformed produces a rejection. The receiving system does not try to interpret a near-miss.
XRechnung vs ZUGFeRD
Both are German e-invoice formats, and sellers get them confused.
- XRechnung is pure XML, designed for public-sector invoicing. Mandatory for most B2G transactions since late 2020.
- ZUGFeRD is a hybrid: a PDF with embedded XML. Originally designed for B2B, now exists in multiple profiles including a ZUGFeRD Profile XRECHNUNG variant that wraps XRechnung-compliant XML inside a PDF.
Practical rule: for B2G, use XRechnung (or ZUGFeRD Profile XRECHNUNG). For B2B outside the public sector, ZUGFeRD is more common and often what customers expect, but is not legally required.
Peppol — the transport layer
Peppol (Pan-European Public Procurement OnLine) is the delivery network most EU public-sector e-invoices travel on. XRechnung is the format; Peppol is one way to transmit it. Some German public buyers accept XRechnung via Peppol only. Others accept it via their own portal (ZRE, OZG-RE, etc.) or by email.
The buyer's configured delivery channel determines the route. If a buyer's Peppol identifier is published and they prefer Peppol, you send via Peppol. If they prefer their portal, you upload via their portal. Vedron handles both; the choice is per customer, not per invoice.
Where this catches sellers off guard
A business that has not sold to the public sector before often does not realise B2G e-invoicing is a distinct, stricter requirement than ordinary B2B. Until an invoice bounces back as non-compliant and delays payment by weeks while the issue is diagnosed.
A business that generates XRechnung for one type of transaction but not consistently across all qualifying public-sector sales ends up with a manual compliance gap that only shows up at month-end. The invoice to the city of Hamburg goes out as XRechnung; the invoice to the Federal Agency for Something is sent as PDF; the second one bounces; nobody notices until the city clerk calls three weeks later.
What runs today in Vedron
Vedron's e-invoicing pipeline generates EN 16931-compliant structured invoices — including XRechnung's German requirements — directly from the order data in the system, and can deliver via Peppol where that is the required channel. This is the same pipeline used for Poland's KSeF, Italy's FatturaPA and other structured e-invoicing mandates, so B2G compliance for Germany is not a separate tool bolted on.
Validation runs before submission: the generated XML is checked against the current XRechnung schema (CIUS validation) and the EN 16931 business rules. A schema error is caught before the invoice leaves your system, not after it has been rejected by the receiving portal.
Frequently asked questions
Does this apply to me if I only occasionally sell to a public-sector buyer?
If the buyer is a German public-sector entity, XRechnung (or an equivalent EN 16931-compliant format) generally applies regardless of how often you sell to that category of buyer. Exact scope can depend on contract value and buyer type; some federal buyers accept ZUGFeRD as an EN 16931 variant, others require XRechnung specifically.
Is XRechnung the same as KSeF or other e-invoicing systems?
No. Each is its own national implementation. Several — including XRechnung — build on the same EN 16931 European standard, which is why one well-built structured-invoicing pipeline can support multiple countries' specific requirements rather than needing a from-scratch build per country.
What is the difference between XRechnung and ZUGFeRD?
Both are German e-invoice formats. XRechnung is pure XML, defined by the German federal government for public-sector invoicing (B2G). ZUGFeRD is a hybrid: a PDF with embedded XML, originally designed for B2B. For B2G, XRechnung (or ZUGFeRD Profile XRECHNUNG, which is XRechnung's XML wrapped in a PDF) is the standard. For pure B2B outside government, ZUGFeRD is more common.
What happens if an XRechnung invoice is rejected as non-compliant?
It needs to be corrected and resubmitted before it is validly issued. Automated field validation against the XRechnung schema before submission is what prevents this becoming a recurring fire-drill. Vedron validates on build, not on submission, so a schema error is caught before the invoice leaves your system.
Is Peppol delivery mandatory, or just XRechnung format?
XRechnung is the format; Peppol is a transport. Some German public-sector buyers accept XRechnung via Peppol only; others accept it via their own portal or email. The buyer specifies which channel they expect. Vedron routes based on the buyer's configured delivery channel.
How do I know a public-sector buyer's correct Leitweg-ID (routing ID)?
The Leitweg-ID is a required field on XRechnung for federal and state-level German public buyers. The buyer gives you the ID (it is on their procurement information or in the contract). Vedron stores it on the customer record so every invoice to that buyer uses the right routing without you re-entering it.
Does XRechnung require any specific VAT handling?
XRechnung follows standard German VAT rules; the format just structures how those rules are communicated. Tax categories, exemption reasons and reverse-charge indicators have specific XML fields. Vedron maps your tax configuration into those fields automatically.
What happens with cross-border public-sector sales (German supplier to Austrian public buyer, say)?
The buyer's country determines the required format. An Austrian public buyer typically requires ebInterface or Peppol BIS, not XRechnung. Vedron's dispatcher looks at the buyer's country and public-sector flag and routes to the correct format for that destination.
Talk to us about your setup
Every seller's mix of marketplaces, currencies and payment methods is a little different. Book a short call and we will walk through yours on your real data. Beta clients get the first two months of custom setup on us, and the standard trial can be extended on request.
