Germany: company identifier formats (LEI)

Shape, check digit, accepted and refused examples and the API call for LEI in Germany. Every example on this page is run through the same validators as the free identifier validator, so a value shown as accepted is a value the validator accepts.

LEI

FieldValue
RegisterGLEIF (LEI), Marktstammdatenregister
ShapeX{18} C{2}
Check digitEnforced. ISO 17442, ISO 7064 MOD 97-10: 18 letters or digits and 2 check digits; each letter becomes 10 to 35 and the whole string, read as one integer, leaves 1 modulo 97.
Worked example (accepted)W38RGI023J3WT1HWRP32
Normalised formW38RGI023J3WT1HWRP32
Also accepted as inputw38r-gi02-3j3w-t1hw-rp32
A one-character slipW38RGI023J3WT1HWRP33 is refused
Regex (normalised form)^[0-9A-Z]{18}[0-9]{2}$
API callGET /companies/search?country=DE&company_number=W38RGI023J3WT1HWRP32 · also taken by lei=
VAT numberThe register data holds no VAT number for this identifier.

Notes and scope

German company records are LEI-registered entities (GLEIF) and companies from the energy market register, not an extract of the Handelsregister. A company of the energy market register is numbered by its commercial-register entry, for example HRB12653/FRANKFURT-AM-MAIN (searched with register_number), declared by the operators and not checked against the register.

Call it from code

curl "https://api.prometiam.com/functions/v1/risk-api/companies/search?country=DE&company_number=W38RGI023J3WT1HWRP32" \
  -H "Authorization: Bearer YOUR_API_KEY"

Shape notation: N digit · L letter · X digit or letter · C check digit or character · {n} repeat n times.

A valid shape and check digit prove that a number is well-formed, not that a company holds it. Only a lookup in the register answers that.

Source and credit

Register data that the API serves for Germany carries this credit:

Contains LEI data from the Global Legal Entity Identifier Foundation (GLEIF), available under CC0 1.0. Not an extract of the German commercial register (Handelsregister).

Contains data from the Marktstammdatenregister of the Bundesnetzagentur (https://www.marktstammdatenregister.de/MaStR/Datendownload), licensed under the Datenlizenz Deutschland – Namensnennung – Version 2.0 (dl-de/by-2-0, https://www.govdata.de/dl-de/by-2-0). Data changed: selected, joined and normalised by Prometiam. Declared by the market actors and not checked against the commercial register; not an extract of the German commercial register (Handelsregister).

Related pages

Start your 14-day free trial · API documentation

The free trial lasts 14 days and includes 500 credits. A card is required and nothing is charged during the trial; it then continues as Starter (EUR 9.99/month) unless you cancel.

Frequently asked questions

How is the LEI checked?
ISO 17442, ISO 7064 MOD 97-10: 18 letters or digits and 2 check digits; each letter becomes 10 to 35 and the whole string, read as one integer, leaves 1 modulo 97.