# Leitweg-ID Guide: Format, Examples & Routing Rules (2026)

- Date: 2025-01-07
- Reviewed: July 9, 2026
- Reading time: 7 min read

Leitweg-ID for XRechnung B2G: format (5–46 characters), Grobstruktur/Feinstruktur, OZG-RE routing, and correct BT-10 placement.

> Reviewed against XStandards Einkauf (KoSIT) Leitweg-ID, BMI.

## Article overview

        This article explains Leitweg-ID Guide: Format, Examples & Routing 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 buyer reference (Business Term BT-10) that identifies the public-sector recipient of an XRechnung invoice. If it is missing, invalid, or entered in the wrong field, the recipient or submission platform may reject the invoice or be unable to route it correctly.

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 is a structured identifier made up of alphanumeric segments separated by hyphens. The official format specification defines its length, segment structure, and check digit.

                - **Grobstruktur (coarse structure):** The leading segment used to identify the routing domain.

                - **Feinstruktur (fine addressing):** The recipient-specific organization and unit codes, followed by a two-digit check digit calculated using Modulo 97.

              
              **Example Format:** `991-03730-19` (illustrative only). Your public authority must provide the actual Leitweg-ID for the order.

### 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:** Federal invoices are submitted through the Online Access Act-compliant Invoice Submission Platform (OZG-RE). The former ZRE platform was consolidated into OZG-RE on 19 September 2025. Check the recipient's instructions for the applicable submission channel and Leitweg-ID.

                - **State and municipal authorities:** Submission channels and requirements vary by recipient. Follow the instructions in the order or contract and use the Leitweg-ID supplied by the public authority.

              

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

                - **Official platform guidance:** Consult the recipient's e-invoicing portal documentation. There is no single public lookup directory for every Leitweg-ID.

              

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

## FAQ

### What is a Leitweg-ID?

A Leitweg-ID is a unique routing identifier used in Germany to direct electronic invoices (XRechnung) to the correct recipient within the public sector. It functions like an electronic postal code for government invoices.

### How do I find my Leitweg-ID?

You can find the Leitweg-ID on your purchase order or contract from the public authority. Alternatively, ask your contact person at the government agency or follow the recipient's portal documentation.

### What is the format of a Leitweg-ID?

A Leitweg-ID uses alphanumeric segments separated by hyphens. Its official format includes recipient-specific fine addressing and a two-digit check digit; the public authority must provide the actual identifier.

### Is Leitweg-ID mandatory for XRechnung?

For invoices to public-sector recipients that require a Leitweg-ID, it must be supplied in BT-10. Follow the recipient's order or portal instructions, including any applicable legal exceptions.

### Can I validate a Leitweg-ID before sending?

Yes, Invoice-Converter.com automatically validates the structure and check digit of your Leitweg-ID during conversion.

## Official references

- [Leitweg-ID (XStandards Einkauf / KoSIT)](https://xeinkauf.de/aktuelles/xrechnung/leitweg-id/)
- [BMI e-invoice introduction](https://www.bmi.bund.de/DE/themen/moderne-verwaltung/verwaltungsmodernisierung/einfuehrung-e-rechnung/einfuehrung-e-rechnung-node.html)
