# BIC/SWIFT Code Validator

> BIC/SWIFT Code Validator is a paid API for AI agents from reference-data-api.onrender.com, paid per call via x402, $0.0225/call, status down (last checked 2026-11-22).

Validates a BIC/SWIFT code (8 or 11 characters) and returns parsed components including bank code, country, location, branch, test-BIC flag, and known bank name.

## Facts

- Endpoint: GET https://reference-data-api.onrender.com/v1/bic?utm_source=zero.xyz
- Price: $0.0225/call
- Payment: x402
- Status: down
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bic-swift-code-validator-3f0687dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hdJiVAtyHwMMmBOdYztdp

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-3f0687dd
```

Example prompt: Can you validate the SWIFT code DEUTDEDB and tell me which bank and country it belongs to, and whether it's a test BIC?

## When to prefer this

Use this endpoint when you need to validate or parse a BIC/SWIFT code in the context of international banking operations, payment routing, or compliance workflows. It is particularly useful for enriching payment data with bank names and country information, or for catching test BICs before they reach a production payment rail. Prefer it over generic regex checks because it also resolves known bank names and flags test codes.

## Known failure modes

- Invalid BIC format (not 8 or 11 characters) returns a 400/422 error
- Unknown BIC passes format check but bank name may be absent
- Network timeout if the Render.com host is cold-starting
- Missing required 'bic' query parameter returns a validation error

## How this service works

Validates a BIC/SWIFT code (8 or 11 characters): bank, country, location and branch code, test-BIC flag and known bank names.

## Output

Returns structured data parsed from the BIC/SWIFT code: the bank identifier code (4 chars), country code (2 chars ISO 3166-1 alpha-2), location code (2 chars), branch code (3 chars or 'XXX' for head office), a boolean flag indicating whether it is a test BIC, and the known bank name if available in the registry.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bic-swift-code-validator-3f0687dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reference-data-api.onrender.com](https://www.zero.xyz/host/reference-data-api.onrender.com/llms.txt)
