Switzerland: company identifier formats (UID)

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

UID

FieldValue
RegisterZefix, UID-Register (BFS)
ShapeCHE N{8} C
Check digitEnforced. CHE plus 9 digits. Weights 5,4,3,2,7,6,5,4 over the first 8 digits; check = 11 minus the sum mod 11 (11 reads as 0). A result of 10 means no valid UID.
Worked example (accepted)CHE-103.867.266
Normalised formCHE103867266
Also accepted as inputCHE-103.867.266 MWST · CHE103867266
A one-character slipCHE-103.867.267 is refused
Regex (normalised form)^CHE[0-9]{9}$
API callGET /companies/search?country=CH&company_number=CHE-103.867.266
VAT numberthe UID + MWST, TVA or IVA

Notes and scope

Dots, hyphens and a MWST, TVA or IVA suffix are accepted. Sole proprietorships are never served.

Call it from code

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

Source: Zefix, Federal Office of Justice, Federal Commercial Registry Office (open use, source required); restructured by Prometiam, not a certified register extract

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 UID checked?
CHE plus 9 digits. Weights 5,4,3,2,7,6,5,4 over the first 8 digits; check = 11 minus the sum mod 11 (11 reads as 0). A result of 10 means no valid UID.