Free tool

Check the Leitweg-ID before the portal does

If the check digits are wrong, the invoice intake rejects the XRechnung before a human sees it – and payment slips by weeks. Here the check takes seconds.

Check

Enter the ID

Structure and check digits are validated against format specification v2.0.2 – the same document the invoice intake follows.

Try one:

Without JavaScript this field checks nothing. The method is printed below the tool – it is the same one used for IBANs and can be done on a pocket calculator.

The check runs in your browser. The ID you enter does not leave your machine.

How a Leitweg-ID is built

Three parts separated by hyphens. Between 5 and 46 characters in total.

04011000-1234512345-06
│        │          └── Check digits: 2 digits
│        └── Fine addressing: optional, up to 30 characters
└── Coarse addressing: 2 to 12 digits

The coarse addressing says which administrative unit is meant. It is assembled from parts of the regional key: two digits for the federal state (04 is Bremen, 99 stands for the federal government), then optionally the administrative region, the district and the municipal association or municipality code. That yields possible lengths of 2, 3, 5, 8, 9 or 12 digits.

The fine addressing is the authority’s house number – which office, which department. It is optional and assigned freely by the federal government and the states; the specification recommends starting it with a letter so that a misplaced hyphen stands out.

The check digits are your protection against typos – and the reason this tool can check anything at all.

How the check digits are calculated

To ISO/IEC 7064:2003, procedure Modulo 97-10 – the same one used for IBANs. Using the specification’s own example:

  1. Join coarse and fine addressing without hyphens: 040110001234512345
  2. Replace letters by their position in the alphabet, A = 10 to Z = 35 (none here)
  3. Append 00: 04011000123451234500
  4. Take mod 97: remainder 92
  5. 98 − 92 = 06 – those are the check digits

Checking is shorter: divide the complete ID without hyphens by 97. If remainder 1 is left, it is correct. That is exactly what the field above calculates, on every keystroke, in your browser.

What valid check digits do not mean

They mean: there is no typo in here. They do not mean it is the right ID for your client. A syntactically flawless ID can point to a completely different administrative unit – or to none at all. Only the body that issued the ID can give binding information; it is usually stated in the tender documents or in the order confirmation.

This is also why the tool does not show what the check digits ought to be. The typo can just as easily sit in the coarse addressing. Swapping the check digits until they fit leaves you with an ID that passes the syntax check and still goes nowhere at the authority – the worst possible error, because it surfaces when nobody expects it any more.

Where the ID sits in the invoice

In an XRechnung the Leitweg-ID belongs in BT-10, the element cbc:BuyerReference. If it is missing there, or sits in the wrong field, the finest check digits will not help.

Next

What else the invoice needs

XRechnung in Levora

Leitweg-ID, check digits and mandatory fields – checked before the file exists.

To the feature

Test an XRechnung

Try an XML you already have against the points the portal rejects.

To the tool

ROI calculator

What billing costs per month – with your own numbers.

To the tool

Invoices that no longer need this check

In Levora the XRechnung comes out of the job itself – with the stored Leitweg-ID, checked against the same specification, before the file leaves the house.