# Leitweg-ID Finder: Format, Examples & State-by-State Rules (2026)

- Date: 2025-01-07
- Reading time: 7 min read

Find your Leitweg-ID for XRechnung. Validation tool, format breakdown (Bund vs. Bundesländer), Grobstruktur/Feinstruktur, and state routing rules.

## 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)

                    - `02` to `16` = 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](/en/pdf-to-xrechnung), 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.