Public-sector buyers
Leitweg-ID: Format, Check Digit, Where to Find It and When an E-Invoice Needs One
Leitweg-ID explained: structure, check digits, a worked example, who issues it and why B2B invoices need none. As of 3 December 2026
Summary
The Leitweg-ID (routing ID) is the address code that tells a German public-sector body's invoice system which department receives an e-invoice, and it travels in the XRechnung field BT-10, the buyer reference (as of 3 December 2026).
The ID is built from up to three parts and ends in two check digits. The specification comes from KoSIT, and the numbers are assigned by the public bodies themselves.
For invoices to federal bodies the Leitweg-ID is mandatory content of every e-invoice under § 5(1) no. 1 of the federal e-invoicing ordinance (E-Rechnungsverordnung des Bundes, ERechV).
Suppliers need no ID of their own, and an invoice between two businesses needs none either. The ID is one small part of German e-invoicing, and it belongs to invoices addressed to the public sector.
The sections below explain what the ID is for, how it is built and checked, where it goes in the invoice, how you obtain it, when it is required and why invoices are rejected. A worked check-digit calculation and a table of the Land issuers (a Land is a German federal state) are included.
| Feature | Value (as of 3 December 2026) | Basis |
|---|---|---|
| Name | Leitweg-Identifikationsnummer | § 5(1) no. 1 ERechV |
| Specification | version 2.0.2 of 28 July 2021 | KoSIT format specification |
| Total length | 5 to 46 characters including hyphens | KoSIT format specification, ch. 2 |
| Coarse addressing | 2 to 12 digits, mandatory | KoSIT format specification |
| Fine addressing | up to 30 characters, optional | KoSIT format specification |
| Check digits | 2, ISO/IEC 7064 modulo 97-10 | KoSIT format specification, ch. 2.4 |
| Invoice field | BT-10 (buyer reference) | KoSIT format specification, XRechnung |
| Peppol identifier scheme | ICD 0204 | KoSIT format specification, ch. 1.5 |
| Required | on e-invoices to the federal government | § 5(1) no. 1 ERechV |
| Not needed | for an e-invoice between businesses | BMF FAQ on the E-Rechnung, question 6 |
What is a Leitweg-ID used for?
A Leitweg-ID is the routing identifier that a German public body gives its suppliers so that an e-invoice reaches the right department, written as coarse addressing, optional fine addressing and two check digits. The receiving system reads the ID to assign the invoice to the ordering body and its processing area.
The ID is a routing address and not a feature of the invoice format. It is written into the buyer reference field of the XRechnung and, for recipients on the federal receipt platform OZG-RE, again as part of the Peppol address. Both uses are explained below.
The ID is also what separates a public customer from a business customer in practice. A business customer needs no Leitweg-ID on an e-invoice, while a public body that is covered by the federal ordinance or by a Land rule gives you one with the order. The section on requirements explains the difference.
Who defines the Leitweg-ID and who assigns the numbers
The KoSIT (Coordination Office for IT Standards in Bremen) publishes the format specification, version 2.0.2 of 28 July 2021, which is still the version linked on its XRechnung page as of 3 December 2026.
You can read it as the Leitweg-ID format specification 2.0.2 on xeinkauf.de. KoSIT (Koordinierungsstelle für IT-Standards) sits at the Senator for Finance of Bremen and operates the XRechnung standard for the IT Planning Council.
KoSIT does not assign numbers. Assignment sits with the bodies of the Bund (federal government) and the Länder, as the Land table below shows.
The identifier scheme ICD 0204 was registered on 30 September 2019, and the Peppol code list has carried it since version 6 of 14 January 2020, which is why the ID can appear in a Peppol address.
The role of these bodies is part of the wider framework described on the page about the federal ordinance, portals and Leitweg-ID.
How is a Leitweg-ID structured?
A Leitweg-ID has up to three parts separated by hyphens: coarse addressing (Grobadressierung, mandatory), fine addressing (Feinadressierung, optional) and a two-digit check number (Prüfziffer, mandatory), five to 46 characters in total. The KoSIT sample 04011000-1234512345-06 shows all three: 04011000 is the coarse addressing, 1234512345 the fine addressing and 06 the check digits.
Only the coarse addressing and the check digits are mandatory, so the shortest possible ID has five characters: two digits, a hyphen and the two check digits. The longest has 46 characters, with a 12-digit coarse addressing, a 30-character fine addressing, two hyphens and the check digits.
Coarse addressing: the Land or federal code
The first two digits of the coarse addressing are the Land code, for example 09 for Bavaria, or 99 for federal bodies. The codes are listed in the table below.
An ID that starts with 09 therefore belongs to a Bavarian body, and the sample ID above, which starts with 04, belongs to Bremen.
A federal body never uses a Land code, because the code 99 is reserved for the Bund. The Land code is the same as the first two digits of the official municipality key.
The coarse addressing has up to four elements: the Land or federal code (2 digits, the first two digits of the municipality key), the district or federal ordinal (1 digit, mandatory if the county is given), the county (2 digits, mandatory if the municipal part is given) and the municipal association or municipality (3, 4 or 7 digits, optional). Together they make 2 to 12 digits.
| Code | Meaning |
|---|---|
| 01 | Schleswig-Holstein |
| 02 | Hamburg |
| 03 | Lower Saxony |
| 04 | Bremen |
| 05 | North Rhine-Westphalia |
| 06 | Hesse |
| 07 | Rhineland-Palatinate |
| 08 | Baden-Württemberg |
| 09 | Bavaria |
| 10 | Saarland |
| 11 | Berlin |
| 12 | Brandenburg |
| 13 | Mecklenburg-Vorpommern |
| 14 | Saxony |
| 15 | Saxony-Anhalt |
| 16 | Thuringia |
| 99 | Federal bodies (Bund) |
Fine addressing and the separator
The fine addressing is optional, has up to 30 letters and digits (A to Z, not case-sensitive, and 0 to 9), and is best started with a letter.
A public body uses it to separate departments or processing areas below the level of the coarse addressing. The specification only recommends starting with a letter; it does not make it a rule.
The separator between the parts is the hyphen-minus (Unicode U+002D). The Peppol code list, version 9.7, describes scheme 0204 with the pattern [0-9]{2,12}(\-[0-9A-Z]{0,30})?\-[0-9]{2} and a maximum length of 46 characters, which matches the three parts above.
The check digits: a worked example
The two check digits are calculated with ISO/IEC 7064 modulo 97-10 over the coarse and fine addressing without hyphens: letters become numbers (A is 10, Z is 35), 00 is appended, and the check number is 98 minus the remainder after division by 97. The KoSIT specification gives the sample 04011000-1234512345-06, and the five steps for it are:
- Remove the hyphens and join the coarse and fine addressing: 040110001234512345.
- Replace every letter by its number (A is 10 to Z is 35). The sample has no letters.
- Append 00: 04011000123451234500.
- Divide by 97. The remainder is 92.
- Subtract the remainder from 98: 98 minus 92 is 06. The ID is 04011000-1234512345-06.
A complete ID is valid if the full number, with the check digits in place of the 00, leaves a remainder of 1 after division by 97. This control can be done in a spreadsheet or in code before the invoice leaves your system.
For the sample, 04011000123451234506 divided by 97 leaves a remainder of 1. The table applies the method to three IDs, and the last two were recomputed on 3 December 2026.
| ID | Source | Coarse plus fine (without hyphens) | Remainder | Check digits |
|---|---|---|---|---|
| 04011000-1234512345-06 | KoSIT specification example | 040110001234512345 | 92 | 06 (98 minus 92) |
| 04011000-12345-03 | KoSIT test suite, case 01.01a | 0401100012345 | not shown | 03 |
| 08-A3183-10 | Baden-Württemberg example in a Peppol address | 08A3183 | not shown | 10 |
The second ID is the BT-10 value of KoSIT test case 01.01a and shows that a short fine addressing is enough. The third ID shows that the fine addressing can contain letters: the A of 08-A3183-10 becomes 10 in step 2 of the calculation, so the digits to divide are 0810318300.
The check digits do not detect a hyphen placed one position off. They also show only that the number is well-formed: whether the authority accepts the ID is a different question that only the ordering body can answer.
Where does the Leitweg-ID go in the invoice?
The Leitweg-ID goes into the buyer reference, business term BT-10, of an XRechnung; the XRechnung business rule BR-DE-15 makes that field mandatory. For recipients on the federal receipt platform the same value also forms part of the Peppol delivery address, as the sections below show.
For a public customer you therefore fill BT-10 with the ID from the order and never leave it empty. The field list and the other business rules sit on the page about the XRechnung standard.
BT-10 in an XRechnung
In UBL the element is cbc:BuyerReference and in CII it is ram:BuyerReference. For a public customer the field carries only the Leitweg-ID of the recipient. It is therefore not the place for your own order reference or customer number, and the value belongs to the recipient and not to you.
BR-DE-15 is a fatal rule in the XRechnung Schematron 2.6.0, so an XRechnung without BT-10 fails validation. For invoices between businesses the tax effect is limited, as the B2B section below explains.
The XRechnung 4.0 pre-release of 15 September 2026 would allow BT-10 more than once, each with an optional scheme identifier, but it is not intended for production use.
ZUGFeRD and the Peppol address
To send a ZUGFeRD invoice to the federal government you use the profile XRECHNUNG, which is pure XML without a visual PDF part. The e-rechnung-bund.de FAQ names this profile as the only one for the federal route. The profiles are compared on the page about ZUGFeRD and its profiles.
For recipients connected to the OZG-RE, the Peppol receiver ID is 0204 followed by a separator and the Leitweg-ID. The federal test address, for example, is 0204:99661-WEBSERVICEOZG-28. The Leitweg-ID must also be in BT-10, otherwise the OZG-RE rejects the invoice. The sender ID is 9930:<VAT ID> or 0088:<GLN>.
Other Länder portals may use different identifiers. According to the e-rechnung-bund.de FAQ, the Peppol participant ID and the Leitweg-ID can differ for other Länder.
The NRW portal, for instance, uses one portal-wide ID, 0204:05-NRW-83, for all connected authorities, and the recipient's own Leitweg-ID still goes into BT-10. The KoSIT Peppol FAQ explains participant IDs in general.
How do you get the Leitweg-ID of a German public customer?
You do not request a Leitweg-ID yourself: the public customer tells you the ID when it places the order, and you should use only the ID named in the order.
This is the rule of the e-rechnung-bund.de FAQ, operated by the Beschaffungsamt of the Federal Ministry of the Interior (BeschA). The federal web entry on the OZG-RE also offers a directory of the connected IDs, but the number in the order has priority.
In practice, ask for the ID when you accept the order, and ask again if it is missing from the order document. For federal bodies the issuer is named below; for Länder and municipalities the table in the Land section shows who passes on the ID.
Federal bodies and the prefixes 991, 992 and 993
Federal bodies use the code 99, and the three-digit prefixes show how the body receives invoices: 991 for direct federal administration and constitutional bodies via the OZG-RE, 992 for indirect federal administration via the OZG-RE and 993 for indirect federal administration with its own solution.
The federal central finance service (Zentrales Finanzwesen des Bundes, ZFB) assigns the IDs for federal bodies. As of 3 December 2026 the contact given in the e-rechnung-bund.de FAQ is erechnung@zrb.bund.de.
Land and municipal bodies: who issues the ID
For Länder and municipalities there is no single issuer: as of 3 December 2026 the issuer list on e-rechnung-bund.de names a central body for some Länder and states for others that the ordering body passes the ID on directly.
The table follows that list; the sources are the e-rechnung-bund.de page on the Länder unless another source is named. It is a dated list statement and not a confirmation for an individual authority.
| Land | Who passes on or issues the Leitweg-ID (as of 3 December 2026) | Source |
|---|---|---|
| Baden-Württemberg | Serviceportal Baden-Württemberg; invoices without or with an invalid ID are not accepted | e-rechnung-bund.de; KoSIT overview, March 2024 |
| Bavaria | no central issuing body | e-rechnung-bund.de |
| Berlin | Senate Department for Finance; a supplier needs only the ID of the ordering body | e-rechnung-bund.de; Berlin FAQ |
| Brandenburg | Ministry of Finance; directory dated 1 April 2025 | e-rechnung-bund.de; Ministry of Finance |
| Bremen | the Senator for Finance | e-rechnung-bund.de |
| Hamburg | FL DRiVe (Fachliche Leitstelle Digitales Rechnungswesen in der Verwaltung) | e-rechnung-bund.de |
| Hesse | not assigned centrally; the ordering bodies tell suppliers which ID to use, if they use one | e-rechnung-bund.de |
| Lower Saxony | passed on by the ordering body at the order | e-rechnung-bund.de |
| North Rhine-Westphalia | assigned centrally for IDs under the NRW specification, free of charge; public list | NRW procurement portal |
| Rhineland-Palatinate | passed on by the ordering body at the order | e-rechnung-bund.de |
| Saarland | passed on by the ordering body at the order | e-rechnung-bund.de |
| Saxony | Project Office E-Rechnung for the Land; municipalities via SAKD | e-rechnung-bund.de; KoSIT overview, March 2024 |
| Saxony-Anhalt | Leitstelle E-Rechnung | e-rechnung-bund.de |
| Schleswig-Holstein | Finance Ministry, unit 24; municipalities via ITV.SH, free of charge | e-rechnung-bund.de; ITV.SH newsletter |
| Thuringia | Ministry for Digital Affairs and Infrastructure | e-rechnung-bund.de |
For Lower Saxony and Rhineland-Palatinate the current list differs from older sources, which named central bodies, and for Saarland no issuer was named before. Older guides may therefore still point suppliers to the wrong office.
The latest KoSIT overview of the Länder is dated March 2024 and is partly outdated, so the safest route is to ask the ordering body. An English article on the e-invoicing rules of the 16 Länder is not yet published.
When is a Leitweg-ID required, and when is it not?
A supplier needs the Leitweg-ID of the recipient when it invoices a public body that is covered by the federal ordinance or by a Land rule, and it does not need one for an invoice to another business. The federal rule is described first, then the position between businesses.
In short, three situations arise. An invoice to a federal body must carry the ID under § 5(1) no. 1 ERechV. An invoice to a Land or municipal body depends on that Land's rules, which is why the ordering body is the safest source. An invoice to another business needs no Leitweg-ID.
Invoices to the federal government: what § 5 ERechV requires
Under § 5(1) no. 1 ERechV the Leitweg-ID (Leitweg-Identifikationsnummer) is mandatory content of every e-invoice to the federal government, together with bank details, payment terms and an e-mail or De-Mail address of the invoicing party.
If the order names a supplier number or an order number, § 5(2) ERechV adds those as well. The text is available as § 5 ERechV on gesetze-im-internet.de.
The supplier duty has applied since 27 November 2020 (§ 3(1) with § 11(3) ERechV), with an exemption for a direct order up to EUR 1,000 (§ 3(3) no. 1 ERechV).
Recipients are the bodies named in § 159(1) nos. 1 to 5 of the Act against Restraints of Competition (GWB), and the invoicing party is a business within § 14 of the Civil Code (BGB).
The ID you use is always the recipient's, because a supplier needs none of its own. Registration on the OZG-RE is required for every channel (§ 4(3) ERechV) and free of charge according to the e-rechnung-bund.de FAQ; see also the overview of e-invoices to the federal government and its portals.
B2B invoices: no Leitweg-ID, a placeholder is enough
For an e-invoice between businesses no Leitweg-ID is needed, and where a format insists on BT-10 a placeholder such as a hyphen is enough for VAT purposes (BMF FAQ on the E-Rechnung, as of October 2026, question 6).
The Federal Ministry of Finance (BMF) reasons that, because no Leitweg-ID is required in B2B, a placeholder satisfies the VAT rules.
Para. 35a of the BMF letter of 15 October 2024 as amended on 15 October 2025 adds that business-rule errors on other content, such as a missing BT-10, are "umsatzsteuerlich unbeachtlich", that is, irrelevant for VAT.
The German VAT Act itself names no Leitweg-ID, and the transitional rules of § 27(38) UStG, which run until 31 December 2027 at the latest, do not change that.
The KoSIT FAQ on the XRechnung says that no Leitweg-ID is needed to send and receive B2B e-invoices, and the e-rechnung-bund.de FAQ says that companies need no ID of their own, including for B2B invoices since 1 January 2025. The transitional rules for B2B are set out in the BMF letters on the E-Rechnung.
Why a Leitweg-ID is rejected and what to check
The OZG-RE rejects an invoice whose Leitweg-ID is missing from the invoice or reported as not valid, and the usual causes are misplaced hyphens or spaces before or after the entry. If the platform does not accept the ID the ordering body gave you, contact that body first.
- Take the ID from the order and not from an older invoice or a directory.
- Enter the hyphens exactly as given, with no extra or missing hyphen.
- Remove any space before or after the value.
- Put the ID in BT-10 and not only in the Peppol envelope; for the validation step see how to check a German e-invoice.
If the ID in your hand is in doubt, ask the ordering body before you resend the invoice. The ordering body is the only party that can confirm which ID belongs to which processing area.
Baden-Württemberg does not accept invoices without a Leitweg-ID or with an invalid one, according to the KoSIT overview of March 2024.
The OZG-RE publishes a test address for the Peppol route, 0204:99661-WEBSERVICEOZG-28, which belongs to the federal platform and not to any authority. A correct check number is no guarantee of acceptance, as the worked example showed.
Handling Leitweg-IDs in your invoicing software
Invoicing systems differ in where they store the Leitweg-ID, so check whether the customer record or each invoice carries it before you send the first invoice to a public body. Also check that the value reaches BT-10 unchanged, without spaces added or hyphens removed.
Because a body may hold several IDs, a single customer record may need more than one stored ID, one for each ordering area. Your own company needs no Leitweg-ID field in its master data, because a supplier needs no ID of its own.
Which programs create and read XRechnung files is shown in our German e-invoicing software overview.
Related topics: Peppol, the federal portal and the Land rules
The Leitweg-ID is only the address; the delivery rules sit in Peppol, in the federal OZG-RE platform and in the Länder rules. Peppol is a network and not a format, and no legal duty to use it exists in B2B; see Peppol in Germany for the network itself.
The OZG-RE is the only federal receipt platform since 19 September 2025, and one-time registration is required for every channel, including Peppol (§ 4(3) ERechV). The channels are web entry, upload, e-mail and Peppol. The Leitweg-ID is the common element of all four.
| Topic | Relation to the Leitweg-ID | Page |
|---|---|---|
| Peppol | Network; the receiver ID is 0204 plus the Leitweg-ID for OZG-RE recipients | Peppol in Germany |
| OZG-RE | Federal receipt platform since 19 September 2025; one-time free registration for every channel | Not yet available in English |
| Länder rules | The Bavarian Court of Audit names seven Länder with a supplier duty in its annual report 2026 (no. 41): Bremen, Baden-Württemberg, Hamburg, Saarland, Mecklenburg-Vorpommern, Hesse and Rhineland-Palatinate | Not yet available in English |
| Formats | XRechnung, and ZUGFeRD with the profile XRECHNUNG | e-invoice formats compared |
| Deadlines | The B2B transitions do not change the ID rules | deadlines from 2025 to 2028 |
Frequently asked questions
Short answers on the most common Leitweg-ID questions, as of 3 December 2026.
What is a Leitweg-ID used for?
A Leitweg-ID is the routing code of a German public-sector invoice recipient, placed in BT-10 of the XRechnung. The receiving system uses it to assign the invoice to the right body.
Do I need a Leitweg-ID of my own as a supplier?
No, suppliers use the recipient's ID. According to the e-rechnung-bund.de FAQ, companies need no ID of their own, and that includes B2B invoices since 1 January 2025.
Can one authority have several Leitweg-IDs?
Yes, a body may hold several IDs so that invoices reach the right processing area. Use the one named in the order.
Is the Leitweg-ID the same as the Peppol ID?
No, they are never fully identical. For recipients connected to the OZG-RE the Peppol ID adds the prefix 0204 and a separator, and the Leitweg-ID still goes into BT-10.
Can I generate a Leitweg-ID myself?
No, the issuing body assigns it. A calculator only computes the check digits, which show a well-formed number and not that the authority accepts it.
Sources
- KoSIT (xeinkauf.de): xeinkauf.de/app/uploads/2022/11/Leitweg-ID-Formatspezifikation-v2-0-2-1.pdf
- KoSIT (xeinkauf.de): xeinkauf.de/xrechnung
- E-Rechnung des Bundes: e-rechnung-bund.de/faq
- Gesetze im Internet: gesetze-im-internet.de/erechv/__2.html
- Gesetze im Internet: gesetze-im-internet.de/erechv/__3.html
- Gesetze im Internet: gesetze-im-internet.de/erechv/__4.html
- Gesetze im Internet: gesetze-im-internet.de/erechv/__5.html
- Gesetze im Internet: gesetze-im-internet.de/erechv/__11.html
- E-Rechnung des Bundes: e-rechnung-bund.de/ubertragungskanale/peppol
- KoSIT (xeinkauf.de): xeinkauf.de/peppol/faq
- OpenPeppol: docs.peppol.eu/edelivery/codelists/v9.7/…
- KoSIT (xeinkauf.de): xeinkauf.de/faq/xrechnung
- KoSIT (xeinkauf.de): xeinkauf.de/xrechnung/version-4
- github.com: github.com/itplr-kosit/xrechnung-schematron
- github.com: github.com/itplr-kosit/xrechnung-testsuite
- Bundesministerium der Finanzen: bundesfinanzministerium.de/Content/DE/Downloads/BMF_Schreiben/Steuerarten/Umsatzsteuer/…
- Bundesministerium der Finanzen: bundesfinanzministerium.de/Content/DE/FAQ/e-rechnung.html
- E-Rechnung des Bundes: e-rechnung-bund.de/e-rechnung/umsetzung-der-e-rechnung-in-den-bundeslaendern
- KoSIT (xeinkauf.de): xeinkauf.de/app/uploads/2024/03/Oeff.-Laendersynopse_Stand-Maerz-2024.pdf
- orh.bayern.de: orh.bayern.de/berichte/jahresberichte/jahresberichtsbeitraege/2026/2026_41/…