# SWIFT/BIC Code Validator

> SWIFT/BIC Code Validator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-10-10).

Validates a SWIFT/BIC code by checking format, length, and country code, then extracts the bank code, location code, and branch code.

## Facts

- Endpoint: GET https://api.strale.io/x402/swift-validate?utm_source=zero.xyz
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-cba53310
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Opafw59eU_d0vAyqvAYK8

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 api-strale-io-cba53310
```

Example prompt: Can you check if the SWIFT code DABASESX is valid and tell me what bank and location it corresponds to?

## When to prefer this

Use this endpoint when you need instant, cheap, pure algorithmic validation of a SWIFT/BIC code without any external database lookup — ideal for pre-validating user-entered SWIFT codes in payment flows, onboarding forms, or data pipelines. It does not verify whether the bank actually exists in a live registry, only that the code is structurally correct.

## Known failure modes

- Invalid SWIFT format returns validation error with details on which component failed
- Missing or empty swift query parameter returns 400 bad request
- Non-existent or unrecognized country code in the BIC may still pass format validation but flag unknown country
- Payment failure via x402 protocol returns 402 if USDC balance is insufficient

## How this service works

Validate a SWIFT/BIC code. Checks format, length, and country code. Extracts bank code, location, and branch. Pure algorithmic — instant and cheap.

## Output

Returns whether the SWIFT/BIC code is valid along with extracted components: bank code (first 4 characters), country code (characters 5-6), location code (characters 7-8), and branch code (characters 9-11 if present).

## Example request

```json
{
 "swift": "DABASESX"
}
```

## 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": [
      "swift"
     ],
     "properties": {
      "swift": {
       "type": "string",
       "description": "SWIFT/BIC code (e.g. DABASESX)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-cba53310/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
