# EU VAT Number Format Validator

> EU VAT Number Format Validator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Validates the format of EU VAT numbers for all member states and checks the Spanish check digit, without querying VIES.

## Facts

- Endpoint: POST https://api.vextorium.com/validar-iva-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-vat-number-format-validator-6c00cc1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uM6YoHR6vh8lxW2wN6Z8i

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-format-validator-6c00cc1b -d '<json body>'
```

Example prompt: Can you check whether the VAT number ESB12345674 is correctly formatted — including the Spanish check digit?

## When to prefer this

Choose this endpoint when you need a fast, offline-style format check on EU VAT numbers before hitting VIES or sending invoices — especially useful for Spanish VAT numbers where check digit verification is needed. It does not perform a live VIES registry lookup, so use it for format pre-screening only.

## Known failure modes

- Missing or malformed 'numero' field returns a validation error
- VAT number without a recognized EU country prefix may return formato_valido=false
- Non-EU country codes will fail format validation
- Network timeout or service unavailability returns an HTTP error

## How this service works

EU VAT number format validation for all member states (plus Spanish check digit). Does not query VIES.

## Output

Returns a JSON object with: 'valido' (overall validity boolean), 'formato_valido' (format validity boolean), 'digito_control_valido' (check digit validity boolean, especially for Spanish numbers), 'pais' (extracted country code), 'numero' (parsed VAT number), and 'nota' (explanatory note if applicable).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "numero"
     ],
     "properties": {
      "numero": {
       "type": "string",
       "description": "VAT number with country prefix, e.g. ESB12345674"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "pais": {
       "type": [
        "string",
        "null"
       ]
      },
      "numero": {
       "type": [
        "string",
        "null"
       ]
      },
      "valido": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "formato_valido": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "digito_control_valido": {
       "type": [
        "boolean",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nota": "Validacion de formato (y control en ES). No confirma que el numero este dado de alta en...",
  "pais": "ES",
  "numero": "ESB12345674",
  "valido": true,
  "formato_valido": true,
  "digito_control_valido": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-vat-number-format-validator-6c00cc1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
