# Agent402 EORI Format Validator

> Agent402 EORI 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 structural format of an EORI (Economic Operators Registration and Identification) number, returning the parsed country code and format validity — no live customs registry lookup.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/validate/eori
- 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-eori-format-validator-711e4f2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ows6FpMMQA6NYL4JczlO4

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-eori-format-validator-711e4f2d -d '<json body>'
```

Example prompt: Can you check whether 'GB123456789000' is a valid EORI number format — I need to confirm the structure before filing a customs declaration?

## When to prefer this

Use this endpoint when you need a fast, cheap, deterministic structural check of an EORI number before passing it to a live customs or trade registry API. Ideal for pre-validation gates in automated trade document pipelines, form submission workflows, or anywhere you want to catch malformed EORI strings early without incurring the latency or cost of a live registry lookup. Not suitable if you need to confirm that an EORI is actively registered with a customs authority.

## Known failure modes

- Malformed or missing 'eori' field in request body returns a validation error
- EORI numbers with unsupported or unrecognised country prefixes may return valid_format: false
- Does not detect whether the EORI is actually registered — only structural validity is checked
- Non-string input types for the eori field may cause a schema rejection

## 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 the parsed two-letter country code (e.g. 'GB', 'DE', 'FR') extracted from the EORI number, and a boolean 'valid_format' field indicating whether the number conforms to the expected EORI structure (country prefix + local identifier). Does not confirm live registration with any customs authority.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "eori": {
   "type": "string",
   "description": "EORI number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "country": "GB",
  "valid_format": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-eori-format-validator-711e4f2d/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)
