
Leitweg-ID Finder: Format, Examples & State-by-State Rules (2026)
Related Technical Wiki
Explore deep-dive developer documentation and regulatory guidelines matching this article.
Complete guide to Leitweg-ID: format, validation, directory and correct usage for XRechnung and German e-invoicing.
Routing references for German public-sector XRechnung invoices.
German routing ID required for many public sector recipients (B2G).
A routing identifier assigned by the buyer for internal routing purposes
Article overview
This article explains Leitweg-ID Finder: Format, Examples & State-by-State Rules (2026) as a practical reference for European e-invoicing. It defines the topic in plain language, places it in the compliance context, and connects the explanation to invoice formats such as XRechnung, ZUGFeRD/Factur-X, UBL, and CII.
Leitweg-ID: Your Key to Successful XRechnung Invoicing in Germany
The Leitweg-ID is the mandatory buyer reference (Business Term BT-10) used by German public-sector recipients to route XRechnung invoices internally. If it is missing, invalid, or typed into the wrong field, a technically valid invoice will be automatically rejected by German government portals.
At Invoice-Converter.com, we ensure accurate BT-10 buyer reference placement and validation when converting invoices to XRechnung and ZUGFeRD, helping your public sector (B2G) transactions run smoothly.
What is a Leitweg-ID?
The Leitweg-ID is a unique electronic routing address used in Germany's public administration. It functions like an electronic postal code, ensuring that your XRechnung invoice reaches the exact department or agency responsible for processing and paying it.
Structure of a Leitweg-ID (Grobstruktur & Feinstruktur)
A Leitweg-ID consists of up to 60 alphanumeric characters separated by hyphens. It is divided into two main parts:
- Grobstruktur (Coarse Structure): The prefix identifying the state or federal platform level.
01= Federal government (Bund)02to16= Federal states (Bundesländer, e.g. 05 = North Rhine-Westphalia, 09 = Bavaria)99= Other public authorities or special entities
- Feinstruktur (Fine Addressing): Specific organization units, sub-departments, and an mandatory two-digit check digit calculated via Modulo 97 at the end.
Example Format: 01-1234567890-12 (Federal) or 05-12345-67 (North Rhine-Westphalia)
Federal (Bund) vs. State (Bundesländer) Routing Rules
Germany operates under a federal structure, meaning submission portals and Leitweg-ID rules differ between levels of government:
- Federal Authorities (Bund, Prefix 01): Invoices must be submitted via the Central E-Invoicing Platform of the Federal Government (ZRE) or the Web-based E-Invoicing Platform (ORE). A Leitweg-ID starting with
01-is mandatory for all transactions above €1,000 net. - State & Municipal Authorities (Bundesländer 02–16): Each federal state maintains its own e-invoicing laws and portal infrastructure (e.g., NRW uses OZF NRW, Baden-Württemberg uses central service portals). Municipalities (Gemeinden) are typically routed through their respective state's fine-addressing system.
How to Obtain a Leitweg-ID
- Official Purchase Order: Check the official order document or contract from the public authority.
- Contact the Recipient: Request the Leitweg-ID directly from your contact person at the procurement office.
- Central Lookup Portals: Consult federal/state registries (ZRE/ORE portals).
Using the Leitweg-ID in XRechnung XML
The Leitweg-ID must be placed strictly in the BuyerReference element (BT-10). In UBL XML, this is /Invoice/cbc:BuyerReference. In CII XML (ZUGFeRD/XRechnung CII), it belongs in /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerReference.
How Invoice-Converter.com Validates Your Leitweg-ID
When using our PDF to XRechnung Converter, our engine automatically verifies the Leitweg-ID check digits, prefix validity, and character limits prior to submission, preventing costly portal rejections.
How to use this guide
Use the article as a starting point before changing a finance or ERP workflow: identify the applicable country rule or standard, decide which structured format is expected, validate the generated XML, and keep a documented exception process for invoices that require manual review.
Ready to convert your invoices?
Start converting PDF invoices to XRechnung, ZUGFeRD, and other formats today with credits or a paid plan.
Related articles
Europe E-Invoicing Deadlines 2026: Germany, France, Belgium and ViDA
Updated April 2026: compare Europe’s key e-invoicing deadlines for Germany, France and Belgium, and see what the EU ViDA package means for ERP teams and
Read moreERP integration checklist for e-invoicing and modern rollout teams
A practical ERP integration checklist for e-invoicing projects: data mapping, format choice, validation, exception handling, and go-live controls.
Read moreKoSIT Validator Error Codes: BR-DE XRechnung Validation Errors [2026]
Complete guide to all 21 KOSIT validator BR-DE error codes. Learn what BR-DE-1 through BR-DE-21, UBL-CR-646, and other XRechnung/ZUGFeRD validation errors
Read more