{"uid":"cap_GV1MHXjmpDmvm5wqJz1ht","slug":"lei-structural-validator-offline-iso-7064-check-bd5f57a3","name":"LEI Structural Validator (Offline ISO 7064 Check)","description":"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.","url":"https://x402-datashop-production.up.railway.app/v1/validate/lei","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iEVIPb0oPInfpBiHQU5H1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a 20-character Legal Entity Identifier (LEI) code offline using regex structure check and ISO 7064 mod 97-10 checksum, returning validity, LOU prefix, entity part, and failure reason.","exampleAgentPrompt":"Can you check whether this LEI code is structurally valid before I submit my EMIR report — HWUPKR0MPOU8FGXBT394? I want to know if the checksum passes and which part is the LOU prefix.","exampleUseCases":null,"resultDescription":"Returns a JSON object indicating whether the LEI is valid (boolean), the LOU prefix (first 4 chars), the entity part (chars 5–18), and a failure reason string if the code fails the regex structure check or ISO 7064 mod 97-10 checksum. The check is performed entirely offline with no live registry call.","failureModes":["LEI not exactly 20 characters — returns invalid with reason","Non-alphanumeric characters in LEI — returns regex failure","ISO 7064 mod 97-10 checksum mismatch — returns checksum failure with reason","Missing required query parameter ?lei — likely 400 or error response","Payment not made or invalid x402 auth — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, offline pre-validation of an LEI code before hitting the live GLEIF registry (see /v1/global/lei). Ideal for regulatory pipelines (EMIR, MiFID II) that process many counterparty LEIs and want to filter typos and malformed codes without incurring live API costs. At $0.002 USDC per call it is cost-effective for high-volume screening. Do not use this if you need live entity name, registration status, or other GLEIF record data — use the live endpoint for that.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:51:43.754Z","isFirstParty":false}