Tool · free, no sign-up
Leitweg-ID checker: structure and check digits
Type the Leitweg-ID your public-sector customer gave you. You see at once whether the coarse address, the fine address and the check digits are right, and what each part means.
Your input stays in your browser. Nothing is sent and nothing is stored.
Check a Leitweg-ID
For example 04011000-1234512345-06. Spaces and upper or lower case do not matter.
Examples (made up)
Nothing entered yet
How a Leitweg-ID is built
A Leitweg-ID has up to three parts separated by hyphens. The basis is the Leitweg-ID format specification, version 2.0.2 of 28.07.2021.
Coarse address (Grobadressierung)
Required. Two to twelve digits. The first two digits name the federal state (01 to 16) or the federal government (99). The remaining digits follow the regional key: administrative district (Regierungsbezirk, one digit), rural district (Landkreis, two digits), association of municipalities or municipality (three, four or seven digits). Each of these levels is optional but requires the one before it.
Fine address (Feinadressierung)
Optional. Up to 30 letters (A to Z, case does not matter) or digits. There is no general rule for the fine address; the federal government and the states use it according to their own systems.
Check digits (Prüfziffer)
Required. Exactly two digits, calculated from the coarse and fine address without the hyphens under ISO/IEC 7064 (modulo 97-10), as for the IBAN. Letters count as 10 to 35 (A = 10 to Z = 35). As a test the whole ID without hyphens is divided by 97; for a valid ID the remainder is 1. That is how typing mistakes show up.
What this check cannot do
Where do I get the Leitweg-ID?
The federal government and the states assign Leitweg-IDs for their administrative units. Your customer usually passes the ID on in the specific order, for example in the tender, the contract or on the purchase order.
If it is missing there, ask the office that commissioned you, for example purchasing or the department that placed the order.
Rely only on the ID your customer gives you. A formally correct ID from a list can still reach the wrong office.
How the Leitweg-ID gets into the e-invoice
In XRechnung the Leitweg-ID goes into the buyer reference field, business term BT-10. Rule BR-DE-15 requires that this field is filled. In UBL syntax the element is BuyerReference in the cbc namespace, in CII syntax it is BuyerReference inside ApplicableHeaderTradeAgreement.
If you invoice a business, you do not need a Leitweg-ID for VAT purposes; a placeholder is enough (BMF FAQ on e-invoicing, question 6). Because XRechnung requires the buyer reference field (BR-DE-15), enter a placeholder there, such as your customer's order number.
<cbc:BuyerReference>04011000-1234512345-06</cbc:BuyerReference><ram:ApplicableHeaderTradeAgreement> <ram:BuyerReference>04011000-1234512345-06</ram:BuyerReference></ram:ApplicableHeaderTradeAgreement>How it works
Check a Leitweg-ID
Enter the ID
Type the Leitweg-ID of your customer into the field or paste it from the clipboard.
Look at the three parts
Check that the coarse address, the fine address and the check digits are recognised as correct.
Compare the check digits
If the check digits are wrong, the page shows the expected ones. Compare your source once more, character by character.
Have the ID confirmed
If in doubt, ask your customer to confirm that the ID is assigned and leads to the right office.
Enter it in BT-10
Enter the ID as the buyer reference (BT-10) when you create the XRechnung.
Frequently asked questions
Short answers, with sources wherever the law is involved.