Leitweg-ID
Leitweg-ID: where to find it, how it is built and what it fails on
The Leitweg-ID is the address an invoice to a German public authority is routed to. This page covers where your customer’s ID comes from, who assigns it, what goes in the field on invoices to businesses, how the format with its check digits is built, and what goes wrong when a digit slips.
Check your Leitweg-ID
Structure, character set and check digit against format specification 2.0.2. The check runs in the browser.
The check runs in your browser. The ID you type never leaves the device.
What the Leitweg-ID is
Anyone invoicing a German public authority electronically does not send the invoice to an email address but to an invoice reception portal that sits in front of hundreds or thousands of offices. The Leitweg-ID tells the portal which one is meant. It is an address, not an identifier of your company and not a tax number.
It is registered as its own scheme under ISO/IEC 6523 and travels in an XRechnung in the buyer reference field (BT-10) — in UBL as cbc:BuyerReference, in CII as ram:BuyerReference. Which is exactly why this page exists: the most common German rejection hangs on that one field.
A second field can carry the same ID, and the two get confused: the buyer electronic address (BT-49). Where the Leitweg-ID stands there, the scheme attribute is 0204 rather than EM, which denotes an email address. The formerly common 9958 is no longer in the code list and fails. BT-10 addresses within the administration, BT-49 addresses the delivery network — the same string, two different jobs. With the scheme attribute missing, the validator reports BR-63.
Where to find the Leitweg-ID
From the recipient. The authority gives it to you with the order, in the purchase order, in the contract, or on request from the office that ordered. There is no central directory.
Partial directories exist: some authorities publish their IDs, Bremen for instance as lists on its e-invoicing page, and the web form of OZG-RE, the federal invoice platform, shows the IDs connected there. The Peppol Directory lists some under the 0204 scheme, unchecked. The federal government still advises using only the ID from the order.
This is where most of the time goes. A Leitweg-ID cannot be computed and cannot be guessed: the fine addressing behind the coarse addressing is assigned by each state and each federal body under its own scheme, and one authority may run different IDs for different offices or procedures. So ask for the ID for this particular order, not for “the city’s ID”.
A checker like the one on this page can tell you an ID is formally sound. Whether it belongs to your recipient is something only you and the recipient know — that mapping is in no complete register anyone outside can read.
Who assigns it
As a supplier you do not apply for a Leitweg-ID: it belongs to the recipient. The authority applies for it, at the office that coordinates the IDs for its area. Where that is published:
- Federal government — Zentrales Finanzwesen des Bundes (ZFB)
- Berlin — Senate Department for Finance
- Brandenburg — Statistics Office Berlin-Brandenburg
- Lower Saxony — IT.Niedersachsen (IT.N)
Invoices to federal bodies whose ID starts 991, 992 or 993 go through OZG-RE or the body’s own solution. How that works: invoicing federal authorities.
Invoices to businesses
Businesses have no Leitweg-ID, and between businesses none is needed. The field for it, the buyer reference BT-10, is demanded only by XRechnung, through the rule BR-DE-15. If you send a business an XRechnung, what belongs there is whatever reference the customer gives you — their order number or your supplier number. The XRechnung specification expressly provides for buyers’ own references in business-to-business use.
If there is none, a placeholder such as “-” is enough for VAT purposes, according to the Federal Ministry of Finance. Even a missing buyer reference is, under the ministry’s letter of 15 October 2025, a breach of a business rule that does not matter for VAT — the invoice stays valid; only the validator reports it. Simpler, usually, is an EN 16931 e-invoice without the XRechnung rules, where the field is optional.
Examples
Two valid Leitweg-IDs that belong to no authority, to try in the checker above. They are no use for a real invoice.
- 04011000-1234512345-06
- The format specification’s example: Bremen (04), an 8-digit coarse addressing, fine addressing, check digits.
- 991-33333TEST-33
- The federal government’s example from its Peppol guide: 991 for the direct federal administration, a fine addressing with letters.
How it is built
Three parts, separated by hyphen-minus: coarse addressing, optional fine addressing, two check digits. Between 5 and 46 characters in total.
04011000-1234512345-06
Coarse addressing: 2 to 12 digits
Numeric only, assembled from four elements, each of which may be left out only if every element after it is left out too:
| Digits | Meaning |
|---|---|
| 2 | State, or federal, code |
| 1 | Regierungsbezirk (required once a district follows) |
| 2 | District (required once a municipality follows) |
| 3, 4 or 7 | Municipal association and/or municipality |
One consequence is worth stating because no document states it outright: a coarse addressing can only be 2, 3, 5, 8, 9 or 12 digits long. Four, six, seven, ten and eleven digits cannot be assembled from that table — if you see them, a digit has gone missing.
The first two digits
01 Schleswig-Holstein
02 Hamburg
03 Niedersachsen
04 Bremen
05 Nordrhein-Westfalen
06 Hessen
07 Rheinland-Pfalz
08 Baden-Württemberg
09 Bayern
10 Saarland
11 Berlin
12 Brandenburg
13 Mecklenburg-Vorpommern
14 Sachsen
15 Sachsen-Anhalt
16 Thüringen
99 Bund
Fine addressing: optional, up to 30 characters
Letters A–Z (not case-sensitive) and digits 0–9. Federal and state bodies fill it as they like, so it carries no meaning derivable from outside the authority itself. The specification recommends starting it with a letter — the reason is in the check digit section below.
Check digits: two digits
Computed under ISO/IEC 7064:2003, method MOD 97-10 — the same one an IBAN uses. It is not free to choose: it follows from the coarse and fine addressing.
- 1Concatenate coarse and fine addressing without the hyphens:
040110001234512345 - 2Replace letters with their position in the alphabet, A = 10 through Z = 35. (There are none in the example.)
- 3Append two zeroes:
04011000123451234500 - 4Take it modulo 97: remainder 92.
- 5Subtract the remainder from 98: 98 − 92 = 06. A single-digit result is written with a leading zero.
Checking is one step: the full ID, hyphens removed and letters translated, must give 1 modulo 97.
The mistakes that actually happen
- The wrong hyphen
- Copied out of a Word document or a PDF, the separator is often an en dash (–) or a non-breaking hyphen rather than the hyphen-minus U+002D the specification requires. The ID looks right and is refused. The checker above names the character and shows the corrected form.
- The hyphen one position out
- Because the hyphen is left out of the check digit, 04011000-1234512345 and 040110001-234512345 carry the same check digit. The check digit cannot see that error — which is why the specification recommends starting the fine addressing with a letter: the misplaced hyphen then puts a letter into the numeric-only coarse addressing, where it is obvious.
- Transposed digits
- Exactly what the check digit is for. When the checker expects a different check digit from the one given, usually it is not the check digit that was copied wrongly but a digit before it.
- Spaces and invisible characters
- Leading and trailing spaces from the clipboard, or spaces around the hyphens because the ID sat in a sentence. To the receiving system that is a different value.
- The ID is missing entirely
- That is no longer a format problem but BR-DE-15 — the rule that reports a missing buyer reference.
Common questions
Can my company apply for a Leitweg-ID?
No. Leitweg-IDs address public offices that receive invoices. A company, even one that supplies authorities, gets none; it enters its customer’s ID.
Is the Leitweg-ID the same as the Peppol ID?
Nearly. The Peppol ID of an authority on OZG-RE is 0204: followed by its Leitweg-ID. The same 0204 scheme belongs in the buyer electronic address (BT-49) when the Leitweg-ID stands there.
What does “Leitweg-ID ist nicht valide” mean?
OZG-RE’s message when the ID does not match the format. According to the federal FAQ the cause is mostly wrong hyphens or spaces — exactly the mistakes the checker above finds.
Does XRechnung 4.0 change anything about the Leitweg-ID?
Not the format; format specification 2.0.2 still applies. The XRechnung 4.0 pre-release of September 2026 does, however, allow several buyer references, and a new rule, BR-DE-32, permits only one Leitweg-ID among them. The final version is expected in spring 2027.
Check the whole invoice
A well-formed Leitweg-ID is one of some 300 rules. The validator checks the complete invoice against the official KoSIT rule set and explains every finding in plain language.
Source: Leitweg-ID Format-Spezifikation 2.0.2, Koordinierungsstelle für IT-Standards, version of 28 July 2021 (still current on 25 October 2026). On directories, assignment and invoices to businesses: federal e-invoicing FAQ; Ministry of Finance e-invoicing FAQ (as of March 2026); XRechnung 3.0.2 specification, BT-10. This page restates the rules laid down there; the sources govern.