# EU VAT Number Validator (EU VIES Live Check)

> EU VAT Number Validator (EU VIES Live Check) is a paid API for AI agents from spain-agent-toolkit.spain-agent-toolkit.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Validates an EU VAT number against the official EU VIES database, returning registration status, business name, address, and format validity.

## Facts

- Endpoint: GET https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/eu/vat/validate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-vat-number-validator-eu-vies-live-check-61f8094c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4aws2AwYFDfVAVjUX53HF

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-validator-eu-vies-live-check-61f8094c
```

Example prompt: Can you check if the VAT number IE6388047V is valid and tell me the registered business name and address?

## When to prefer this

Choose this endpoint when you need a live, authoritative check against the official EU VIES system with zero setup — no API keys or accounts required. It's ideal for AI agents that need to verify EU VAT numbers on demand, paying per call in USDC. Prefer this over scraping or unofficial validators when you need the registered business name and address alongside the validity status, or when compliance with EU VAT rules (e.g. zero-rating B2B invoices) requires a documented VIES check.

## Known failure modes

- VAT number not found in VIES — returns valid: false with VIES status 'invalid'
- VIES service temporarily unavailable — may return an error or timeout
- Malformed VAT number format — formatValid: false returned
- Unsupported or non-EU country prefix — request rejected
- Missing required vat query parameter — 400-level error
- Payment not completed via x402 — 402 Payment Required response

## 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: whether the VAT number is valid overall (valid), the VIES status string, the registered business name and address from VIES, the normalized VAT number, the two-letter EU country code, a flag for whether the format is correct, and the date of the VIES request. Example: {valid: true, normalized: 'IE6388047V', countryCode: 'IE', formatValid: true, vies: {status: 'valid', name: 'GOOGLE IRELAND LIMITED', address: '...', requestDate: '2026-10-26+01:00'}}.

## 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-validator-eu-vies-live-check-61f8094c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from spain-agent-toolkit.spain-agent-toolkit.workers.dev](https://www.zero.xyz/host/spain-agent-toolkit.spain-agent-toolkit.workers.dev/llms.txt)
