Leitweg-ID: structure, check digits, and where to get one

Error code BR-DE-15 and the Leitweg-ID: what the buyer reference (BT-10) is, how the check digits work, how to test an ID, and where to get one.

The Leitweg-ID is not a customer number and not a purchase order number: it is an address inside the public administration.

What it is for

Public authorities receive invoices centrally and process them departmentally. The portal therefore has to know where inside the organisation an incoming invoice should be handed on to. That routing is what the Leitweg-ID encodes — the German name means, roughly, "routing ID".

It travels in the field the standard calls BT-10, the buyer reference.

Error code BR-DE-15

BR-DE-15 is a business rule of the XRechnung specification 3.0.2. Its number and wording, in German (section 12.6):

[BR-DE-15] Das Element "Buyer reference" (BT-10) muss übermittelt werden. (“The element ‘Buyer reference’ (BT-10) must be transmitted.”)

If a validation report names BR-DE-15, no buyer reference was transmitted. The buyer reference is mandatory in every XRechnung, and it is the field that carries the Leitweg-ID. Between businesses it can hold your client’s own reference instead; no Leitweg-ID is needed there (section 11.1).

Fill in the buyer reference and create the file again. On an invoice to a federal authority, that is the Leitweg-ID (§ 5 Abs. 1 Nr. 1 ERechV).

How it is built

A Leitweg-ID has up to three parts, separated by hyphens: a coarse address, an optional fine address, and two check digits at the end.

PartWhat it holds
Coarse addressIdentifies the authority. Between 2 and 12 characters, and the part your client always knows.
Fine addressOptional. Identifies a department or a specific process within it, up to 30 characters.
Check digitsTwo digits, computed from everything before them.

The check digits use ISO 7064 MOD 97-10 — the same scheme as an IBAN. One detail decides whether your implementation agrees with the portal’s: the hyphen separating the coarse and fine address is not part of the input to the calculation. Getting that wrong produces a value that looks plausible and is always rejected.

You can check one here. It runs in your browser and nothing is sent anywhere:

Check a Leitweg-ID

Structure and check digit are worked out in your browser. What you type never leaves your device.

Where to get yours

From your client, and only from your client. There is no public register you can look it up in, and it is not derivable from the authority’s name or address — which is why guessing is not an option.

  • Ask the person who commissioned the work, and say the word "Leitweg-ID" — it is the term their finance team will recognise.
  • If they do not know it, the accounts payable or invoice-receipt department will.
  • It is frequently printed on the purchase order or in the award letter, so it is worth re-reading what you were sent.
Do not invent one that passes the checker

A value with correct check digits is not thereby the right value. The check digits only prove that nothing was mistyped; they say nothing about whether that address exists or belongs to your client. An invoice with a well-formed but wrong Leitweg-ID is routed nowhere and simply goes unpaid.

Common questions

My client is a company, not an authority. Do I need one?

No. The Leitweg-ID exists for the public sector. For ordinary B2B invoices the buyer reference field carries whatever your client asks for, often a purchase order number. If you leave it blank, InkVoice fills it with what you entered under Reference / PO number or, if that is empty too, the invoice number.

The portal rejected my invoice but did not say why.

If a validation report names BR-DE-15, no buyer reference was transmitted (see Error code BR-DE-15). Otherwise check the Leitweg-ID, then the electronic addresses of both parties and the tax category on each line. The free viewer flags a missing buyer reference, Leitweg-ID check digits that do not match, a missing electronic address, a standard-rated line at 0 %, and an exemption without a reason.

Does the fine address have to be there?

No. Many authorities use only a coarse address plus check digits. Use exactly what you were given and do not add parts of your own.

Producing the invoice itself

The free XRechnung generator takes the Leitweg-ID along with the rest of the invoice and gives you the XML file — no account, and nothing you type is stored on our servers.

Read on

Last updated 08 November 2026. This article is general orientation and is not tax or legal advice.