oneapi
Sign in
Business v1 / Firme

LEI code

The company's LEI (Legal Entity Identifier) plus its status and the parent hierarchy (direct and ultimate parent company). 404 if the company has no LEI registered.

GET
https://oneapi.ro/api/business/v1/firme/{cui}/lei

Path parameters

NameTypeDescriptionExample
cuirequired string The company tax identification number, without the RO prefix (e.g. 6719278).

Query parameters

This route accepts no query parameters.

How it behaves

  • "Has none" is an answer, not an error. When the company exists but has nothing the route asks for, the response is 200 with data: null and the reason in meta.fara_date. 404 only means the company (tax ID) does not exist — that way you can tell the two apart and cache the negative answer.
  • The company's LEI code (Legal Entity Identifier), its status and the parent hierarchy (direct and ultimate parent). If the company has no LEI, the response is 200 with data: null and the reason in meta.fara_date.

What it is for

  • Obtaining the LEI code required for financial transaction reporting.
  • Checking that a partner's LEI is still valid.
  • Linking the company to international datasets, which use LEI as their key.

Response structure

FieldTypeDescription
data.lei string The LEI (Legal Entity Identifier) code.
data.status string | null The status.
data.status_inregistrare string | null The LEI registration status at the issuing authority.
data.inregistrat_la string | null When the LEI code was registered.
data.jurisdictie string | null The jurisdiction the LEI code is issued under.
data.categorie string | null The category.
data.parinte_direct.lei string | null The LEI (Legal Entity Identifier) code.
data.parinte_direct.nume string | null The name.
data.parinte_direct.tara string | null The country.
data.parinte_ultim.lei string | null The LEI (Legal Entity Identifier) code.
data.parinte_ultim.nume string | null The name.
data.parinte_ultim.tara string | null The country.
meta.fara_date string Only when the response is empty: why there is no data (for instance "Firma nu are cod LEI înregistrat la GLEIF."). Absent when data is filled in.
meta.fara_date_cod string The short, STABLE word for the reason, for clients that branch on it in code: fara_date is prose and may be rephrased, this is not.

Response examples

GEThttps://oneapi.ro/api/business/v1/firme/2054341/lei
{
    "data": {
        "lei": "097900BFJD0000032849",
        "status": "ACTIVE",
        "status_inregistrare": "LAPSED",
        "inregistrat_la": "RA000497",
        "jurisdictie": "RO",
        "categorie": "GENERAL",
        "parinte_direct": null,
        "parinte_ultim": null
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitThe company with tax ID [{cui}] was not found.
422validareThe route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "validare",
        "mesaj": "The route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.",
        "detalii": {
            "cui": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}