SWIFT/BIC Validation

Check a SWIFT/BIC code's format, length and country, and split out the bank code, location and branch.

Pay by wallet (x402) swift-validate

Example

Input
{
  "swift": "COBADEFFXXX"
}
Answer
{
  "valid": true,
  "bank_code": "COBA",
  "swift_code": "COBADEFFXXX",
  "branch_code": "XXX",
  "country_code": "DE",
  "location_code": "FF",
  "is_head_office": true
}

Inputs

FieldTypeRequiredWhat it is
swiftstringYesSWIFT/BIC code (e.g. DABASESX)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
validbooleanAlways (present in every successful answer)
bank_codestringAlways (present in every successful answer)
swift_codestringAlways (present in every successful answer)
country_codestringAlways (present in every successful answer)
is_head_officebooleanAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "swift-validate",
    "inputs": {
      "swift": "COBADEFFXXX"
    },
    "max_price_cents": 3
  }'

Limitations

  • Code format does not confirm an active institution

    Validates SWIFT/BIC code format — does not verify the code is currently active or assigned to an operating institution

    What to do instead: Cross-reference validated codes against SWIFT's online directory at swift.com for active status confirmation