# BIC/SWIFT Code Validator (ISO 9362 Structure Check)

> BIC/SWIFT Code Validator (ISO 9362 Structure Check) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Validates a BIC/SWIFT code against the ISO 9362 format, extracting institution code, country, location, and branch components while flagging head office, test, and passive participant codes.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/bic/validate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-bic-swift-code-validator-iso-65ab7d75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ezLZ74VamrdscFE8psCJ4

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 agent-data-tools-revmesh2074-workers-dev-bic-swift-code-validator-iso-65ab7d75
```

Example prompt: Can you check whether the SWIFT code DEUTDEDB is valid and tell me which country and branch it belongs to?

## When to prefer this

Choose this endpoint when you need fast, local format validation of a BIC/SWIFT code before an international payment, or to parse and clean BIC data in bulk. It is ideal for pre-flight checks on payment forms, ETL pipelines cleaning financial records, or any workflow where you need to extract structured components (institution, country, branch) from a BIC. It does not confirm bank existence — if you need live registry lookup, use a separate SWIFT directory service. For IBAN validation, use the companion validate_iban endpoint instead.

## Known failure modes

- BIC shorter than 8 or longer than 11 characters returns valid=false with a note
- Invalid or unrecognized country code (positions 5-6) returns valid=false
- Non-alphabetic characters in institution or location code return valid=false
- Empty or missing bic parameter causes a 400 error
- Does not verify whether the bank actually exists in SWIFT directories — only format and country are checked

## How this service works

Check a BIC (SWIFT code) against the ISO 9362 structure: institution code, a real country code with its name, location code, branch code, whether it is the head office (XXX or 8 characters), a test BIC or a passive participant, and the 11-character form. Computed locally; it checks the format and country, not whether the bank exists. Use before an international transfer or to clean payment data; for account numbers use validate_iban.

## Output

Returns a JSON object with the original input, normalized 11-character BIC, a validity boolean, institution code (4 chars), country code and full country name, location code, branch code, and boolean flags for head office (branch XXX or 8-char BIC), test BIC (location code passive indicator), and passive participant status. If invalid, a note field explains the structural error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "bic"
 ],
 "properties": {
  "bic": {
   "type": "string",
   "description": "BIC / SWIFT code, 8 or 11 characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bic": {
   "type": "string"
  },
  "note": {
   "type": "string"
  },
  "bic11": {
   "type": "string"
  },
  "input": {
   "type": "string"
  },
  "valid": {
   "type": "boolean"
  },
  "country": {
   "type": "string"
  },
  "testBic": {
   "type": "boolean"
  },
  "branchCode": {
   "type": "string"
  },
  "headOffice": {
   "type": "boolean"
  },
  "countryCode": {
   "type": "string"
  },
  "locationCode": {
   "type": "string"
  },
  "institutionCode": {
   "type": "string"
  },
  "passiveParticipant": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-bic-swift-code-validator-iso-65ab7d75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
