Skip to content
invoiceland
Validate for free

Leitweg-ID: structure, check digit and where to find it

Last updated:

Key points

  • The Leitweg-ID is the routing address of a German public-sector invoice recipient. In an XRechnung it goes into “Buyer reference” (BT-10).
  • Your public-sector customer provides it, usually with the contract or purchase order.
  • Structure: coarse address (mandatory), fine address (optional, up to 30 characters) and a two-digit check digit.
  • The check digit uses ISO 7064 MOD 97-10, like an IBAN. Our validator detects transposed digits.

If you invoice German authorities, municipalities or other public bodies, you need a Leitweg-ID. It makes sure your e-invoice reaches the right inbox.

Where it goes

In an XRechnung the Leitweg-ID belongs in “Buyer reference” (BT-10). The federal government and several states require it; other states use their own identifiers in BT-10. If in doubt, ask your public-sector customer what BT-10 should contain.

Structure

Three parts separated by hyphens:

  1. Coarse address (mandatory): digits based on the German regional key – state or federal level (2 digits), administrative district (1), county (2) and municipality (3, 4 or 7 digits).
  2. Fine address (optional): up to 30 characters, letters A–Z and digits 0–9, case-insensitive.
  3. Check digit (mandatory): two digits.

A fictitious example: 04011000-1234512345-06.

The check digit

It is calculated with ISO/IEC 7064 MOD 97-10, the same method as for IBANs: letters become numbers (A = 10 … Z = 35), hyphens are dropped, and the full number including the check digit must leave a remainder of 1 when divided by 97. Our validator recalculates it and flags a wrong Leitweg-ID – the official rule sets do not check this themselves.

Common mistakes

  • Missing Leitweg-ID: violates rule BR-DE-15; the invoice may be rejected.
  • Transposed digits: the check digit does not match.
  • Wrong field: the ID is only in a free-text note or the order number instead of BT-10.

For VAT purposes a missing BT-10 is irrelevant – the BMF cites it as an example of a business-rule error without tax consequences (BMF letter of 15 Oct 2025, paras. 6b, 35a). In practice it still matters: without a valid Leitweg-ID the buyer cannot route your invoice, and payment is delayed.

Sources

  1. FeRD: Leitweg-ID data sheet (PDF, German)
  2. XöV/KoSIT: Leitweg-ID specification (German)
  3. BMF letter of 15 Oct 2025, paras. 6b and 35a (PDF, German)

Frequently asked questions

Do I need a Leitweg-ID for business customers?

No – Leitweg-IDs exist only for public-sector buyers. An XRechnung always requires a buyer reference (BT-10), though; for business customers this is a reference agreed with the customer.

What happens if the Leitweg-ID is missing?

The XRechnung violates rule BR-DE-15 and may be rejected. For VAT purposes a missing BT-10 is irrelevant according to the BMF (para. 35a).