# getLegalEntityOwnership

**Identifier:** `gleif_getLegalEntityOwnership`

**Provider:** [GLEIF](https://kirha.com/providers/gleif.md)

Corporate group links of a legal entity in any country, from its LEI: its direct and ultimate parents, or why none is reported, and its direct or all consolidated subsidiaries, as reported for accounting consolidation. Use it to place a company in its group or map the subsidiaries of a parent.

## Run it with the CLI

```bash
kirha tools run gleif_getLegalEntityOwnership \
  --input '{
    "lei": "<lei>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "gleif_getLegalEntityOwnership",
  "input": {
    "lei": "<lei>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "includeIndirect": {
      "description": "Every entity it ultimately consolidates, not only direct ones",
      "type": "boolean"
    },
    "lei": {
      "description": "20-character LEI",
      "pattern": "^[A-Za-z0-9]{20}$",
      "type": "string"
    },
    "subsidiariesLimit": {
      "default": 25,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "lei"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "directParent": {
      "additionalProperties": false,
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "entityStatus": {
          "type": "string"
        },
        "legalName": {
          "type": "string"
        },
        "lei": {
          "type": "string"
        },
        "leiStatus": {
          "type": "string"
        },
        "registrationNumber": {
          "type": "string"
        }
      },
      "required": [
        "lei"
      ],
      "type": "object"
    },
    "directParentException": {
      "type": "string"
    },
    "entity": {
      "additionalProperties": false,
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "entityStatus": {
          "type": "string"
        },
        "legalName": {
          "type": "string"
        },
        "lei": {
          "type": "string"
        },
        "leiStatus": {
          "type": "string"
        },
        "registrationNumber": {
          "type": "string"
        }
      },
      "required": [
        "lei"
      ],
      "type": "object"
    },
    "lei": {
      "type": "string"
    },
    "subsidiaries": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "entityStatus": {
            "type": "string"
          },
          "legalName": {
            "type": "string"
          },
          "lei": {
            "type": "string"
          },
          "leiStatus": {
            "type": "string"
          },
          "registrationNumber": {
            "type": "string"
          }
        },
        "required": [
          "lei"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "subsidiaryLeis": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "subsidiaryLevel": {
      "enum": [
        "direct",
        "ultimate"
      ],
      "type": "string"
    },
    "totalSubsidiaries": {
      "type": "number"
    },
    "ultimateParent": {
      "additionalProperties": false,
      "properties": {
        "city": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "entityStatus": {
          "type": "string"
        },
        "legalName": {
          "type": "string"
        },
        "lei": {
          "type": "string"
        },
        "leiStatus": {
          "type": "string"
        },
        "registrationNumber": {
          "type": "string"
        }
      },
      "required": [
        "lei"
      ],
      "type": "object"
    },
    "ultimateParentException": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "subsidiaryLevel",
    "totalSubsidiaries",
    "subsidiaries",
    "lei",
    "subsidiaryLeis"
  ],
  "type": "object"
}
```

-----

[All GLEIF tools](https://kirha.com/providers/gleif.md) · [< Back to tools list](https://kirha.com/tools.md)