# BIC/SWIFT Code Validator

> BIC/SWIFT Code 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 a BIC/SWIFT code by checking its structure against ISO 9362 and verifying the country code against ISO 3166-1

## Facts

- Endpoint: GET https://data.greeneris.io/v1/validate/bic
- 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/bic-swift-code-validator-3e92a6f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lLnaU2rOwEWji97hBJHpT

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 bic-swift-code-validator-3e92a6f9
```

Example prompt: Is the BIC code BNPAFRPPXXX valid, and can you tell me which country and bank it belongs to?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001) structural validation of a BIC/SWIFT code before initiating a payment or invoice. Note: this performs offline ISO 9362 structure and ISO 3166-1 country-code checks only — it does not confirm the BIC is registered in the live SWIFT directory. Prefer this for format validation, not for confirming a bank is actively SWIFT-connected.

## Known failure modes

- Missing 'bic' query parameter returns a 400 error
- BIC shorter than 8 or longer than 11 characters returns valid:false
- Unknown or malformed country code portion returns valid:false
- Payment not made returns HTTP 402 with machine-readable USDC quote
- Network timeout or service unavailability returns 5xx

## How this service works

Deterministic BIC/SWIFT check before an international payment: ISO 9362 structure (4-letter bank, 2-letter country, 2-char location, optional 3-char branch) plus a real ISO 3166-1 country-code verification. Query: ?bic=BNPAFRPP or ?bic=DEUTDEFF500. Returns valid, parsed parts and is_test_bic (8th char '0'). Pairs with /v1/validate/iban for country-consistency checks. Pure offline computation, 1y cache.

## Output

Returns a JSON object with: whether the BIC is valid (boolean), the parsed bank code, country code, location code, branch code (if 11-char), whether it is a test BIC, and the data source description (offline ISO structure check — no live SWIFT directory lookup).

## 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": [
      "bic"
     ],
     "properties": {
      "bic": {
       "type": "string",
       "description": "BIC/SWIFT code, 8 or 11 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bic": "BNPAFRPP",
  "valid": true,
  "branch": null,
  "source": "offline ISO 9362 structure check + ISO 3166-1 country table (no SWIFT directory lookup)",
  "country": "FR",
  "location": "PP",
  "bank_code": "BNPA",
  "is_test_bic": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bic-swift-code-validator-3e92a6f9/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)
