# Agent402 UK Sort Code Validator

> Agent402 UK Sort Code 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 and normalises a UK bank sort code into ##-##-## format, confirming digit structure without performing a bank lookup.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/uk-sort-code
- 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-uk-sort-code-validator-840d291f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__XKdsqqKlus1EvYveQNht

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-uk-sort-code-validator-840d291f -d '<json body>'
```

Example prompt: Before sending this UK bank transfer, can you validate and format the sort code 200000 into the proper ##-##-## format so I know it's structurally correct?

## When to prefer this

Use this endpoint when you need a lightweight, fast, format-only check on a UK sort code before passing it to a payout rail or storing it. It does not perform a live bank lookup (e.g. verifying the sort code belongs to a real institution), so pair it with a bank verification service if full validation is required. Prefer this over general-purpose regex checks when you want a standardised, paid-quality normalisation step in an automated agent pipeline.

## Known failure modes

- Input with fewer or more than 6 digits returns valid_format: false
- Non-numeric characters beyond hyphens may cause invalid format response
- Missing sort_code field in request body may return a 400 or validation error
- This endpoint does not verify the sort code exists at a real bank — only format is checked

## 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

Returns a JSON object with three fields: 'digits' (the 6-digit raw sort code string), 'formatted' (the sort code in ##-##-## hyphenated format), and 'valid_format' (a boolean indicating whether the input is structurally valid as a 6-digit sort code).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort_code": {
   "type": "string",
   "description": "6-digit sort code"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "digits": "200000",
  "formatted": "20-00-00",
  "valid_format": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-sort-code-validator-840d291f/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)
