# GetLegalEntities Endpoint: GET /v1/sessions/{sessionId}/legal-entities Version: 1.0 Security: keycloakAuthTest, keycloakAuthLive ## Path parameters: - `sessionId` (string, required) ## Response 200 fields (application/json): - `sources` (array,null) List of Data Provider sources indicating where the response data was obtained from. - `sources.sourceId` (string,null, required) Identifier of the Data Provider that provided the information. - `sources.status` (string, required) Current status of the source Data Provider, such as successful or failed. Enum: "UNKNOWN", "SUCCESS", "ERROR", "FORBIDDEN", "UNSUPPORTED_COUNTRY", "WAITING_FOR_CUSTOMER", "WAITING_FOR_PROVIDER", "PACKAGE_UPGRADE_REQUIRED", "ID_TAX_ONLY" - `sources.countryCode` (string,null) Three-letter ISO 3166-1 alpha-3 code representing the country of the source Data Provide. - `legalEntities` (array,null) List of legal entities retrieved from the source. - `legalEntities.sourceId` (string,null, required) Identifier of the source system that provided the legal entity data. - `legalEntities.name` (string,null) Name of the legal entity. - `legalEntities.relations` (array,null) List of relations associated with the legal entity. - `legalEntities.relations.type` (string, required) Type of relation the customer has with the legal entity (e.g., owner, shareholder). Enum: "UNKNOWN" - `legalEntities.relations.startDate` (string,null) Date when the relationship with the legal entity began. - `legalEntities.relations.endDate` (string,null) Date when the relationship with the legal entity ended, if applicable. ## Response 400 fields (application/json): - `type` (string,null) - `title` (string,null) - `status` (integer,null) - `detail` (string,null) - `instance` (string,null) - `errors` (object,null) ## Response 401 fields ## Response 403 fields ## Response 404 fields ## Response 500 fields