# BIC/SWIFT Code Parser and Validator

> BIC/SWIFT Code Parser and Validator is a paid API for AI agents from bank-validators.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Parses a SWIFT BIC (ISO 9362) into its components (bank code, country, location, branch) and validates its format and country code.

## Facts

- Endpoint: GET https://bank-validators.x402tookit.com/bic-parse?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bic-swift-code-parser-and-validator-d465cd8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q2nuoxzV-T9we0anlBU3N

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-parser-and-validator-d465cd8e
```

Example prompt: Can you parse the SWIFT BIC code DEUTDEFF and tell me which bank, country, and branch it refers to, and whether the format is valid?

## When to prefer this

Use this endpoint when you need to parse and structurally validate a SWIFT/BIC code into its ISO 9362 components, verify the country code is valid, or determine if a BIC represents a head office or branch. Prefer this over IBAN or ABA endpoints when the identifier is specifically a BIC/SWIFT code rather than an account number or US routing number.

## Known failure modes

- BIC not 8 or 11 characters returns format validation failure
- Invalid country code in BIC returns country check failure
- Unrecognized bank code may still pass format checks but lack registry data
- Malformed input (special characters, spaces) returns parse error
- Service degraded flag set if upstream registry unavailable

## How this service works

Parse a SWIFT BIC (ISO 9362): bank code, ISO 3166 country, location, branch; checks format and country.

## Output

Returns the parsed components of the BIC (bank code, ISO 3166 country, location, branch), normalized BIC8 and BIC11 forms, a validation verdict with reasons, flags for whether it is a head office or test BIC, and any disclaimer or degraded-service notes.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "bic"
     ],
     "properties": {
      "bic": {
       "type": "string",
       "description": "BIC/SWIFT code, 8 or 11 characters, e.g. DEUTDEFF"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "bank": {
       "type": [
        "null",
        "string"
       ]
      },
      "bic8": {
       "type": [
        "null",
        "string"
       ]
      },
      "bic11": {
       "type": [
        "null",
        "string"
       ]
      },
      "branch": {
       "type": [
        "null",
        "string"
       ]
      },
      "length": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "country": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "location": {
       "type": [
        "null",
        "string"
       ]
      },
      "isTestBic": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "normalized": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "isHeadOffice": {
       "type": [
        "boolean",
        
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bic-swift-code-parser-and-validator-d465cd8e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bank-validators.x402tookit.com](https://www.zero.xyz/host/bank-validators.x402tookit.com/llms.txt)
