# Agent402 IBAN Validator

> Agent402 IBAN Validator is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Validates an IBAN's structure offline using ISO 13616 length rules and mod-97 checksum, returning a canonical electronic-format string for SEPA/payout use.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/iban
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-iban-validator-8f802d5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kPhTijxBhXBLHQP5FZ4U9

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 agent402-iban-validator-8f802d5f -d '<json body>'
```

Example prompt: Before you process this payout, can you check whether GB82WEST12345698765432 is a valid IBAN and give me the clean electronic-format version?

## When to prefer this

Use this endpoint when you need a fast, offline structural validation of an IBAN before executing a payment or storing account details — it's ideal as a pre-transfer gate in agentic payout workflows. Prefer it over LLM-based guessing (which can hallucinate) and over full bank-lookup APIs when you only need format and checksum correctness. Not suitable when you need to verify account existence, resolve a BIC, or look up a bank name.

## Known failure modes

- Invalid IBAN format returns valid:false with no electronic field
- Malformed or too-short input may return a 400 error
- Country code not in ISO 13616 registry will fail validation
- Mod-97 checksum mismatch returns valid:false
- Network or service unavailability returns a 5xx error

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

A JSON object with a boolean 'valid' field, a 'country' field (ISO 2-letter code extracted from the IBAN), and an 'electronic' field containing the space-free canonical IBAN string. Note: this is a structural/checksum check only — it does not verify that the account exists, confirm a bank name, or resolve a BIC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "iban": {
   "type": "string",
   "description": "IBAN (spaces ok); e.g. GB82WEST12345698765432"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "country": "GB",
  "electronic": "GB82WEST12345698765432"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-iban-validator-8f802d5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
