Guide · Switzerland · Lookup and validation

Switzerland company data API: look up and validate a UID

A customer types a Swiss UID, a Swiss VAT number or the first letters of a name; your form fills in the legal name, legal form, status and registered address from Zefix, the Swiss central business name index. One key, and the same response shape as every other country the API covers.

Switzerland at a glance

Register: Zefix (Federal Commercial Registry Office)

Identifiers UID

  • Company recordsYes
  • OfficersNo
  • Insolvency noticesYes
  • Corporate eventsGazette and register changes
  • MonitoringYes
  • Financial statementsNo
  • VAT numberSearch by VAT form
  • NACE classNo
  • UpdatedDaily

The guide below states the limits of every row. Financial statements are on the Scale plan and above; the other plans and the free trial get 10 calls a month.

Price From EUR 9.99 a month (Starter plan)

In other languagesDeutschFrançaisItaliano

Sign up

Try Switzerland live

Look up a company in Switzerland with the shared demo key. No sign-up.

The demo key is shared and capped per page view; your own key has the limits of your plan.

What you get, and what you do not

Company records from Zefix, the Swiss central business name index: legal name, legal form, status (including liquidation), registered address with the canton and business purpose; with register-change events and monitoring, but no officers, no registry-compliance signal and no activity code. Legal entities and branches only; sole proprietorships (Einzelunternehmen) and other natural persons are never served. Corporate insolvency notices (SHAB) are linked to the company by UID where the notice names the debtor's UID. The UID with its MWST, TVA or IVA suffix is searchable with vat.

That is the record of a Swiss company as an onboarding form, an invoice or a CRM row needs it. If you need board members, signatories, shareholders or an activity classification for Switzerland, this is not the API for it. If you want to know what the register itself is, start with What is Zefix? (also auf Deutsch and en français).

What the Swiss record gives your product

  • Exact match on the UID. company_number=CHE-103.867.266 with country=CH. Dots, hyphens and a MWST, TVA or IVA suffix are optional. The check digit is enforced, so a UID that is malformed or fails it is a 400 validation error and a typo never looks like a missing company.
  • A VAT alias. The Swiss VAT number is the UID followed by MWST, TVA or IVA. vat=CHE-103.867.266 MWST with country=CH resolves to the same company as the UID.
  • Autocomplete by name. ?name= is a normalised, partial match ranked by a match score. Call it on every keystroke; each call is one request.
  • The fields a form needs. The legal name; the legal-form code with its label; status; registered address, postal code and locality, with the canton in region; the UID and the CH-ID in identifiers; and the business purpose in business_purpose.
  • The register's own state. status includes in_liquidation (the register marks a liquidation in the company name) and dissolved (a company deleted from the register), so a company in liquidation is not served as plain active.
  • One schema for every country. The same response shape as country=ES|FR|GB|IE|PL|NO|FI|SE|BE|HR|DK|EE|SK|CH|LV|CY|RO|US|LT|CA|AU|JP|IL|SG|CO|TW|BR|CZ|DE|AR|UA|RS|SI|KR|MT|GR|NC|PE|HN|GT|MD|UY|DO|NZ|BG|GE|TZ|ZM|PY|EC|NL|CL|NL|MX.
FieldWhat it holds for Switzerland
company_numberThe UID, CHE and nine digits: CHE103867266.
company_nameThe name as registered.
legal_form, local_legal_form, local_legal_form_nameThe standard abbreviation in legal_form where the form is mapped, the register's legal-form code in local_legal_form (such as 0106 for the AG or 0107 for the GmbH) and its label in local_legal_form_name.
status, stageThe standard reading of the register's state: active, in liquidation or dissolved.
address, postal_code, city, regionThe registered address; region holds the canton (two letters).
business_purposeThe purpose clause (Zweck), in the language of the cantonal entry.
identifiers, registry_detailsThe UID and the CH-ID; registry_details carries ch_id and legal_seat.

Validate before you call

