# BIC/SWIFT Code Validator

> BIC/SWIFT Code Validator is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Validates and parses a BIC/SWIFT code against ISO 9362 structure rules and verifies its country code against ISO 3166-1, returning parsed components and test-BIC flag.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/validate/bic
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bic-swift-code-validator-9194f2ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xxs-0wefneZpfBg0xWVav

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-9194f2ed
```

Example prompt: Can you check whether BNPAFRPP is a valid BIC/SWIFT code and tell me what each part means — like which bank, country, and branch it refers to?

## When to prefer this

Use this endpoint when you need a fast, offline, deterministic validation of a BIC/SWIFT code before initiating an international payment or storing banking details. Ideal for pre-flight checks in payment pipelines, onboarding flows collecting bank details, or compliance checks. Pairs naturally with the sibling IBAN validator for full cross-country consistency checks. Prefer this over live SWIFT directory lookups when you only need structural and country-code correctness, not live bank reachability.

## Known failure modes

- BIC parameter missing — returns error requiring ?bic= query param
- BIC length invalid (not 8 or 11 characters) — returns invalid with reason
- Country code portion does not match any ISO 3166-1 alpha-2 code — returns invalid
- BIC format violates ISO 9362 character rules — returns invalid with parsed failure point
- Empty or malformed query string — returns 400-level error

## 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 indicating whether the BIC is valid, the parsed components (4-letter bank code, 2-letter country code, 2-character location code, optional 3-character branch code), and a boolean is_test_bic flag (true if the 8th character is '0').

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bic-swift-code-validator-9194f2ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
