# eu-verify LEI Validator

> eu-verify LEI Validator is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Validates a Legal Entity Identifier (LEI) code by checking its ISO 17442 structure and ISO 7064 mod 97-10 checksum offline, returning parsed components.

## Facts

- Endpoint: GET https://data.greeneris.io/v1/validate/lei
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-verify-lei-validator-856ba30e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1Ene7kPkz6VwkD1c_yAss

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 eu-verify-lei-validator-856ba30e
```

Example prompt: Can you validate this LEI code for me — HWUPKR0MPOU8FGXBT394 — and tell me if it's structurally valid and what the LOU prefix and check digits are?

## When to prefer this

Use this endpoint when you need fast, cheap offline structural validation of a LEI code without a live GLEIF registry lookup — ideal for pre-screening bulk inputs, pre-invoice checks, or KYC workflows where format correctness is the first gate. Prefer over GLEIF direct API when you want pay-per-call pricing at $0.002 USDC and no account setup, or when you only need checksum/structure validation rather than entity data enrichment.

## Known failure modes

- LEI not exactly 20 characters — returns invalid or error
- LEI with incorrect checksum — returns valid:false
- Missing 'lei' query parameter — 400 Bad Request
- Payment not provided — HTTP 402 with machine-readable USDC quote
- Non-alphanumeric characters in LEI — validation fails

## How this service works

Deterministic Legal Entity Identifier check for regulatory reporting pipelines (EMIR, MiFID II require a valid LEI per counterparty): structure regex and ISO 7064 mod 97-10 checksum over the 20-char code. Query: ?lei=HWUPKR0MPOU8FGXBT394. Returns valid, lou_prefix, entity_part and a failure reason. Filters typos before hitting the GLEIF registry (see /v1/global/lei for the live record). Pure offline, 1y cache.

## Output

Returns a JSON object with: whether the LEI is valid (boolean), the validation method (offline ISO 17442 structure + ISO 7064 mod 97-10 checksum), and the parsed components — LOU prefix (4 chars), entity part (14 chars), and check digits (2 chars). Does not perform a live GLEIF registry lookup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lei"
     ],
     "properties": {
      "lei": {
       "type": "string",
       "description": "LEI to validate, 20 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lei": "HWUPKR0MPOU8FGXBT394",
  "valid": true,
  "source": "offline ISO 17442 structure + ISO 7064 mod 97-10 checksum (no GLEIF lookup)",
  "lou_prefix": "HWUP",
  "entity_part": "KR0MPOU8FGXBT3",
  "check_digits": "94"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-verify-lei-validator-856ba30e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
