Invoicing public-sector clients: Leitweg-ID, XRechnung and Peppol
Public-sector clients receive your invoice as XRechnung, plain XML under EN 16931, with their Leitweg-ID as the buyer reference; a PDF invoice by email is usually not enough, and without a Leitweg-ID the invoice does not find its recipient.
Last updated:
Key takeaways
- For federal contracting bodies XRechnung is mandatory (E-Rechnungsverordnung, E-RechV); states and municipalities set their own rules for acceptance and mostly ask for the same format.
- The Leitweg-ID comes from the client, goes in the invoice as the buyer reference (BT-10) and decides where the invoice is routed. Do not guess it.
- An invoice that the receiving portal or Peppol access point rejects has not arrived: the payment term only starts when a valid invoice has been received.
- Public bodies are expected to pay within 30 days; a term of more than 60 days is void under § 271a (2) BGB.
Who must send e-invoices to public bodies, and where is that written?
The basis is EU Directive 2014/55/EU on electronic invoicing in public procurement. Germany implemented it for the federal level in § 4a of the E-Government Act (EGovG) and in the federal ordinance on electronic invoicing in public procurement (E-Rechnungsverordnung, E-RechV). Since 27 November 2018 federal authorities must be able to receive e-invoices, and since 27 November 2020 suppliers must in principle send them. The E-RechV has exceptions, for example for small amounts and for certain defence and security contracts; check whether your contract falls under one instead of assuming it.
The states have passed their own laws and ordinances. They differ in start date, threshold and permitted routes, but nearly all build on the XRechnung standard. Municipalities follow state law or their own bylaws. In practice: ask for the client's invoicing requirements before the first invoice. They are in the tender, the contract or on the administration's website.
None of this is the general e-invoicing obligation between businesses under § 14 UStG. That has its own timetable and is described in the guide to e-invoicing in Germany.
What is the Leitweg-ID, and where do I get it?
- You get it from the client, usually with the order, the purchase order or the tender. There is no public directory to look it up in.
- It belongs to an office, not to an authority as a whole. A client with several departments may give you a different one per contract. Store the Leitweg-ID on the contract or the invoice recipient, not on the group as a whole.
- A well-formed Leitweg-ID can still point to the wrong office. The format can be checked; only the client can confirm responsibility.
The Leitweg-ID is the address that routes an invoice to its recipient within the administration. The glossary explains its structure and check digit. For billing, three points matter.
How does billing a public client work, step by step?
- Read the orderLeitweg-ID, PO number, routes and terms
- Set up the customerRecord Leitweg-ID and format once
- Invoice as XRechnungData instead of a printed image
- TransmitPeppol or receiving portal
- Check receiptConfirmation or error message
- Track paymentTerm runs from receipt
The effort is at the start. If you settle the Leitweg-ID and the permitted routes with the first order, every later invoice goes out without queries. The most common mistake is to look for these details only when the invoice is due and the term is already running.
Effort-based billing, by hours or units, is backed up with a proof of service as for any client; public bodies almost always ask for it as an annex or as a condition of payment.
Why XRechnung and not PDF or ZUGFeRD?
XRechnung is a pure data record in the UBL or CII syntax with no printed image; the receiving platform reads it by machine and checks it against the standard. ZUGFeRD is a PDF with an embedded data record. It meets EN 16931 but is not the standard the E-RechV prescribes for the federal level. Which further formats a state or municipality accepts is for it to decide. The guide to XRechnung and ZUGFeRD explains the difference in detail.
Because there is no printed image, all mandatory details under § 14 (4) UStG must be in the data fields, including the service period. An annex that is only a PDF attachment does not replace a missing field.
How does the invoice reach the client: Peppol, ZRE or OZG-RE?
| Route | Address | Note |
|---|---|---|
| Peppol network | Peppol ID; the Leitweg-ID serves as participant identifier (scheme 0204) | Delivery from access point to access point, with confirmation of receipt |
| ZRE, the federal central invoice receiving platform | Leitweg-ID | For federal authorities; invoice as XRechnung, by upload or Peppol |
| OZG-RE, invoice receipt under the Online Access Act | Leitweg-ID | Receipt for the federal level and several states; XRechnung checked on submission |
| State portals | Leitweg-ID or portal account | Own rules per state; registration may be required |
| The client's mailbox | Only if the client expressly allows it |
Peppol is the only network that reaches the federal level, the states and many municipalities with one connection. A Peppol ID consists of a four-digit scheme, a colon and the identifier, for example 0088:4012345000009 for a GLN. The Peppol page describes the connection in Valtor. Which routes a client actually opens is in its invoicing requirements; ask before relying on one.
What must an XRechnung for the public sector also state?
- The Leitweg-ID as buyer reference (BT-10). The XRechnung standard makes this field mandatory (rule BR-DE-15); if it is missing, the platform rejects the invoice.
- A seller contact with name, telephone number and email address. The standard requires this too.
- The mandatory details under § 14 (4) UStG in the data: addresses, tax number or VAT ID, invoice date, quantity and kind of service, service period, net amount, tax rate and tax amount.
- A consecutive, unique invoice number (§ 14 (4) no. 4 UStG); how to keep it gap-free is in the guide to consecutive invoice numbers.
- The contract or order number where the client requires it, and bank details with the payment term.
Which payment terms apply to public clients?
Under § 271a (2) BGB an agreement under which a public body pays only after more than 30 days is effective only if expressly made and objectively justified in the circumstances; more than 60 days is void. For construction work under VOB/B, interim payments fall due within 21 days and the final payment at the latest 30 days after receipt of a verifiable invoice (§ 16 (1) no. 3 and (3) no. 1 VOB/B).
Default arises under § 286 (3) BGB at the latest 30 days after the claim falls due and the invoice is received, earlier if a calendar date was agreed. The client then owes interest at nine percentage points above the base rate (§ 288 (2) BGB) and the €40 flat fee (§ 288 (5) BGB). How the term is calculated is explained in the glossary entry on the payment term.
Receipt is what counts. For an e-invoice that is arrival in the portal or at the recipient's access point, not the day you send it. Keep the confirmation of receipt.
What happens when the portal rejects the invoice?
Receiving platforms check the XRechnung on submission against the syntax and business rules of the standard. An invoice that fails is rejected with an error message. Assume it has not been received and triggers no term. Fix the error and submit the same invoice again; the invoice number stays allocated.
It is different if the invoice arrives and the client then disputes it on substance, for instance because of a wrong order number. Then the correction procedure applies: you correct an incorrect invoice under § 31 (5) UStDV with a document that refers to the original. The guide to correcting an invoice shows when to cancel and when to correct.
Which mistakes cost the most time with public clients?
| Mistake | Consequence | How to avoid it |
|---|---|---|
| PDF or ZUGFeRD instead of XRechnung | The federal level rejects the invoice; the term does not start | Set the format on the customer, not per invoice |
| Leitweg-ID missing, guessed or for another office | Rejection or misrouting inside the administration, weeks of delay | Take the ID from the order and have it confirmed |
| No seller contact in the data | Rejection for breaking a business rule | Maintain the contact in the invoice issuer's master data |
| Service period only in the PDF attachment | Query or rejection | Put the period in the data field, the attachment only as evidence |
| Rejected invoice reissued under a new number | Duplicate invoices, a gap in the number series | Fix the error and resubmit the same invoice |
| Payment term not checked | A void term of over 60 days accepted unnoticed | Read the term against § 271a BGB when the contract is signed |
How does Valtor handle a public-sector client?
You enter the Leitweg-ID or the Peppol ID once on the customer or on the invoice recipient. A customer with a Leitweg-ID or Peppol ID receives XRechnung; choosing PDF or ZUGFeRD for them is refused, because Peppol carries only XML. The format of the Leitweg-ID is checked, but Valtor does not recalculate its check digits: whether the number belongs to the right office is something only the client can confirm.
The Leitweg-ID goes as buyer reference and Peppol address to the e-invoicing provider, a Peppol access point that produces and delivers the XRechnung. If the recipient has no Leitweg-ID, Valtor uses the invoice's order number as the buyer reference and then the reference the customer has stored for all invoices. Every other customer receives ZUGFeRD unless you set otherwise.
If a customer lacks a legal name, an invoice email or a complete billing address, Valtor says what is missing instead of guessing. A person approves and sends. A client's confirmation of a quantity in the portal holds up no invoice.
Worked example
concept and consulting for a municipality
In November 2026 an agency invoices a municipality a flat fee for a concept and 22 consulting hours at €118.00 net. The invoice goes as XRechnung with the office's Leitweg-ID and is confirmed in the portal on Thursday, 12 November 2026.
- Concept, flat feeContract, item 1
- €8,000.00
- Consulting, 22 h × €118.00Contract, hourly rate
- €2,596.00
- Total net
- €10,596.00
- VAT 19%§ 12 (1) UStG
- €2,013.24
- Invoice total, gross
- €12,609.24
22 × 118 = 2,596; 10,596 × 0.19 = 2,013.24. With a 30-day term from receipt the period ends by the calendar on Saturday, 12 December 2026; under § 193 BGB the due date is Monday, 14 December 2026. Service period and Leitweg-ID are in the data fields.
How Valtor handles this
The format hangs on the customer and is set there once. Valtor keeps no books and gives no legal advice.
Valtor does
- Issues invoices for customers with a Leitweg-ID or Peppol ID as XRechnung and refuses another format for them
- Checks the format of the Leitweg-ID and the structure of a Peppol ID (four-digit scheme, colon, identifier); it does not recalculate the Leitweg-ID's check digits
- Sends the Leitweg-ID as buyer reference (BT-10) and Peppol address to the e-invoicing provider; without one, the order number, then the reference stored on the customer
- Names missing invoice details on the customer instead of guessing them
You decide
- You enter the Leitweg-ID or Peppol ID on the customer, from the client's details
- You clarify with the client which routes and formats it accepts and whether the Leitweg-ID belongs to the right office
- You approve and send every invoice
Terms and further reading
Questions and answers
Where do I find my client's Leitweg-ID?
From the client itself, in the order, the contract or the tender. It cannot be looked up publicly and must not be guessed.
Is ZUGFeRD enough for a public body?
Usually not. For the federal level XRechnung applies. States and municipalities set their own formats; ask, and get the answer in writing.
What is the difference between a Leitweg-ID and a Peppol ID?
The Leitweg-ID addresses an office of the administration. The Peppol ID addresses a participant in the Peppol network, scheme and identifier separated by a colon. The Leitweg-ID can also serve as a Peppol identifier. Valtor sends either as the address to the provider.
Can I still send a public client a PDF?
Not in Valtor: a customer with a Leitweg-ID or Peppol ID receives XRechnung. As a legal matter, the client decides which formats it accepts; at the federal level that is XRechnung.
Who assigns the invoice number?
You, as the invoice issuer, consecutively under § 14 (4) no. 4 UStG. Valtor allocates it for your billing entity in a consecutive series.
When does the payment term start for an e-invoice?
On receipt by the recipient, that is on arrival in the portal or at the access point, not on sending. A rejected invoice has not been received.
Do I have to register with ZRE or OZG-RE?
Not to send via Peppol. If you submit through a portal you need an account or registration depending on the platform; the client's invoicing requirements say which.
This guide is general information, not tax advice. Please ask your tax advisor about your own case.