# EU VAT Number Validation via VIES

> EU VAT Number Validation via VIES is a paid API for AI agents from es.redtapeapi.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Validates a European VAT number against the official EU VIES database and returns registration status, company name, and address

## Facts

- Endpoint: GET https://es.redtapeapi.com/v1/eu/vat/validate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-vat-number-validation-via-vies-b3ce30cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mp0g0HfewSzDCEDYnf8wc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability eu-vat-number-validation-via-vies-b3ce30cd
```

Example prompt: Can you check if the VAT number IE6388047V is valid and registered in the EU VIES system, and tell me the company name and address on file?

## When to prefer this

Use this endpoint when you need an authoritative, real-time check against the official EU VIES registry — not just a format check. Ideal for B2B invoicing compliance, supplier onboarding, and reverse-charge VAT workflows across all 27 EU member states. Prefer over format-only validators when you need the company name and address confirmed by the official EU database. No account signup required; pay per call with USDC via x402.

## Known failure modes

- VAT number not found in VIES (number may be unregistered or recently deactivated — returns valid:false)
- VIES service temporarily unavailable (EU system outages are common; endpoint may return an error or partial result)
- Invalid format for given country (returns formatValid:false)
- Country code not recognized or not an EU member state
- VAT number submitted without country prefix and no 'country' param provided — ambiguous input

## How this service works

Pay-per-call Spain and EU utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data, live official checks (EU VIES) and offline computation; nothing is stored.

## Output

A JSON object containing: 'valid' (boolean overall result), 'formatValid' (boolean for format correctness), 'normalized' (cleaned VAT string), 'countryCode' (ISO 2-letter code), and a 'vies' sub-object with 'status', 'name' (company name), 'address', and 'requestDate' from the official VIES service.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "vat"
     ],
     "properties": {
      "vat": {
       "type": "string",
       "description": "VAT number with country prefix, e.g. IE6388047V or ESA28015865 (spaces/dots ignored, GR accepted for EL)"
      },
      "country": {
       "type": "string",
       "description": "Optional country prefix if vat has none"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "vies": {
   "name": "GOOGLE IRELAND LIMITED",
   "status": "valid",
   "address": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4",
   "requestDate": "2026-10-26+01:00"
  },
  "valid": true,
  "normalized": "IE6388047V",
  "countryCode": "IE",
  "formatValid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-vat-number-validation-via-vies-b3ce30cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from es.redtapeapi.com](https://www.zero.xyz/host/es.redtapeapi.com/llms.txt)