A UID is CHE followed by nine digits, and the ninth digit carries a mod-11 check with the weights 5, 4, 3, 2, 7, 6, 5, 4. The API enforces it, so validating first saves the call: reject anything that is not CHE and nine digits, and anything that fails the check. The identifier validator runs the same arithmetic in the browser; this is the version to paste into a form handler:

// Swiss UID: CHE + 9 digits; dots, hyphens and a MWST/TVA/IVA suffix are optional. The mod-11 check is enforced.
export function checkUid(input) {
  const t = String(input).trim().toUpperCase().replace(/[\s.-]*(?:MWST|TVA|IVA|HR|VAT)$/, '')
  if (!t.startsWith('CHE')) return null
  const digits = t.slice(3).replace(/[\s./-]/g, '')
  if (!/^\d{9}$/.test(digits) || digits === '000000000') return null
  let k = 11 - ([5, 4, 3, 2, 7, 6, 5, 4].reduce((s, w, i) => s + w * Number(digits[i]), 0) % 11)
  if (k === 11) k = 0
  if (k === 10 || k !== Number(digits[8])) return null
  return { uid: 'CHE' + digits, display: 'CHE-' + digits.slice(0, 3) + '.' + digits.slice(3, 6) + '.' + digits.slice(6) }
}

checkUid('CHE-103.867.266')        // { uid: 'CHE103867266', display: 'CHE-103.867.266' }   (Novartis AG)
checkUid('CHE-105.829.940 MWST')   // { uid: 'CHE105829940', display: 'CHE-105.829.940' }   (Migros-Genossenschafts-Bund)
checkUid('CHE-103.867.267')        // null: the check digit should be 6
checkUid('103867266')              // null: no CHE prefix

A passing check says the number is well-formed, never that the company exists or is still registered. That is what the lookup is for.

Two calls and a list

# by UID (CHE + 9 digits; dots, hyphens and a MWST/TVA/IVA suffix are optional)
curl -H "Authorization: Bearer rk_live_..." \
  "https://api.prometiam.com/functions/v1/risk-api/companies/search?company_number=CHE-103.867.266&country=CH"

# by the Swiss VAT number: the UID followed by MWST, TVA or IVA
curl -H "Authorization: Bearer rk_live_..." \
  "https://api.prometiam.com/functions/v1/risk-api/companies/search?vat=CHE-103.867.266%20MWST&country=CH"

# by name, for a type-ahead field
curl -H "Authorization: Bearer rk_live_..." \
  "https://api.prometiam.com/functions/v1/risk-api/companies/search?name=novartis&country=CH"

To resolve a list, POST /companies/lookup takes up to 100 items in one call, each one counted as one request:

curl -X POST "https://api.prometiam.com/functions/v1/risk-api/companies/lookup" \
  -H "Authorization: Bearer rk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"items":[{"country":"CH","company_number":"CHE-103.867.266"},{"country":"CH","company_number":"CHE-105.829.940"},{"country":"CH","name":"Novartis"}]}'

The search returns the record's id; pass it to GET /companies/{id} for the detail, and add include=insolvency to see the insolvency notices linked to a Swiss company by UID.

An autocomplete endpoint in Node

Your server keeps the key and proxies the search; the form calls your server. A well-formed UID goes to the company_number filter, anything else is a name, and a UID that fails the check is rejected before it costs a call:

// server: /api/ch-company?q=...   (keep the key out of the browser)
app.get('/api/ch-company', async (req, res) => {
  const q = String(req.query.q || '').trim()
  const looksLikeId = /^che/i.test(q)
  const uid = looksLikeId ? checkUid(q) : null
  if (looksLikeId && !uid) return res.status(422).json({ error: 'Not a valid UID: CHE and nine digits with a correct check digit' })

  const params = new URLSearchParams({ country: 'CH', limit: '6', ...(uid ? { company_number: uid.uid } : { name: q }) })
  const r = await fetch('https://api.prometiam.com/functions/v1/risk-api/companies/search?' + params,
    { headers: { Authorization: 'Bearer ' + process.env.PROMETIAM_API_KEY } })
  const { data } = await r.json()
  res.json({
    results: data.map(c => ({ id: c.id, name: c.company_name, uid: c.company_number, form: c.local_legal_form_name || c.legal_form,
      status: c.status, city: c.city, postal_code: c.postal_code, canton: c.region, address: c.address })),
  })
})

