# Agent402 UK LEI Validator

> Agent402 UK LEI Validator is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Validates a 20-character Legal Entity Identifier (ISO 17442) for correct format and mod-97 checksum integrity

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/lei
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-lei-validator-491b3959
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ut2uLZWBmehZV9eTou6Gi

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-lei-validator-491b3959 -d '<json body>'
```

Example prompt: Can you check whether the LEI '2138005O9XJIJN4JPN90' is structurally valid — correct format and passing the mod-97 checksum?

## When to prefer this

Use this endpoint when you need a fast, cheap structural gate on an LEI code before committing to an expensive live GLEIF registry lookup, or when you simply need to confirm a string conforms to ISO 17442 format with a valid mod-97 checksum. Ideal for high-volume onboarding pipelines, form validation, and data quality checks where live entity status is not required.

## Known failure modes

- LEI string is not exactly 20 characters — validation will return false
- Non-alphanumeric characters cause format failure
- Checksum digits are incorrect — valid_checksum returns false even if format is otherwise correct
- Empty or missing 'lei' field returns an error
- Network timeout or payment failure (x402) prevents response

## 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 a 'valid' boolean indicating overall structural validity, and a 'valid_checksum' boolean confirming whether the mod-97 checksum passes. Does not perform a live GLEIF registry lookup — purely format and checksum validation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "lei": {
   "type": "string",
   "description": "20-char LEI"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "valid_checksum": true
 }
}
```

## More

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