# EU VAT Number Validation (VIES) (`vat.validate`)

Check an EU VAT number against the European Commission's VIES service and get the registered company name and address when the member state discloses them.

- **Route:** `POST /v1/run/vat.validate`
- **Price:** $0.0015 per request ($1.50 per 1,000) · `cost_usd` on every response
- **Source:** European Commission VIES (`vies`) · failover: no
- **Measured latency:** p50 269 ms · p95 269 ms · p99 269 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `vat_number` | string | yes |  | VAT number with country prefix |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `valid` | True when the number is registered for intra-EU trade. |
| `name` | Registered name. |
| `address` | Registered address. |
| `country_code` | Member state. |
| `checked_at` | VIES request time. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/vat.validate \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vat_number":"IE6388047V"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('vat.validate', {'vat_number': 'IE6388047V'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run vat.validate '{"vat_number":"IE6388047V"}'
```

Quote first (free, validates input): `POST /v1/quote/vat.validate` with the same body.
