# Spain Agent Toolkit – IBAN Validator

> Spain Agent Toolkit – IBAN Validator is a paid API for AI agents from es.redtapeapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-18).

Validates an IBAN (International Bank Account Number) and returns formatting, country, validity flag, and Spain-specific bank/branch codes

## Facts

- Endpoint: GET https://es.redtapeapi.com/v1/iban/validate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spain-agent-toolkit-iban-validator-7b5b2a8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PsukM3B2cHV5Jk0WEtKgR

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 spain-agent-toolkit-iban-validator-7b5b2a8b
```

Example prompt: Can you check if this IBAN is valid: ES91 2100 0418 4502 0005 1332? I need to know if the format and check digits are correct before I wire money to it.

## When to prefer this

Use this endpoint when you need lightweight, offline IBAN validation with no account setup or API key — especially for Spanish IBANs where you also want bank and branch code extraction. It is priced at $0.002 USDC per call via x402, making it cost-effective for per-transaction checks in automated payment workflows. Prefer it over general-purpose IBAN libraries when you need a hosted, auditable API call rather than client-side computation.

## Known failure modes

- Invalid or malformed IBAN returns valid:false with no bank/branch detail
- Non-Spanish IBANs may return valid/formatted but no country-specific bank breakdown
- Missing 'iban' query parameter results in a 400-level error
- Completely garbled input (non-IBAN string) returns valid:false

## 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: a boolean 'valid' field, a 'country' code (e.g. 'ES'), a prettily 'formatted' IBAN string with standard 4-character groupings, and an 'es' object with 'bankCode', 'branchCode', and 'nationalCheckOk' for Spanish IBANs.

## 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": [
      "iban"
     ],
     "properties": {
      "iban": {
       "type": "string",
       "description": "IBAN with or without spaces"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "es": {
   "bankCode": "2100",
   "branchCode": "0418",
   "nationalCheckOk": true
  },
  "valid": true,
  "country": "ES",
  "formatted": "ES91 2100 0418 4502 0005 1332"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spain-agent-toolkit-iban-validator-7b5b2a8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from es.redtapeapi.com](https://www.zero.xyz/host/es.redtapeapi.com/llms.txt)
