Validate an EU VAT number using the VIES web service

domain: ec.europa.eu · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the two-letter country code prefix and numeric portion of the VAT number supplied by the customer (e.g., DE123456789)
  2. Send a GET or SOAP request to the VIES RESTful API at https://ec.europa.eu/taxation_customs/vies/rest-api/ms/{countryCode}/vat/{vatNumber} substituting the country code and number
  3. Check the JSON response field 'valid': true means the number is currently registered; false means it is not found or deregistered
  4. Log the full response including 'requestDate', 'name', and 'address' fields for audit trail purposes, noting that name/address may be masked for some member states
  5. If the service returns an error code such as MS_UNAVAILABLE, implement an exponential-backoff retry and record the unavailability rather than treating it as invalid

Known gotchas

Related routes

Validate EU VAT numbers via the VIES REST API
ec.europa.eu · 6 steps · unrated
Validate an EU EORI number for a customs declaration using the official EU and HMRC lookup services
taxation-customs.ec.europa.eu · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans