Skip to main content

Check a Leitweg-ID before you send the XRechnung

Enter the Leitweg-ID of a German public buyer. The check shows whether its structure and check digit are correct, splits it into coarse addressing, fine addressing and check digit, and names the federal or state level. A mistyped ID passes the official KoSIT validation, which does not check the check digit, but the invoice does not reach the right office.

The check runs in your browser: nothing is uploaded, and no account is needed. It does not query a government registry, so it cannot confirm that the public body exists or receives invoices under this ID.

Format: coarse addressing - fine addressing (optional) - check digits

Try a synthetic example:

A Leitweg-ID has 2 to 12 digits of coarse addressing, optional fine addressing of up to 30 letters or digits, and two check digits, separated by hyphens. Letters in the fine addressing are not case-sensitive.

The check digits follow ISO/IEC 7064 MOD 97-10: drop the hyphens, replace letters with A=10 to Z=35, and the whole number must leave remainder 1 when divided by 97. A swapped or mistyped character almost always breaks this.

The first two digits show the administrative level: 99 is the federal level (Bund), 01 to 16 are the federal states. "Valid" means the ID is well formed. Only the buyer can confirm that it is the right ID for your order.

Does a valid result mean the Leitweg-ID exists?

No. The check proves the structure and the check digit. There is no complete public directory of Leitweg-IDs, so it cannot confirm that a public body uses this ID. Take the ID from the order or contract, or ask the buyer.

Where does the Leitweg-ID go in an XRechnung?

In BT-10 Buyer reference: cbc:BuyerReference in UBL, ram:BuyerReference in CII. XRechnung rule BR-DE-15 requires BT-10, but the KoSIT validator does not check the check digit, so a typo still passes validation.

Why does the ID end with two digits?

Those are the check digits. They are calculated from the coarse and fine addressing, so most typos produce a wrong check digit. When the check digit does not match, the check shows the digits it expects.

What happens to the ID I enter?

Nothing leaves your browser. The page calculates the result locally, sends no request, and stores nothing.

Upload the PDF invoice, enter the Leitweg-ID as buyer reference in the review, and download an XRechnung that passed validation.

PDF to XRechnung