What is a Leitweg-ID (Buyer Reference Route ID)? Registration, Structure & Examples

Updated on: Feb 26th, 2026

|

20 min read

Switch Language

social iconssocial iconssocial iconssocial icons

In Germany’s public-sector e-invoicing system, invoice submission depends on the mandatory buyer reference known as the Leitweg-ID. This routing ID ensures XRechnung invoices reach the correct authority or department within complex public administrations. As the buyer reference is compulsory under XRechnung, invoices cannot be validated or processed without it. 

Key Takeaways

  • The Leitweg-ID is a mandatory buyer reference for all XRechnung invoices sent to German public authorities.
  • It acts as a routing ID directing invoices to the correct administrative unit.
  • Each leitweg-id follows a defined structure and must be used exactly as issued.
  • Missing or incorrect routing IDs are a leading cause of invoice rejection.
  • The XRechnung buyer reference field is machine-validated and cannot be substituted.

What is a Leitweg-ID?

A Leitweg-ID is a standardized buyer reference used in Germany’s public e-invoicing system to route invoices accurately within public administrations. Serving as a routing ID, it identifies the contracting authority and the internal organizational unit responsible for invoice processing under the XRechnung standard.

Who Needs a Leitweg-ID?

The Leitweg-ID is mandatory for all suppliers issuing electronic invoices to German public-sector buyers at the federal, state, or municipal level. This requirement applies irrespective of company size, industry, or invoice value. 

Any supplier invoicing ministries, federal agencies, universities, public hospitals, or municipal bodies must include the correct leitweg id as the buyer reference on every invoice. The obligation also extends to foreign suppliers non-German companies billing German public authorities must comply in the same way.

While private-sector transactions do not require a Leitweg-id, the moment a public authority is the invoice recipient, the routing id becomes compulsory. In the context of XRechnung, the xrechnung buyer reference is essential for successful validation and routing, and invoices submitted without it are typically rejected automatically at the invoice portal or transmission network level.

Applicability overview

Entity Type

Is Leitweg-ID Required?

Reason

Federal ministries and agencies

Yes

Mandatory buyer reference for routing XRechnung invoices

State (Länder) authorities

Yes

Required to identify department-level invoice recipients

Municipal administrations

Yes

Ensures invoices reach correct local authority unit

Public universities and research bodies

Yes

Classified as public-sector invoice recipients

Public hospitals and healthcare bodies

Yes

Subject to public e-invoicing regulations

Private companies

No

Leitweg-ID applies only to public-sector buyers

Foreign suppliers invoicing German authorities

Yes

Buyer reference is mandatory regardless of supplier location

Structure and Examples of a Leitweg-ID

The structure of a Leitweg-ID reflects Germany’s decentralized administrative system. While formats may vary by authority, all routing IDs follow a standardized logic that enables automated processing.

A Leitweg-ID typically consists of a numeric prefix, an authority identifier, and optional sub-unit elements. These components collectively ensure invoices are routed to the correct organizational destination.

Structural components 

Component

Description

Purpose

Prefix (e.g., 991 / 992 / 993)

Identifies administrative level or issuing system

Distinguishes federal, state, or municipal entities

Authority Identifier

Numeric code assigned to the public authority

Identifies the contracting organization

Sub-unit or Department Code

Optional extension

Routes invoice to correct department or cost center

Separator (hyphen or dot)

Structural delimiter

Ensures machine-readable validation

Common prefixes

Certain prefixes are widely used and help classify the type of public body involved. These prefixes are not arbitrary, they align with established public-sector routing conventions.

Example formats

  • 991-12345-67 - Often used by federal authorities
  • 992-98765-01 - Common at state (Länder) level 
  • 993-45678-22 - Frequently assigned to municipal bodies

Each example represents a unique buyer reference. Even two departments within the same authority may use different Leitweg-IDs to ensure precise routing.

How to obtain a Leitweg ID?

Suppliers do not create or register their own Leitweg-ID. The routing ID is issued exclusively by the public authority receiving the invoice. It is typically provided during the contracting or onboarding phase.

Public authorities may communicate the Leitweg-ID through:

  • Contractual documentation
  • Purchase orders
  • Supplier onboarding portals
  • Official email correspondence

If the buyer reference is missing or unclear, suppliers must request it directly from the contracting authority. Any internal reorganization within the authority may result in a new Leitweg-ID, and suppliers are responsible for using the most current version.

