Updated November 2026
The Leitweg-ID is a German public body's address for e-invoices, for example 04011000-1234512345-06. It consists of a Grobadressierung (coarse address), an optional Feinadressierung (fine address) and two check digits. As a supplier you don't apply for one; the public body gives it to you with the order. In an XRechnung it goes in the buyer reference (BT-10). The KoSIT rules only require some entry there, which is why a wrong Leitweg-ID often only comes to light when the invoice is received.
What is a Leitweg-ID?
KoSIT, the Koordinierungsstelle für IT-Standards (Germany's coordination office for IT standards), calls it „eine individuelle Identifikationsnummer, die rechnungsempfangende Stellen im öffentlichen Sektor eindeutig identifiziert“ (an individual identification number that uniquely identifies invoice-receiving bodies in the public sector). In its supplier information, the Hessisches Competence Center compares it to the address of the receiving office on a paper invoice. An e-invoice to a public body must contain that body's Leitweg-ID. For invoices to the federal government, § 5 of the E-Rechnungsverordnung (federal e-invoicing ordinance) requires this explicitly.
Structure of the Leitweg-ID
Format and structure are set out in the KoSIT „Leitweg-ID Format-Spezifikation“ (Leitweg-ID format specification), version 2.0.2 of 28 July 2021. Under it, a Leitweg-ID has three parts separated by hyphens, and 5 to 46 characters in total.
| Part | In the example | Rule |
|---|---|---|
| Grobadressierung (coarse address) | 04011000 | mandatory, 2 to 12 digits: code of the state or the federal government, then optionally administrative region, district and municipality |
| Feinadressierung (fine address) | 1234512345 | optional, up to 30 letters A–Z or digits; not case-sensitive |
| Check digits | 06 | mandatory, exactly 2 digits, calculated from the two parts before |
The first two digits give the federal state, 01 to 16 in the order of the Amtlicher Gemeindeschlüssel (official municipality key), for example 05 North Rhine-Westphalia, 06 Hesse, 08 Baden-Württemberg, 09 Bavaria, or the federal government with 99. For the federal government, the E-Rechnung des Bundes (the federal e-invoicing service) distinguishes by the third digit: 991 for the direct federal administration, 992 and 993 for the indirect one. The building blocks in the specification give the Grobadressierung a length of 2, 3, 5, 8, 9 or 12 digits. In Bavaria, for municipalities, it matches the Amtlicher Gemeindeschlüssel, according to the BayernPortal; in the North Rhine-Westphalia directory it is 5 or 12 digits long. The federal government and the states each decide how the Feinadressierung is structured.
Leitweg-ID examples
| Leitweg-ID | Source | Structure |
|---|---|---|
| 04011000-1234512345-06 | Worked example in the KoSIT specification | state 04, Grobadressierung 8 digits, Feinadressierung 10 digits |
| 991-14886-16 | KoSIT, example for the Bundesnetzagentur, Cologne branch | federal government (991), Feinadressierung 5 digits |
| 05915-32001-83 | NRW directory: Stadtreinigungsbetrieb Hamm | North Rhine-Westphalia (05), Grobadressierung and Feinadressierung 5 digits each |
| 04000000-FHBXLAND-82 | KoSIT, example in the maintenance sheet for the Peppol directory | Bremen (04), Feinadressierung with letters (8 characters) |
All four pass the check. Change one digit in any of them and the check digits no longer match.
Where do I get a Leitweg-ID?
As a supplier or service provider to a public body, you don't apply for a Leitweg-ID. The E-Rechnung des Bundes writes: „Rechnungssteller benötigen keine eigene Leitweg-ID. Bei der Bestellung teilt der Rechnungsempfänger (Auftraggeber) dem Rechnungssteller (Auftragnehmer) die Leitweg-ID mit.“ (Invoice issuers don't need their own Leitweg-ID. When ordering, the invoice recipient (client) tells the invoice issuer (contractor) the Leitweg-ID.) Bavaria, Hesse, North Rhine-Westphalia and Baden-Württemberg say the same. If the Leitweg-ID is missing from the order, ask the body that placed it.
| Area | Who assigns it | Directory |
|---|---|---|
| Federal government | the Zentrales Finanzwesen des Bundes (ZFB, central federal finance service) | in the web form of the OZG-RE platform (with user account) |
| North Rhine-Westphalia | the state; the bodies pass it on | public PDF list on vergabe.nrw.de (3,094 entries, list of 9 October 2026) |
| Bavaria | each ministry or office; municipalities themselves | no public directory found |
| Hesse (e-invoicing mandatory since 18 April 2024) | the body placing the order passes it on | portals not available during our research |
| Baden-Württemberg | the body placing the order passes it on | not researched |
We found no nationwide directory of all Leitweg-IDs. Leitweg-IDs used as Peppol IDs are listed in the Peppol directory under scheme 0204; we haven't checked whether every public body is listed there. Even where a directory exists, the E-Rechnung des Bundes asks: „Bitte verwenden Sie jedoch ausschließlich die bei Auftragserteilung benannte Identifikationsnummer“ (however, please use only the identification number given when the order was placed).
It is different for public bodies and institutions that receive invoices, such as municipal enterprises. They get their Leitweg-ID from their state or, at federal level, from the Zentrales Finanzwesen des Bundes. In North Rhine-Westphalia, assignment is free of charge, according to the state. For Feinadressierungen you assign yourself, the tool calculates the check digits under “Calculate check digits”.
Leitweg-ID in the XRechnung
In an XRechnung, the Leitweg-ID goes in the buyer reference field (BT-10). The field is mandatory in every XRechnung (rule BR-DE-15). But this rule only checks that the field isn't empty, not the structure or the check digits. We looked this up in the rules of the KoSIT validation configuration of 31 August 2026. So a wrong Leitweg-ID can pass the check in the XRechnung validator and in the KoSIT validator and still fail on receipt. Hesse writes that invoices are rejected „wenn die E-Rechnung keine gültige Leitweg-ID hat“ (if the e-invoice has no valid Leitweg-ID).
That is why the tool can read the buyer reference straight from your XRechnung or ZUGFeRD PDF and check it. To check the whole invoice, use the XRechnung validator.
XRechnung without a Leitweg-ID?
Between businesses, yes. A Leitweg-ID is only needed when the e-invoice goes to a public body. Because field BT-10 still has to be filled in an XRechnung, for invoices between businesses „bereits die Angabe eines Platzhalters (z. B. „-“)“ (just entering a placeholder (e.g. “-”)) is enough for VAT purposes (BMF, Fragen und Antworten zur E-Rechnung, question 6). Businesses don't need their own Leitweg-ID to exchange invoices with each other either (E-Rechnung des Bundes).
For a public body, no. An empty BT-10 already fails rule BR-DE-15, and the recipient can reject a wrong Leitweg-ID. What the e-invoicing mandate between businesses covers is explained in our guide to e-invoicing in Germany.
Calculating the check digits: the method
The check digits are calculated under ISO/IEC 7064, method Modulo 97-10, „welches u.a. auch bei IBAN eingesetzt wird“ (which is also used for IBANs, among other things), as the specification puts it. Its worked example in four steps:
- Write the Grobadressierung and Feinadressierung one after the other without hyphens (040110001234512345). Letters are replaced by numbers, A = 10 to Z = 35.
- Append two zeros (04011000123451234500).
- Divide by 97 and take the remainder, here 92.
- Subtract the remainder from 98, 98 − 92 = 6, written as two digits: 06.
To verify, append the check digits instead of the zeros; if the remainder after dividing by 97 is then 1, they are correct. On 4 November 2026 we tested the tool with all 3,094 Leitweg-IDs from the North Rhine-Westphalia directory, and all passed. We then replaced every digit in each of these IDs with every other digit, and swapped every pair of adjacent, different digits within a part. The tool flagged all 457,425 altered and all 31,822 swapped versions as faulty. How we test in general is explained in How we test.
Correct check digits therefore rule out the most common copying errors: one wrong digit and two swapped neighbouring digits. They don't catch a misplaced hyphen, because hyphens aren't included in the calculation (specification, chapter 2.3). If the Grobadressierung then has an unusual length, the tool shows a note. The tool doesn't check whether the Leitweg-ID has been assigned or belongs to the right public body.