Leitweg-ID check

Type or paste a Leitweg-ID, the address a German public authority gives its suppliers for XRechnung invoices, and see at once whether its form and check digits are right. A wrong check digit is the usual reason a portal rejects one; the check shows the right digits. Nothing is sent anywhere

Leitweg-ID

Examples

Result

Type or paste a Leitweg-ID to check its form and check digits

What a Leitweg-ID is

A Leitweg-ID tells the e-invoicing portals of the federation and the Länder (ZRE, OZG-RE and the portals of the Länder) which office of a public buyer an invoice is for. The buyer gives it to its suppliers, usually on the order, and it goes into the buyer reference (BT-10) of an XRechnung, which BR-DE-15 requires. Over Peppol it is also the buyer's electronic address, with scheme 0204.

Private companies have no Leitweg-ID. An invoice to a business carries in BT-10 the reference the customer gave you, or its order number.

How it is built

A Leitweg-ID has up to three parts joined by hyphens, as in 991-33333TEST-33:

  • the coarse address (Grobadressierung), 2 to 12 digits; the first two name the Land (01 Schleswig-Holstein to 16 Thüringen) or the federation (99);
  • the fine address (Feinadressierung), optional, up to 30 letters and digits, naming the office within it;
  • two check digits (Prüfziffer), calculated over the first two parts with ISO/IEC 7064 MOD 97-10, the method of the IBAN, letters counting as 10 to 35.

The check finds a typo in any part, so a Leitweg-ID with the right form and check digits is almost always the one meant. Whether it is registered, only the portal knows.

Questions

Where do I find the Leitweg-ID of a public buyer?

Ask the buyer: it gives its Leitweg-ID with the order, and many authorities publish it on their website. It is not derived from the address or the tax number.

Do private companies have a Leitweg-ID?

No. Only public buyers have one. For a business customer, put its order number or the reference it gave you in the buyer reference (BT-10).

Is the Leitweg-ID required in an XRechnung?

For an invoice to a public buyer, yes: it goes into the buyer reference (BT-10), which BR-DE-15 requires in every XRechnung. Over Peppol it is also the buyer's electronic address (scheme 0204).

The check digits are right but the portal rejects the invoice. Why?

The check finds typos, not whether the Leitweg-ID is registered or still in use. Ask the buyer to confirm it, and check the rest of the invoice in the validator.

Other tools

  • XML formatter: Pretty-print or minify XML, keeping text, CDATA and comments as written.
  • XML viewer: Read a document as a tree you can fold, search and copy XPaths from.
  • XPath tester: Evaluate XPath 3.1 against a document and see each match with its line.
  • XSD generator: Infer an XML Schema from sample documents, checked against them.
  • XML from XSD: Generate a sample XML document from a schema, validated against it.
  • XSLT transformer: Run XSLT 1.0, 2.0 or 3.0 on a document and see the result, the messages and the files it writes.
  • XML diff: Compare two XML documents as trees: changed, added and removed elements, attributes and text.
  • XML to JSON converter: Convert XML to JSON, with arrays where an element repeats or wherever its XSD allows.
  • JSON to XML converter: Convert JSON to XML: @keys become attributes, arrays repeated elements.
  • XML to CSV converter: Turn a repeating element into CSV rows: invoice lines, products, records.
  • XML to PDF converter: Save any XML as a PDF to read, print or attach: indented, coloured, with line numbers.
  • E-invoice viewer: Read an XRechnung, ZUGFeRD, Factur-X or Peppol invoice as a document, and save it as a PDF.
  • ZUGFeRD validator: Check a ZUGFeRD or Factur-X PDF: the XML inside against its profile's rules, and the PDF around it.
  • XRechnung validator: Check an XRechnung in UBL or CII against EN 16931 and KoSIT's XRechnung rules before you send it.
  • UBL validator: Check a UBL invoice, order or any other UBL 2.1 document against its OASIS schema, and the business rules of the profile it names.
  • Peppol validator: Check a Peppol BIS Billing 3.0 or PINT invoice against the OpenPeppol rules before your access point sends it.
  • P7M viewer: open a .p7m file: Open a signed .p7m file: the PDF, invoice or document inside it, and who signed it.
  • XRechnung examples to download: Example XRechnung and ZUGFeRD invoices to download, one for each common case.
  • E-invoicing mandate in Germany: do I have to?: Find out whether your invoices in Germany must be e-invoices in 2026, 2027 and from 2028.
  • Factur-X examples: Example Factur-X invoices of every profile and of the French reform, as XML and as PDF.
  • Peppol lookup: Check whether a company is registered in Peppol, under which ID, and which invoices it can receive.
  • XML validator: check a document against XSD, DTD, RelaxNG or Schematron, up to 1 GB.