# 2s.io IBAN Validator

> 2s.io IBAN Validator is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates an IBAN using full ISO 13616 country-length checks and ISO 7064 mod-97 checksum, returning normalized and formatted output with parsed components

## Facts

- Endpoint: GET https://2s.io/api/validate/iban
- 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/2s-io-iban-validator-28cb4f98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tjBzu5UIgWH00mHQJSLQA

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 2s-io-iban-validator-28cb4f98
```

Example prompt: Can you validate this IBAN for me — GB29NWBK60161331926819 — and give me the normalized form and parsed components like country code and BBAN?

## When to prefer this

Use this endpoint when you need strict ISO 13616 + ISO 7064 mod-97 checksum validation rather than a simple regex format check. Ideal for ETL pipelines, payment processors, or onboarding flows that need both validation and normalization in one call. Prefer over regex-only approaches when catching transposed digits or wrong-length accounts is critical. Not suitable if you also need bank name/BIC directory lookup — this is structure and checksum only.

## Known failure modes

- IBAN fails mod-97 checksum: valid=false with reason explaining checksum mismatch
- Wrong length for country: valid=false with reason indicating expected vs actual length
- Unsupported country code: may return valid=false if country not in ~85 supported set
- Malformed input (non-alphanumeric after stripping spaces/hyphens): valid=false
- Missing required query parameter 'iban': HTTP 400 or error response
- Payment not attached or insufficient: HTTP 402 Payment Required

## How this service works

Validate an International Bank Account Number (IBAN) with full ISO 13616 checks: country-specific length and the ISO 7064 mod-97 checksum (not just a regex). Returns {valid, iban (normalized), formatted (4-char groups), countryCode, checkDigits, bban, reason}. Catches transposed digits and wrong-length accounts that a format check misses, and returns the canonical form so a glue/ETL pipeline can validate AND normalize bank details in one deterministic call. ~85 countries. No bank directory lookup — structure + checksum only.

## Output

Returns a JSON object with: valid (boolean), iban (normalized uppercase, spaces removed), formatted (grouped in blocks of 4), countryCode (2-letter ISO), checkDigits, bban (basic bank account number), and reason (error description if invalid)

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "iban": "GB29 NWBK 6016 1331 9268 19"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "iban"
     ],
     "properties": {
      "iban": {
       "type": "string",
       "description": "IBAN to validate (spaces/hyphens allowed; case-insensitive)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-iban-validator-28cb4f98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
