Germany E-Invoicing

Leitweg-ID: What Is It and How to Use It

A complete guide to Germany's e-invoicing routing system \u2014 XRechnung, ZUGFeRD, Peppol, and how vlastERP makes it effortless.

What Is a Leitweg-ID?

The Leitweg-ID (literally “routing path ID”) is a unique identifier assigned to every German public sector entity that receives electronic invoices. Introduced as part of Germany’s E-Rechnungsverordnung (E-Invoicing Regulation), the Leitweg-ID ensures that your XRechnung reaches the correct department, office, or cost center within the sprawling German public administration.

Think of it like a postal code for e-invoices: without the correct Leitweg-ID, your invoice will be rejected or lost in the system. Every freelancer and business that invoices the German public sector — from federal ministries to municipal utilities — needs to include the correct Leitweg-ID.

Leitweg-ID Structure

A Leitweg-ID follows a standardized three-part format:

[Grobadressierung]-[Feinadressierung]-[Pr\u00fcfziffer]
991-12345-67
  • Grobadressierung (coarse routing): identifies the authority at a high level. Typically 2-12 digits.
  • Feinadressierung (fine routing): pinpoints the specific department, project, or cost center. Up to 30 characters.
  • Pr\u00fcfziffer (check digits): two digits calculated from the previous parts for validation.

For federal authorities, the coarse routing usually starts with the authority’s identifier from the Beh\u00f6rdenverzeichnis. For state and municipal authorities, it varies by Bundesland.

XRechnung: Germany’s E-Invoice Standard

XRechnungis Germany’s national implementation of the European standard EN 16931. It is a pure XML format (based on UBL 2.1 or CII syntax) that carries all invoice data in a structured, machine-readable form. Key facts:

  • Mandatory for all suppliers to the German federal government since November 27, 2020.
  • Mandatory for most L\u00e4nder (state) and many municipal authorities, though timelines vary.
  • Submitted via the ZRE (Zentrale Rechnungseingangsplattform) for federal invoices or the OZG-RE portals for state invoices.
  • Must contain a valid Leitweg-ID in the BT-10 (Buyer Reference) field.
  • Validated against the official KoSIT XRechnung schematron rules before acceptance.

ZUGFeRD: The Hybrid Alternative

ZUGFeRD 2.x (Zentraler User Guide des Forums elektronische Rechnung Deutschland) is a hybrid format that embeds a CII XML invoice inside a PDF/A-3 document. This gives you the best of both worlds: a human-readable PDF for your client and a machine-readable XML for automated processing.

ZUGFeRD comes in several profiles:

  • MINIMUM: basic payment data only — not EN 16931 conformant.
  • BASIC WL: without line items — not EN 16931 conformant.
  • BASIC: full line items, EN 16931 conformant.
  • EN 16931 (COMFORT): the standard profile, fully conformant.
  • EXTENDED: additional fields beyond EN 16931, accepted by many German authorities as XRechnung-equivalent.
  • XRECHNUNG: ZUGFeRD with the XRechnung CIUS embedded — accepted on ZRE.

Peppol in Germany

Peppol (Pan-European Public Procurement OnLine) is the EU-wide network for exchanging electronic documents. Germany is a Peppol member, and many public authorities accept invoices via Peppol Access Points. The Peppol network uses the Peppol BIS Billing 3.0 standard, which is based on UBL 2.1 and fully compatible with XRechnung.

For freelancers and businesses working with clients across the EU, Peppol offers a single channel: register once, invoice anyone on the network. vlastERP acts as a Peppol Access Point, so you can send XRechnung and UBL invoices to any Peppol-registered recipient directly from your dashboard.

The B2B E-Invoice Mandate (2025–2028)

Germany’s Wachstumschancengesetz (Growth Opportunities Act) introduced mandatory B2B e-invoicing. Starting January 1, 2025, all German businesses must be able to receive structured e-invoices. The obligation to send e-invoices is being phased in:

  • 2025: all businesses must accept e-invoices (XRechnung or ZUGFeRD EN16931+).
  • 2027: businesses with revenue > €800,000 must issue e-invoices for B2B.
  • 2028: all businesses must issue e-invoices for B2B, regardless of size.

How vlastERP Handles Leitweg-ID & E-Invoicing

vlastERP is built with German compliance in mind from day one. Here is what you get out of the box:

  • Leitweg-ID per client: store the routing ID on each client record. vlastERP auto-populates BT-10 in every XRechnung.
  • XRechnung generation: one-click conversion of any invoice to XRechnung 3.0 XML, validated against KoSIT schematron rules.
  • ZUGFeRD PDF/A-3: generate hybrid PDF invoices with embedded CII XML in any profile from BASIC to XRECHNUNG.
  • Peppol delivery: send invoices via the Peppol network directly from your dashboard. No manual portal uploads.
  • ZRE/OZG-RE upload: direct integration with the federal and state invoice portals.
  • Automatic validation: every invoice is validated before sending, with clear error messages if anything is missing.
  • Archiving: all invoices stored for 10 years in GoBD-compliant, encrypted EU storage.

Step-by-Step: Sending Your First XRechnung with vlastERP

  1. Add your client with their Leitweg-ID, VAT ID, and delivery address.
  2. Create an invoice from tracked hours or manually. vlastERP auto-calculates line items and VAT.
  3. Choose the format: XRechnung (XML) or ZUGFeRD (PDF+XML).
  4. Review and validate: vlastERP checks all mandatory fields, Leitweg-ID format, and schematron compliance.
  5. Send: deliver via Peppol, email, or manual ZRE upload — one click.
  6. Track status: see delivery confirmations and payment status in your dashboard.

Frequently Asked Questions

What is a Leitweg-ID?
A Leitweg-ID is a unique routing identifier used in Germany to direct electronic invoices (XRechnung) to the correct public sector recipient. It follows the format [coarse routing]‑[fine routing]‑[check digits], e.g., 991-12345-67. Every German public authority that receives e-invoices has a Leitweg-ID.
Where do I find my client's Leitweg-ID?
The Leitweg-ID is typically provided by the contracting public authority in the purchase order or contract. You can also look it up in the Peppol directory or the official German e-invoicing portal at leitweg-id.de.
Is XRechnung mandatory in Germany?
Yes. Since November 2020, all suppliers to the German federal government must submit invoices in XRechnung format via the ZRE (Zentrale Rechnungseingangsplattform) or OZG-RE portal. Many state (Länder) and municipal authorities also require XRechnung.
What is the difference between XRechnung and ZUGFeRD?
XRechnung is a pure XML format following the EN 16931 standard. ZUGFeRD 2.x embeds a CII XML file inside a PDF/A-3 document, providing both human-readable and machine-readable data. ZUGFeRD EXTENDED profile is accepted as an alternative to XRechnung for some recipients.
Does vlastERP support Leitweg-ID?
Yes. vlastERP lets you store the Leitweg-ID per client or per project. When generating invoices for public sector clients, the system automatically includes the Leitweg-ID in the XRechnung XML and routes it via Peppol or direct ZRE upload.

Related Guides

Ready to simplify your business?

Start tracking hours and invoicing clients in under 2 minutes. Free for 2 months. No credit card required.