What Switzerland does not carry

  • Officers and shareholders. Not part of the Swiss record.
  • An activity code. The register publishes no NOGA code, so the activity fields are null.
  • A separate bankruptcy status. A liquidation shows as in_liquidation; bankruptcy proceedings are in the insolvency notices.
  • Insolvency notices for every company. Notices (SHAB) are linked by UID only where the notice names the debtor's UID; one without a UID stays unlinked, so no linked notice is not proof that a company is clean. Use /insolvency/search?country=CH to search the notices by name.
  • Gazette notices as events. The register-change events are not gazette notices: they show a change to the name, status, legal form or registered address dated when it first appears in the register data, and none is dated before 2026-09-30. Monitoring is available for every live country except Chile, South Korea, New Caledonia, Peru, Honduras, Guatemala, Uruguay, the Dominican Republic, New Zealand, Bulgaria, Georgia, Tanzania, Zambia and Paraguay.
  • A registry-compliance signal. Not served for Switzerland.
  • Sole proprietorships and other natural persons. A sole proprietorship (Einzelunternehmen) or any other natural person is never served, so a lookup of one returns nothing even though it exists.

Pricing

Switzerland is included in every tier at no upcharge. Starter begins with a 14-day trial: 500 credits in total, 10 requests/minute, card required, nothing charged for 14 days. Subscribing keeps the same key working. Then Starter at €9.99/month (1,000 credits, 60 requests/minute), Professional at €29.99/month (10,000 credits, 120 requests/minute) and Scale at €99.99/month (50,000 credits, 300 requests/minute), monthly or annual; annual comes with two months free. A company record costs 1 credit, an autocomplete keystroke costs 1 credit, and error responses cost nothing, so a product onboarding a few hundred Swiss customers a month stays inside Starter.

FAQ

How do I look up a Swiss company by UID from an API?
Call GET /companies/search?company_number=CHE-103.867.266&country=CH. Dots, hyphens and a MWST, TVA or IVA suffix are optional, and the check digit is enforced; a UID that is malformed or fails the check is a 400 validation error rather than an empty list.

Can I look up a Swiss company by VAT number?
Yes. The Swiss VAT number is the UID followed by MWST, TVA or IVA, for example CHE-103.867.266 MWST. Pass it as vat with country=CH and it resolves to the same company as the UID. Switzerland is not in VIES, so whether a number is registered is a question for the Swiss tax authorities.

Is the UID check digit enforced?
Yes. The ninth digit is a mod-11 check digit with the weights 5, 4, 3, 2, 7, 6, 5, 4, and a UID that fails it is rejected with a 400. Validate in your form first so a typo is caught before it costs a call.

Does the Swiss record include officers, company events or insolvency notices?
Company events and insolvency notices yes; officers no. Switzerland is company-level: legal name, legal form, status, registered address with the canton and business purpose. There are no officers, no registry-compliance signal and no activity code. Register-change events (name, status, legal form and registered address, dated when the change first appears in the register data, none before 2026-09-30) and monitoring are available. Insolvency notices (SHAB) are linked to the company by UID where the notice names the debtor's UID; a notice without one stays unlinked.

Which Swiss entities does it cover?
Legal entities and branches entered in the commercial register. Sole proprietorships (Einzelunternehmen) and other natural persons are never served, so a lookup of one returns nothing even though it exists.

Can I call the API from the browser?
You can, but a key in the browser is public. Proxy the search through your server, as in the sample above. Rate limits are per key.

Is there a way to try it before signing up?
Yes: the free UID lookup runs the same call with a shared key.

Everything about Switzerland

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