Check a VAT ID in EU VIES
Asks the EU VAT register (VIES) whether a VAT ID (IČ DPH) is registered — the web’s VAT check next to a customer’s IČ DPH. Three answers:
valid: true— VIES confirmed it;nameandaddressas the member state publishes them (nullwhere it publishes none, e.g. DE and ES).valid: false— VIES says it is not registered, or the number is malformed for its country.valid: null,unverified: true— VIES did not answer (throttled, a member state offline, a timeout). Not a verdict: try again later.
Verified answers are cached (valid for hours, invalid for an hour). Auth-scoped; not workspace-scoped. Rate-limited per IP.
Authentication
JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
Lucanto API key. Two prefixes:
lct_pat_<random><checksum>— personal access token (owner: User)lct_live_<random><checksum>— workspace token, live data
Issue keys at /settings/api_keys (personal) or
/:workspace_id/settings/api_keys (workspace). Plaintext token is
shown once and never again.
Query parameters
The VAT ID with its country prefix; spaces and case are ignored.
Response
The VAT ID as checked (spaces removed
null when VIES could not answer.
The trader’s address, VIES’s one free-text string.
True when VIES did not answer; valid is then null.
