Skip to main content

XRechnung CIUS-DE & Leitweg-ID Generator (Germany)

Generate valid Leitweg-IDs with ISO 7064 Mod 98-10 check digits and XRechnung 3.0 XML invoices for German public procurement.

Waiting for generation...

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 format [StatePrefix]-[SubEntity]-[2-digit CheckDigit] that routes the invoice to the recipient authority.

Anatomy & Structure of Leitweg-ID (XRechnung / KoSIT)

The Leitweg-ID is the mandatory public electronic invoicing routing address in Germany:

PositionFieldLengthMeaning & KoSIT SpecificationExample
1 to 4Jurisdiction / Bundesland2-4 charsFederal state code ('04011000' for Federal Bund administration, '09' for Bavaria, etc.).04011000
MiddleSubentity IDup to 10 charsPublic administration department or municipality receiving the invoice.12345
EndChecksum Digits2 digitsCheck digits computed per ISO 7064 Modulo 97-10.38

ISO 7064 Modulo 97-10 Checksum Algorithm

Leitweg-ID routing integrity is secured using the international standard ISO 7064:

Checksum = 98 - (BigInt(NumericString) % 97)
  1. 1. Block Concatenation: combine the federal state prefix with the subentity ID.
  2. 2. Alphanumeric Transliteration: convert letters into numeric equivalents (A=10 through Z=35) and append '00' at the end.
  3. 3. Modulo 97: compute the remainder of dividing the integer by 97.
  4. 4. Complement 98: subtract the remainder from 98. The 2-digit zero-padded result is the checksum.

Frequently Asked Questions (FAQ)