# Agent402 BIC/SWIFT Format Validator

> Agent402 BIC/SWIFT Format Validator is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates the format of a BIC/SWIFT code (ISO 9362, 8 or 11 characters) and extracts structured components like country and bank code

## Facts

- Endpoint: POST https://agent402.co.uk/v1/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/agent402-bic-swift-format-validator-ecd4eb1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GCSa9V2DDQefekZ2NSLRg

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 agent402-bic-swift-format-validator-ecd4eb1b -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need fast, cheap, format-level validation of a BIC/SWIFT code (ISO 9362) before processing a payment or onboarding a user — it confirms structural correctness and extracts country/bank components without requiring a live directory lookup. Prefer it over a full directory service when you only need to catch typos or malformed codes rather than confirm the institution exists.

## Known failure modes

- BIC is malformed (wrong length, invalid characters) — returns valid_format: false
- Missing or empty bic field in request body — likely 400 error
- BIC passes format check but is not a real registered code — endpoint will still return valid_format: true since it only validates format
- Network or service unavailability — HTTP 5xx
- Payment not included — HTTP 402 payment required

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

A JSON object containing a valid_format boolean indicating whether the BIC passes ISO 9362 structural checks, a country field (2-letter ISO country code extracted from the BIC), and a bank_code field (the 4-character bank identifier prefix). Note this is format validation only — it does not confirm the BIC exists in any live directory.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bic": {
   "type": "string",
   "description": "BIC/SWIFT code"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "country": "DE",
  "bank_code": "DEUT",
  "valid_format": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-bic-swift-format-validator-ecd4eb1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
