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.
| Field | Value |
|---|---|
| Register | Zefix, UID-Register (BFS) |
| Shape | CHE N{8} C |
| Check digit | Enforced. 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 form | CHE103867266 |
| Also accepted as input | CHE-103.867.266 MWST · CHE103867266 |
| A one-character slip | CHE-103.867.267 is refused |
| Regex (normalised form) | ^CHE[0-9]{9}$ |
| API call | GET /companies/search?country=CH&company_number=CHE-103.867.266 |
| VAT number | the UID + MWST, TVA or IVA |
Dots, hyphens and a MWST, TVA or IVA suffix are accepted. Sole proprietorships are never served.
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.
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
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.