# code402 IBAN Validator

> code402 IBAN Validator is a paid API for AI agents from hcrb.in, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Validates and checksums International Bank Account Numbers (IBANs) using offline deterministic logic, returning validity, reason, country, and normalized form — paid per call via x402 USDC micropayment.

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/iban-check/call?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code402-iban-validator-fc7d9055
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9yvUVFHYsODkRsgkaY0r6

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 code402-iban-validator-fc7d9055 -d '<json body>'
```

Example prompt: Check whether GB29NWBK60161331926819 is a valid IBAN — I need to know if the checksum passes and which country it belongs to before I wire the payment.

## When to prefer this

Choose this endpoint when you need deterministic, offline IBAN checksum validation without relying on ML, external databases, or scraping — ideal for compliance workflows, rental due diligence, or payment pre-checks where you want cryptographically signed receipts and per-call micropayment pricing (first 3/day free). Prefer it over bank-API lookup services when you only need structural validity, not live account status.

## Known failure modes

- Malformed or empty input returns valid=false with a descriptive reason string
- IBANs from unsupported or obscure countries may return scope=format-only rather than checksum
- Network or payment authorization failure (x402) prevents the call from executing
- Incorrect USDC wallet configuration blocks the micropayment and returns a 402 error

## How this service works

Offline deterministic checks (no ML, no scraping) for business identifiers and rental due-diligence, paid per call via x402 (gasless EIP-3009 USDC on Base). Checksum-verifiable (IBAN, LEI, VAT, ABA, ISBN, SEDOL…) vs format-only (EIN, IFSC, SWIFT/BIC…) — every response returns a scope field. Non-custodial, signed receipts. First 3 calls/day free.

## Output

A JSON object with: `valid` (boolean indicating checksum/format pass), `reason` (human-readable explanation of the outcome), `country` (ISO country code extracted from the IBAN), `normalized` (standardized IBAN string), `scope` (indicates whether checksum was verified or format-only was possible), and `tool` (identifier of the check performed).

## 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",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "object",
       "required": [
        "iban"
       ],
       "properties": {
        "iban": {
         "type": "string",
         "description": "IBAN to validate; spaces allowed."
        }
       }
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "valid",
      "reason"
     ],
     "properties": {
      "tool": {
       "type": "string"
      },
      "scope": {
       "type": "string"
      },
      "valid": {
       "type": "boolean"
      },
      "reason": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "normalized": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "valid",
   "reason"
  ],
  "properties": {
   "tool": {
    "type": "string"
   },
   "scope": {
    "type": "string"
   },
   "valid": {
    "type": "boolean"
   },
   "reason": {
    "type": "string"
   },
   "country": {
    "type": "string"
   },
   "normalized": {
    "type": "string"
   }
  }
 },
 "example": {
  "valid": true,
  "reason": "checksum valid"
 }
}
```

## More

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