# 2s.io BIC/SWIFT Code Validator

> 2s.io BIC/SWIFT Code Validator is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates the structure and format of a SWIFT/BIC code (ISO 9362) and returns parsed components including institution, country, location, and branch.

## Facts

- Endpoint: GET https://2s.io/api/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/2s-io-bic-swift-code-validator-9eb6e0e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pm6pVy2BUwZI1qmZ2YC8Y

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 2s-io-bic-swift-code-validator-9eb6e0e4
```

Example prompt: Can you check if DEUTDEDB is a valid BIC/SWIFT code and tell me what bank and country it belongs to?

## When to prefer this

Use this endpoint when you need to validate the format and structure of a BIC/SWIFT code before sending an international wire transfer or when building forms that accept bank identifiers. It is lightweight, inexpensive, and returns parsed components. Note: it does NOT verify the code exists in the live SWIFT directory — use a SWIFT directory lookup for existence checks.

## Known failure modes

- Missing bic query parameter returns an error response
- BIC shorter than 8 or longer than 11 characters returns valid:false with a reason
- Invalid country code position (not matching ISO 3166) returns valid:false
- Non-alphabetic characters in wrong positions return valid:false
- This is structure validation only — a structurally valid BIC may not exist in the SWIFT directory

## How this service works

Validate a SWIFT/BIC code (ISO 9362): 8 or 11 characters = 4-letter institution + 2-letter ISO country + 2-char location + optional 3-char branch, with the country position checked against ISO 3166. Returns {valid, bic, institution, country, location, branch, reason}. Structure validation only — not a SWIFT-directory existence lookup.

## Output

Returns a JSON object with: valid (boolean), bic (normalized code), institution (4-letter bank code), country (2-letter ISO code), location (2-char location code), branch (3-char branch code or null), and reason (error description if invalid).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "bic": "DEUTDEDB"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "bic"
     ],
     "properties": {
      "bic": {
       "type": "string",
       "description": "8 or 11-char BIC/SWIFT (spaces allowed, case-insensitive)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-bic-swift-code-validator-9eb6e0e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
