# Toll402 Spanish CIF Validator

> Toll402 Spanish CIF Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates a Spanish CIF (Código de Identificación Fiscal) tax identifier number for correctness

## Facts

- Endpoint: POST https://toll402.dev/v1/t/cif_es_validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-spanish-cif-validator-dff46676
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_21aYEK1gc-_lBdKHxDyfM

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 toll402-spanish-cif-validator-dff46676 -d '<json body>'
```

Example prompt: Can you check if the Spanish CIF A58818501 is a valid tax identification number?

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.001 USDC) programmatic check of a Spanish CIF number's validity — particularly useful during KYB/KYC flows, supplier onboarding, invoice processing, or any form validation where a Spanish company's fiscal ID is submitted. Prefer this over manual lookup or regex-only checks when you need a verified validation signal.

## Known failure modes

- Invalid CIF format returns ok: false
- Missing 'cif' field in request body causes validation error
- Non-Spanish tax identifiers (NIF, NIE) may not be correctly evaluated
- Network or payment failure returns HTTP 402 or 5xx error

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the provided Spanish CIF is valid (true) or invalid (false).

## 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": {
     "type": "object",
     "required": [
      "cif"
     ],
     "properties": {
      "cif": {
       "type": "string",
       "description": "Spanish CIF, e.g. A58818501"
      }
     }
    },
    "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-spanish-cif-validator-dff46676/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
