Skip to content

LEI Lookup

Resolve a Legal Entity Identifier (LEI) for the target company on an existing case via the Global LEI Foundation (GLEIF).

Unlike a free-form LEI code lookup, this endpoint:

  1. Loads the target entity on caseId (case.target)
  2. Fuzzy-matches target.legalName against GLEIF
  3. Matches target.legalName to one GLEIF name, from fuzzy completions and from lei-records?filter[entity.legalName]. A legal-form ending alone is not a miss. target.legalForm rejects a conflicting ending. Fetches that LEI record and writes it onto target.lei
  4. Records a searchType: "lei" search on the case

Attach LEI to a case target

Request

POST https://api.revolutio.systems/searchgleif/lei
Content-Type: application/json

Headers

Header Value
Content-Type application/json
X-API-Key or Authorization API key or Bearer token

Body

{
  "caseId": "xyz789caseId"
}
Field Type Required Description
caseId string Yes Case whose target should be enriched with an LEI

Info

The case must already have a target with a legalName (typically after a completed root search). Only the case owner may call this endpoint. You can also run LEI resolution automatically at root search time by passing include: { "lei": true } on POST /search.

Response

The response is the LEI search document (same lifecycle shape as other searches, completed synchronously within the request). searchType: "lei" searches do not emit webhooks.

{
  "_id": "lei-search-id",
  "caseId": "xyz789caseId",
  "createdAt": "2026-01-15T10:35:00.000Z",
  "updatedAt": "2026-01-15T10:35:01.000Z",
  "userId": "user-uid",
  "searchType": "lei",
  "searchInputs": {
    "legalName": "EXAMPLE LTD"
  },
  "status": "COMPLETED",
  "result": {
    "lei": "5493001KJTIIGC8Y1R12",
    "legalName": "EXAMPLE LTD",
    "category": "GENERAL",
    "lei_status": "ISSUED",
    "last_update_date": "01-06-2024"
  }
}

On success, case.target.lei is updated and stamped with _sources (source: "GLEIF (Legal Entity Identifier)", sourceType: "gleif"). The full search result is available via GET /search/{searchId}/status; the case file embeds only a search summary.

Result fields (result / target.lei)

Field Type Description
lei string Required. 20-character ISO 17442 LEI code
legalName string Legal name recorded by GLEIF
bic string[] Optional. BIC / SWIFT code array from GLEIF (attributes.bic), omitted when empty or null in GLEIF
category string Optional. GLEIF entity category (e.g. GENERAL, FUND)
lei_status string Optional. GLEIF registration status (e.g. ISSUED, LAPSED)
last_update_date string Optional. Last GLEIF registration update date formatted as DD-MM-YYYY (UTC)
otherNames OtherName[] Optional. Alternative-language legal names (nametype: "alias"), omitted when empty
_sources SourceAttribution[] Stamped on case.target.lei after merge (see Data Lineage)
{
  "_id": "lei-search-id",
  "caseId": "xyz789caseId",
  "searchType": "lei",
  "searchInputs": { "legalName": "EXAMPLE LTD" },
  "status": "COMPLETED",
  "result": {
    "message": "No matching LEI found"
  }
}

The case target is left unchanged. Credits charged for LEI (if any) are refunded when no LEI is returned.

{ "error": "Missing or invalid caseId" }
{ "error": "Case target is missing legalName" }
{ "error": "Missing Authorization or X-API-Key header" }
{ "error": "Invalid or expired token" }
{ "error": "Forbidden" }
{ "error": "Case not found" }
{ "error": "Method Not Allowed" }
{
  "_id": "lei-search-id",
  "status": "FAILED",
  "result": { "error": "…" }
}

Credits

LEI is a global (non-jurisdictional) include. Cost is read from coverage configuration and is often 0 (and always 0 additional credits when the case uses organisation case billing, billingMode: "case"). When a positive per-search cost applies:

  • Charged before the GLEIF calls (from the user wallet or organisation credit pool)
  • Refunded on no-match or error
  • Kept only when an LEI is successfully attached

Example (cURL)

curl -sS -X POST https://api.revolutio.systems/searchgleif/lei \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $REV_API_KEY" \
  -d '{"caseId": "xyz789caseId"}' | jq .

LEI object on the entity

After a successful match (including optional bic and otherNames when reported by GLEIF), case.target includes:

{
  "lei": {
    "lei": "5493001KJTIIGC8Y1R12",
    "legalName": "EXAMPLE LTD",
    "category": "GENERAL",
    "lei_status": "ISSUED",
    "last_update_date": "01-06-2024",
    "bic": ["EXAMPGB2LXX"],
    "otherNames": [
      {
        "name": "EXAMPLE LIMITED",
        "language": "en",
        "nametype": "alias"
      }
    ],
    "_sources": [
      {
        "source": "GLEIF (Legal Entity Identifier)",
        "searchId": "lei-search-id",
        "sourceType": "gleif"
      }
    ]
  }
}

See Entity.