# Toolrail IBAN Validator

> Toolrail IBAN Validator is a paid API for AI agents from toolrail.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

Validates an IBAN using ISO 13616 mod-97 check digits and per-country length registry for 88 countries, returning formatted IBAN and BBAN

## Facts

- Endpoint: POST https://toolrail.dev/validate/iban?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolrail-iban-validator-84a98bb6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c-kunUR5AYErwORpDeQ-T

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 toolrail-iban-validator-84a98bb6 -d '<json body>'
```

Example prompt: Before we send the wire, can you validate this IBAN for me: DE89370400440532013000 — check if it's correct and give me the properly formatted version?

## When to prefer this

Choose this endpoint when you need a lightweight, instant IBAN check before initiating a financial transfer or onboarding a bank account — especially useful for catching typos. It covers 88 countries and applies both the ISO 13616 mod-97 algorithm and per-country length validation, making it more thorough than a simple regex check. Prefer it over general-purpose validation libraries when you need a hosted, pay-per-call service that also returns a clean formatted IBAN and BBAN extraction without deploying your own code.

## Known failure modes

- Invalid IBAN fails mod-97 check — returns valid:false with no formatted output
- Country code not in the 88-country registry — may return invalid even if structurally plausible
- Malformed input (non-alphanumeric characters, empty string) — likely returns valid:false or an error response
- IBAN with correct length but wrong check digits — caught and returns valid:false
- Network timeout or service unavailability — returns HTTP 5xx error

## How this service works

Validate an IBAN (international bank account number): ISO 13616 mod-97 check digits and per-country length registry for 88 countries. Returns formatted IBAN and BBAN. Use when someone enters a bank account (IBAN) and you must catch typos before a transfer.

## Output

Returns a JSON object with: 'valid' (boolean indicating if the IBAN passes mod-97 and country-length checks), 'iban' (the raw input), 'formatted' (space-separated IBAN groups e.g. 'DE89 3704 0044 0532 0130 00'), 'bban' (the Basic Bank Account Number portion), 'country' (ISO country code), and 'check_digits' (the two-digit mod-97 check digits).

## 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",
     "properties": {
      "iban": {
       "type": "string"
      }
     }
    },
    "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",
     "properties": {
      "iban": {
       "type": "string"
      },
      "valid": {
       "type": "boolean"
      },
      "country": {
       "type": "string"
      },
      "formatted": {
       "type": "string"
      },
      "check_digits": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

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