← All guides

Leitweg-ID: Structure, Example & Where to Get It

The Leitweg-ID is the addressing field of the XRechnung when dealing with public authorities. Without it, the invoice never reaches the right recipient.

What is it for?

The public administration is large and deeply nested. The Leitweg-ID ensures that an invoice is uniquely assigned to the responsible body and routed correctly. That is why it is a mandatory field for B2G invoices.

The structure

The Leitweg-ID consists of three parts, separated by hyphens:

Coarse routing - Fine routing - Check digit
04011000       - 12345ABCXYZ  - 86

The current specification of the Leitweg-ID (version 2.0.2) is maintained by KoSIT.

Where do I get the Leitweg-ID?

The Leitweg-ID is assigned by the client — so you request it from the authority you are invoicing. The federal government and the states manage their own IDs. In tender documents or purchase orders the Leitweg-ID is often already provided.

Entering the Leitweg-ID in the XRechnung

In the XRechnung the Leitweg-ID goes in the dedicated buyer reference field (business term “Buyer reference”, BT-10). When creating an XRechnung you simply enter it in the corresponding field.

Check before sending

An incorrect or missing Leitweg-ID leads to rejection. So check your invoice in advance: you can validate the e-invoice in the browser — including the German business rules (BR-DE), to which the Leitweg-ID belongs.

Frequently asked questions

What is the Leitweg-ID?

The Leitweg-ID is an identifier that uniquely addresses a recipient within the public administration. It is a mandatory field of the XRechnung for invoices to public authorities (B2G).

How is the Leitweg-ID structured?

It consists of three parts separated by hyphens: coarse routing (2–12 digits), an optional fine routing (up to 30 characters) and a two-digit check digit. Example: 04011000-12345ABCXYZ-86.

Where do I get the Leitweg-ID?

The public-sector client provides the Leitweg-ID. The federal government and the individual states each assign their own IDs for their bodies.