Latvia: company identifier formats (Registration number)

Shape, check digit, accepted and refused examples and the API call for Registration number in Latvia. 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.

Registration number

FieldValue
RegisterUzņēmumu reģistrs
ShapeN{10} C
Check digitEnforced. 11 digits starting 4 to 9. Weights 9,1,4,8,3,10,2,5,7,6,1; the sum mod 11 must be 3.
Worked example (accepted)40003032949
Normalised form40003032949
Also accepted as inputLV40003032949
A one-character slip40003032940 is refused
Regex (normalised form)^[4-9][0-9]{10}$
API callGET /companies/search?country=LV&company_number=40003032949
VAT numberLV + the 11 digits (State Revenue Service list) — published or confirmed by the register

Notes and scope

An 11-digit number starting 0 to 3 is a personal code and is refused. The oldest 9-digit codes carry no check digit.

Call it from code

curl "https://api.prometiam.com/functions/v1/risk-api/companies/search?country=LV&company_number=40003032949" \
  -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 Latvia carries this credit:

Contains data from the Register of Enterprises of the Republic of Latvia and the State Revenue Service (CC0)

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 Registration number checked?
11 digits starting 4 to 9. Weights 9,1,4,8,3,10,2,5,7,6,1; the sum mod 11 must be 3.