# Agent402 UK Currency Code Validator

> Agent402 UK Currency 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 whether a currency code is a known common ISO 4217 code or stablecoin (USDC/EURC) before performing FX operations

## Facts

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

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-currency-code-validator-ab96eee5 -d '<json body>'
```

Example prompt: Before you run the FX conversion, check whether 'GBP' is a known, valid currency code — I want to make sure it's recognized as a common ISO 4217 currency.

## When to prefer this

Use this endpoint as a lightweight pre-validation gate before performing any FX conversion or currency-aware operation to avoid downstream errors. Prefer it when you need a fast, cheap check against common ISO 4217 codes and stablecoins (USDC/EURC) rather than a full ISO 4217 table lookup. Not suitable when exhaustive coverage of all ISO 4217 codes is required.

## Known failure modes

- Unknown or obscure ISO 4217 codes not in the common subset may return known_common: false even if technically valid
- Malformed input (e.g. empty string, numeric code) may return valid_format: false
- Network timeouts or service unavailability may result in HTTP 5xx errors
- Payment failure via x402 protocol may block access and return 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

Returns a JSON object with the submitted currency code, a `known_common` boolean indicating whether it is a recognized common ISO 4217 currency or supported stablecoin (USDC/EURC), and a `valid_format` boolean indicating whether the code is structurally well-formed. Does not represent the full ISO 4217 table.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Currency code"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": "GBP",
  "known_common": true,
  "valid_format": true
 }
}
```

## More

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