Using the Leitweg ID in your X-Rechnung Invoices

In XRechnung invoices, the Leitweg-ID must be entered in the Buyer Reference field. This field is mandatory when invoicing German public authorities and is automatically validated during submission.

The XRechnung buyer reference must contain only the Leitweg-ID, without additional text or formatting changes. Even minor deviations such as extra spaces or altered separators can cause validation failure.

Key implementation requirements include:

  • Exact replication of the issued Leitweg-ID.
  • Consistent formatting across all invoices.
  • Correct placement within the designated XML field.

Correct placement of the Leitweg-ID as the XRechnung buyer reference is essential for successful invoice submission to German public authorities. Accurate formatting and strict adherence to field requirements ensure automated validation, proper routing, and uninterrupted invoice processing.

How does Leitweg-ID work?

The Leitweg-ID operates as a machine-readable routing ID within Germany’s public-sector e-invoicing infrastructure. It is evaluated automatically as soon as an electronic invoice is submitted, before any commercial or accounting checks take place.

  • The buyer reference is used to identify the correct public authority receiving the invoice.
  • The leitweg id also determines the internal organizational unit or department responsible for processing. 
  • Based on this identification, the invoice is routed into the appropriate validation and approval workflow.

This automated routing eliminates manual intervention and reduces the risk of invoices being misdirected or delayed.

  • Each invoice is linked to a specific administrative entity, ensuring traceability. 
  • The routing ID supports auditability, structured reporting, and compliance under the XRechnung framework.

Common Mistakes To Avoid

Despite its standardized format, the Leitweg-ID is frequently handled incorrectly leading to avoidable invoice rejections. Most errors occur during data entry or system configuration rather than during invoice creation itself.

  • Omitting the buyer reference results in immediate rejection as the XRechnung buyer reference is mandatory.
  • Formatting errors including additional spaces or incorrect separators, prevent machine validation. 
  • Using outdated routing IDs after administrative changes causes misrouting or processing delays.

Confusion between different reference fields is another recurring issue.

  • Internal customer numbers or contract references cannot replace the leitweg-id.
  • Entering the routing ID in the wrong XML field prevents system recognition.

Ensuring correct placement and exact formatting of the Leitweg-ID significantly improves acceptance rates and processing efficiency.

Frequent Errors and Their Impact

Mistake

Description

Impact on Invoice Processing

Missing buyer reference

Leitweg-ID not included in invoice

Automatic invoice rejection

Incorrect formatting

Extra spaces, wrong separators, or missing digits

Validation failure

Using outdated Leitweg-ID

Old routing ID after authority reorganization

Invoice misrouting or rejection

Placing Leitweg-ID in wrong XML field

Not entered as XRechnung buyer reference

Non-compliance with XRechnung rules

Confusing Leitweg-ID with internal customer numbers

Incorrect identifier used

Invoice not routed to correct authority

Conclusion

The Leitweg-ID serves as a foundational element of Germany’s public-sector e-invoicing system. As a compulsory buyer reference and routing id, the leitweg id is fundamental to how electronic invoices are routed, checked, and processed under xrechnung buyer reference rules. 

For suppliers, entering the correct Leitweg-id significantly lowers the chance of rejection, allows invoices to flow smoothly through automated systems, and supports ongoing compliance with legal e-invoicing requirements. With electronic invoicing now firmly embedded across public administrations, the leitweg id continues to function as a key checkpoint, ensuring invoices are exchanged in a reliable, compliant, and efficient manner.

Frequently Asked Questions

What do the prefixes 991, 992, and 993 mean?

These prefixes reflect the administrative level of the issuing authority. Though they are not legally defined, 991 is commonly used for federal entities, 992 for state-level authorities and 993 for municipal administrations.

Do companies need their own Leitweg-ID?

No. The Leitweg-ID is issued to public authorities. Suppliers must use the buyer’s assigned routing ID when invoicing.

Who issues the Leitweg-ID and how are changes requested?

The contracting public authority issues the Leitweg-ID. Any updates or corrections must be requested directly from that authority.

Do I also need a routing ID for ZUGFeRD invoices?

When ZUGFeRD invoices are sent to German public authorities, a valid routing ID or buyer reference is still required for proper processing.

Does the routing ID also work as a Peppol ID?

No. A routing ID such as the Leitweg-ID and a Peppol ID serve different purposes and are not interchangeable identifiers.

Index