ch_validate_uid
Validate a Swiss UID or VAT number by checking its check digit and optionally verifying registration status and VAT eligibility in the official UID register.
Instructions
Check a Swiss UID or VAT number: the check digit locally, then (unless lookup=false) whether the UID register knows it, its status, and whether the company is currently VAT registered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | A UID or VAT number in any common form, e.g. "CHE-123.456.789" or "CHE123456789 MWST". | |
| lookup | No | true (default): also look the UID up in the UID register. false: check digit only, no request. |