GET /v2/legal-entities/:id/accounts List accounts owned by a legal entity. Path params: id (required) — Legal-entity identifier. Response (200 OK): { "data": [ { "id": "string", "type": "account", "attributes": { "name": "string (optional)", "externalIdentifier": "string", "ccyCode": "string — ISO 4217", "excludeFromReporting": "boolean" }, "relationships": { "legalEntity": { "data": { "type": "legal-entity", "id": "string" } }, "depository": { "data": { "type": "depository", "id": "string" } | null }, "depositories": { "data": [ { "type": "depository", "id": "string" } ] } } } ] } Note: `depository` is being deprecated in favor of `depositories`. During the deprecation window `depositories` contains the same single resource as `depository`.