Leitweg-ID explained: structure, allocation and use with public authorities
Leitweg-ID erklärt: Aufbau, Vergabe & Anwendung

Leitweg-ID explained: structure, allocation and use with public authorities

Germany’s introduction of mandatory electronic invoicing to public authorities has been an important step in Europe’s digital transformation. A central technical element of this system is the Leitweg-ID.

If your business invoices a German authority, understanding this code is an essential part of meeting the recipient’s requirements.

Leitweg-ID for addressing invoices to German authorities

What is a Leitweg-ID?

The Leitweg-ID is a unique identifier used in Germany to route electronic invoices, usually in the XRechnung standard, to the responsible unit of a public-sector recipient.

Think of it as a digital addressing scheme that helps the invoice reach the correct office within a complex administrative structure. In XRechnung it is entered as the buyer reference, BT-10; it should not be confused with a Peppol endpoint identifier.

The structure of the Leitweg-ID

The structure is standardised to support interoperability between the German federal government and the states. It essentially consists of three parts:

  1. Coarse addressing: Identifies the state or higher-level organisation, for example 02 for Hamburg or 99 for the federal level.
  2. Fine addressing: An alphanumeric component identifying the specific authority or organisational unit.
  3. Check digits: Two final digits used to validate the code and detect entry errors.

How the Leitweg-ID is allocated

Who provides the code? The supplier does not invent a Leitweg-ID: the public contracting authority provides the identifier needed for its invoice receipt process.

  • Federal authorities: Their identifiers generally begin with 99.
  • States and municipalities: Allocation is organised at state level according to the relevant arrangements.
  • Where to find it: The customer normally supplies the Leitweg-ID with the order or contract. If it is missing, ask before invoicing: a missing or invalid required reference can lead to rejection by the receiving platform.

Further information on deadlines and legal requirements is available in our German e-invoicing update.

Its role in e-invoicing and public administration

The Leitweg-ID supports electronic procurement and invoice processing in several ways:

  • Automation: It helps route invoices into the administration’s processing systems. Routing does not itself approve an invoice or guarantee immediate payment.
  • Standardisation: The buyer-reference field forms part of XRechnung; correctly mapping it is important when integrating with EDI standards.
  • Compliance: An invalid required Leitweg-ID can cause invoice rejection and payment delays; contractual consequences depend on the specific agreement.

Note: For international operations, configure your software to map the buyer reference correctly in XML documents, whether delivery takes place through Peppol or a government portal. The transport address and buyer reference serve different purposes.

Example of Leitweg-ID information for invoice submission

FAQ: common questions about the Leitweg-ID

1. Is the Leitweg-ID the same as a VAT identification number?

No. A VAT identification number identifies a business for VAT purposes; the Leitweg-ID supports the routing of invoices to a public-sector recipient.

2. Can I invent a Leitweg-ID if none was provided?

No. Obtain the correct code from the contracting authority. An invalid code can cause the invoice to be rejected.

3. Is there a public database?

There is no single comprehensive directory of every municipal Leitweg-ID. Many authorities publish their invoice submission details, including their identifier, on their websites.

How Eaglessoft can help

German technical requirements can be complex. Whether you are implementing new standards or preparing reliable, auditable processes, our Compliance Hub provides useful resources.

Do not let digital administration slow down your business. If you need a technical solution for e-invoicing with Leitweg-ID integration:

Book a demo today to discover how to simplify your B2G processes.