# IBAN Structural Validator

> IBAN Structural Validator is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Validates an IBAN string offline using ISO 13616 checksum and per-country structure/length rules, returning a validity flag and granular error details on failure.

## Facts

- Endpoint: GET https://api.agentstools.dev/bank/validate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iban-structural-validator-c3f730fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kYmF0mTOLvHaCfYbzjSKL

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 iban-structural-validator-c3f730fa
```

Example prompt: Can you check if this IBAN is valid: GB29 NWBK 6016 1331 9268 19? If it's not, tell me exactly what's wrong with it.

## When to prefer this

Use this as a cheap, fast, offline first-pass validation before calling a more expensive bank verification or fusion route. Ideal when you just need structural/checksum correctness without live bank reachability checks, and no API keys or network calls are desired. At $0.003 it is the cheapest gate to eliminate obviously malformed IBANs early.

## Known failure modes

- IBAN with invalid checksum returns valid=false and error_type=invalid_checksum
- IBAN with wrong length for its country returns error_type=invalid_length
- Malformed structure (bad character positions) returns error_type=invalid_structure
- Unknown or unsupported country code prefix returns error_type=invalid_country
- Missing iban query parameter returns a 400 or schema validation error

## How this service works

Cheap structural IBAN validation: ISO 13616 checksum + per-country structure/length. Returns valid plus, on rejection, a granular error_type (invalid_checksum, invalid_length, invalid_structure, invalid_country), the country and the format spec. Offline (schwifty, MIT); no network or keys. A cheap-first entry before the fuller /bank/verify fusion route.

## Output

Returns a boolean valid field. On failure, includes an error_type enum (invalid_checksum, invalid_length, invalid_structure, or invalid_country), the detected country code, and the expected format specification for that country.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "iban"
     ],
     "properties": {
      "iban": {
       "type": "string",
       "description": "IBAN to validate (spaces optional, any case)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iban-structural-validator-c3f730fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
