# LION x402 VAT Validation (JSON)

> LION x402 VAT Validation (JSON) is a paid API for AI agents from lion-x402-bible.lionmaster-operations.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Validates a VAT number and returns a structured JSON result including asset resolution status, accessible via micropayment over x402 protocol.

## Facts

- Endpoint: GET https://lion-x402-bible.lionmaster-operations.workers.dev/api/x402/vat-validation-json
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-x402-vat-validation-json-76370c72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q1S-ea8-Id4Qj0eWobOsN

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 lion-x402-vat-validation-json-76370c72
```

Example prompt: Can you validate the VAT number GB123456789 and tell me if it's registered and resolved?

## When to prefer this

Choose this endpoint when you need keyless, micropayment-gated VAT validation that works natively with autonomous agents using the x402 payment protocol on Base (USDC). It is ideal for agent pipelines that cannot hold traditional API keys and need attested, structured JSON responses for VAT compliance checks without subscription overhead.

## Known failure modes

- Invalid or malformed VAT number returns resolved: false
- Payment not fulfilled via x402 results in 402 Payment Required response
- Unsupported VAT country prefix may return unresolved result
- Network or worker timeout on the Cloudflare edge
- VAT authority registry temporarily unavailable causing lookup failure

## How this service works

Keyless attested data for autonomous agents. USDC on Base via x402. Official @x402/* middleware.

## Output

Returns a JSON object containing the asset_id (e.g. 'LION') and a resolved boolean indicating whether the VAT number was successfully validated and resolved. May include additional attestation metadata about the VAT entity.

## 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",
     "properties": {
      "vat": {
       "type": "string",
       "description": "Full EU VAT e.g. IE6388047V"
      },
      "number": {
       "type": "string"
      },
      "country": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset_id": "LION",
  "resolved": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-x402-vat-validation-json-76370c72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lion-x402-bible.lionmaster-operations.workers.dev](https://www.zero.xyz/host/lion-x402-bible.lionmaster-operations.workers.dev/llms.txt)
