# Greeneris IBAN Validator

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

Validates an IBAN string offline using format regex, country-specific length rules, and ISO 7064 mod-97 checksum, returning validity, country code, BBAN, and failure reason

## Facts

- Endpoint: GET https://data.greeneris.io/v1/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/greeneris-iban-validator-e80bd1ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KgJE3W4V9oSwcVuBkqFbM

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 greeneris-iban-validator-e80bd1ac
```

Example prompt: Can you check whether this IBAN is valid before I send the transfer: FR1420041010050500013M02606?

## When to prefer this

Use this endpoint when you need a fast, cheap, deterministic IBAN pre-validation before initiating a SEPA or international bank transfer, and you don't want to hit a live bank registry API. It covers ~85 countries per the public SWIFT registry, validates both format and ISO 7064 mod-97 checksum, accepts messy input with spaces or dashes, and costs only $0.001 USDC — ideal as a guard-check before more expensive downstream operations.

## Known failure modes

- Missing 'iban' query parameter — returns 400 or error response
- Unrecognised country prefix not in SWIFT registry of ~85 countries — returns valid=false with reason
- IBAN fails mod-97 checksum — returns valid=false with checksum failure reason
- IBAN has wrong length for its declared country — returns valid=false with length mismatch reason
- Payment not included or insufficient — 402 Payment Required

## How this service works

Deterministic IBAN check before a SEPA/international transfer: format regex, per-country length (public SWIFT registry, ~85 countries) and ISO 7064 mod-97 checksum. Query: ?iban=FR1420041010050500013M02606 (spaces/dashes tolerated). Returns valid, country, bban, and a precise failure reason. Pure offline computation, 1y cache.

## Output

Returns a JSON object with a boolean 'valid' field, the detected 'country' (2-letter ISO code), the parsed 'bban' (Basic Bank Account Number), and a precise 'failure reason' string if the IBAN is invalid — e.g. wrong length for the country, failed mod-97 checksum, or unrecognised country prefix. Spaces and dashes in the input are tolerated and stripped automatically. Response is cacheable for 1 year since the computation is purely deterministic.

## 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 and dashes allowed)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bban": "20041010050500013M02606",
  "iban": "FR1420041010050500013M02606",
  "valid": true,
  "source": "offline ISO 13616 / ISO 7064 mod 97-10 validation (SWIFT registry lengths)",
  "country": "FR",
  "check_digits": "14"
 }
}
```

## More

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