The Leitweg-ID is an identifier used to route an e-invoice to a public contracting authority in Germany to the right office. It is not assigned by the invoice issuer: the contracting authority gives it to you. In an XRechnung it goes in the buyer reference field (BT-10).
As of: Oct. 26, 2026
This guide is a machine translation of the German original as of Oct. 26, 2026. Only the German version is authoritative: read the German version. If you contact us, please write in German or English.
What the Leitweg-ID is for
Public contracting authorities – the federal government, the federal states, municipalities and other bodies – have many offices that process invoices. The Leitweg-ID says which office an e-invoice goes to. Invoices to public contracting authorities are subject to separate rules of the federal government and the federal states, for the federal government for example the E-Invoicing Ordinance (E-Rechnungsverordnung, ERechV). Usually an XRechnung is required, often submitted via an invoice portal and with a Leitweg-ID provided by the contracting authority. Your contracting authority can tell you exactly which requirements apply. The portal, transmission channels and the obligation for the federal government, each with an official source, are on the page XRechnung to federal authorities.
Where the Leitweg-ID goes in an XRechnung
In an XRechnung, the Leitweg-ID goes in the buyer reference (Buyer reference, BT-10). In the CII
syntax this is the element ram:BuyerReference in
ram:ApplicableHeaderTradeAgreement, in UBL cbc:BuyerReference.
The buyer reference is mandatory in every XRechnung. If it is missing or contains only spaces, the validation reports the rule BR-DE-15. The validation rule page explains causes and how to fix it.
In the invoice form, enter the Leitweg-ID in the section “Invoice details” in the field “Buyer reference / Leitweg-ID (BT-10)” and then validate the invoice again.
Structure and check digit
According to the KoSIT format specification, the Leitweg-ID consists of the coarse addressing (2 to 12 digits, starting with the code of the federal state or of the federal government), an optional fine addressing (up to 30 letters and digits) and a two-digit check digit, each separated by a hyphen. As with the IBAN, the check digit is calculated using the Modulo 97-10 method; it serves to detect typing errors in the Leitweg-ID.
With the tool Check a Leitweg-ID you can check the structure and check digit without an account, directly in the browser. Whether the Leitweg-ID exists and whether it belongs to your contracting authority can only be confirmed by the contracting authority.
Leitweg-ID and invoices between businesses
Between businesses, the e-invoicing mandate under the German VAT Act (Umsatzsteuergesetz) applies; it does not require a Leitweg-ID. If you send a business an XRechnung, the buyer reference contains a different reference specified by the buyer. From when you have to issue invoices to businesses as e-invoices is explained in the article E-invoicing mandate 2027: the €800,000 threshold and in the E-invoicing mandate check.
How to proceed
- Ask the public contracting authority for the Leitweg-ID if it is not in the contract.
- With a free account, create the invoice in the web form, enter the Leitweg-ID in BT-10 and download it as an XRechnung.
- Validate a finished XRechnung in the validator without an account against the official KoSIT validation rules before you submit it.
Frequently asked questions
Where do I get the Leitweg-ID?
From the public contracting authority the invoice is addressed to. If it is not in the contract or the purchase order, ask there. With a guessed or someone else's Leitweg-ID, the invoice may end up at the wrong office.
Do I need a Leitweg-ID for invoices to businesses?
No. The Leitweg-ID belongs to invoices to public contracting authorities. In an XRechnung to a business, the buyer reference (BT-10) can contain a different reference specified by the buyer.
What does a Leitweg-ID look like?
It consists of digits and letters in blocks separated by hyphens, for example 04011000-12350-85. Copy it exactly as the contracting authority gives it to you. You can check its structure and check digit with the tool “Check a Leitweg-ID”.
What does the message BR-DE-15 mean?
The buyer reference (BT-10) is missing from the XRechnung or contains only spaces. For public contracting authorities, that is where the Leitweg-ID goes.
Sources
- Verordnung über die elektronische Rechnungsstellung im öffentlichen Auftragswesen des Bundes (E-Rechnungsverordnung – ERechV) (Federal Ordinance on electronic invoicing in public procurement)
- BMF-Schreiben zur Einführung der obligatorischen E-Rechnung zwischen inländischen Unternehmern (BMF letter on the introduction of mandatory e-invoicing between domestic businesses) (Oct. 15, 2025, III C 2 - S 7287-a/00019/007/243)
- BMF-Schreiben zur obligatorischen E-Rechnung – ergänzende Regelungen (BMF letter on mandatory e-invoicing – supplementary rules) (Oct. 15, 2026, III C 5 - S 7287-a/00019/021/017)
- Leitweg-ID – Format-Spezifikation, Version 2.0.2 vom 28.07.2021 (KoSIT / XStandards Einkauf) (Leitweg-ID format specification)
This article summarises the sources listed in general terms and is not tax or legal advice. For your individual case, please consult a tax advisor.