E-Invoicing
Leitweg-ID: The Key to Your B2G Invoices
Without Leitweg-ID, your e-invoice won\
You've created your first e-invoice in XRechnung format and are ready to send it to a public client? Then you've probably already stumbled upon the mandatory field "Leitweg-ID."
Without this number, your invoice won't arrive. In this post, we'll explain simply and concisely what the Leitweg-ID is, how it's structured, and - most importantly - where you can find it.
What Is the Leitweg-ID Actually?
Think of the Leitweg-ID like a digital house number. Since public administration in Germany is federally and highly complexly structured, a name as recipient is not sufficient.
The Leitweg-ID ensures that your e-invoice is routed exactly to the right place within the authority landscape - from the small invoice auditing office to the central federal treasury.
The Structure: More Than Just a Random Number
A Leitweg-ID is built according to a fixed standard. Here's an example: 05315-01234-51
- Coarse addressing (e.g., 05): Shows which federal state the recipient is in (e.g., NRW)
- Fine addressing: Identifies the specific authority or agency
- Check digit: Ensures the number was entered correctly
Where Do You Find Your Customer's Leitweg-ID?
The most important rule first: The authority must provide you with the Leitweg-ID. There's no public "phone book" for all IDs.
Here's where you usually find the number:
In the Order Letter
Look in the order confirmation or contract. The Leitweg-ID is often listed in the header or with the payment information.
In the Procurement Documents
For tenders, the ID is often in the fine print - look for sections like "Invoicing" or "E-Invoice."
On the Authority's Website
Many cities and municipalities have an info page on "E-Invoice" with their Leitweg-ID.
Ask
When in doubt, a quick call to the responsible case worker helps.
Pro tip: Save the Leitweg-ID directly in your customer's master data in Clever Invoice to avoid errors on future invoices.
Where Is the Leitweg-ID Entered?
In an XRechnung, there's a special technical field for this information: the Buyer Reference field.
If you use an online invoicing portal (like the federal ZRE or OZG-RE), there's an explicitly labeled field "Leitweg-ID" there. Without this entry, the sending process usually can't even be completed.
Tip: Check your XRechnung before sending with our free E-Invoice Validator.
Why Is the ID So Important for B2G Invoices?
Since the introduction of the e-invoicing obligation for the federal government and many states, invoices without a correct Leitweg-ID are automatically rejected. This means for you:
- Delayed payments - Your invoice won't be processed
- Manual extra effort through corrections and resending
- Possible late fees or loss of early payment discounts
Conclusion: No Panic About the ID
The Leitweg-ID is not a technical monster, but merely the navigation system for your invoice. Once you've stored the number in your system once, the process runs automatically.
With Clever Invoice, you save the Leitweg-ID once per customer and don't have to worry about it for future invoices. The software automatically inserts it into your XRechnung.
Start now: Create XRechnungen with Leitweg-ID - simple and error-free with Clever Invoice.
Frequently asked questions
Do I need my own Leitweg-ID?
No, as an invoice issuer you don't need your own Leitweg-ID. The ID identifies the recipient (the authority), not the sender.
Does the Leitweg-ID also apply to private companies?
No, the Leitweg-ID is exclusively for public clients (authorities, municipalities, public institutions). You don't need a Leitweg-ID for B2B invoices.
What happens if I enter an incorrect Leitweg-ID?
Your invoice will be automatically rejected. Therefore check the ID carefully before sending - best with an e-invoice validator.
Can I correct the Leitweg-ID afterwards?
No, with an incorrect ID you must create a new invoice with the correct Leitweg-ID and resend it.
Where do I find the Leitweg-ID for federal authorities?
For federal authorities, there's the central Leitweg-ID directory. Otherwise, you'll find the ID in the order documents or inquire directly with your contact person.