Leitweg-ID
Validator
Check whether a Leitweg-ID is correctly formatted and passes the official KoSIT ISO 7064 Mod 97,10 checksum — entirely in your browser.
About XRechnung and Leitweg-ID (Germany)
XRechnung is the mandatory German electronic invoicing standard (XML UBL/CII) regulated by KoSIT for B2G and B2B procurement.
The Leitweg-ID is the routing identifier, in the format [jurisdiction prefix]-[sub-entity ID]-[2-digit checksum], that routes an invoice to the correct recipient authority.
Anatomy & Structure of Leitweg-ID (XRechnung / KoSIT)
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 4 | Jurisdiction / Bundesland | 2-4 chars | Federal state code ('04011000' for the federal Bund administration, '09' for Bavaria, etc.) | 04011000 |
| Middle | Sub-entity ID | up to 10 chars | Public administration department or municipality receiving the invoice | 1234512345 |
| End | Checksum Digits | 2 digits | Check digits computed per ISO 7064 Modulo 97,10 | 06 |
ISO 7064 Modulo 97,10 Checksum Algorithm
| Step | Description |
|---|---|
| 1. Concatenate the two blocks | Combine the jurisdiction prefix with the sub-entity ID, with any hyphens removed. |
| 2. Transliterate letters | Convert any letters to their numeric equivalents (A=10 through Z=35); numeric-only IDs are used as-is. |
| 3. Append the padding | Append '00' to the end of the resulting numeric string. |
| 4. Reduce modulo 97 | Compute the remainder of dividing the resulting integer by 97. |
| 5. Complement from 98 | Subtract the remainder from 98. The 2-digit, zero-padded result is the checksum. Compare it to the Leitweg-ID's own final 2 digits. |
Frequently Asked Questions (FAQ)
How is the Leitweg-ID check digit calculated?
KoSIT's official Leitweg-ID Format-Spezifikation defines it as an ISO 7064 Mod 97,10 checksum: strip any hyphens from the jurisdiction prefix and sub-entity ID, transliterate any letters to numbers (A=10…Z=35), append "00", take the result modulo 97, and subtract that remainder from 98 to get the 2-digit check digit.
What are the ZRE and OZG-RE platforms?
ZRE (Zentrale Rechnungseingangsplattform des Bundes) and OZG-RE (the states' shared e-invoicing receipt platform) are the official government portals that receive and route XRechnung invoices to public-sector recipients using their Leitweg-ID — most German B2G e-invoicing software submits through one of the two.