# Retrieve an entity

Operation ID: `getEntity`

Group: Accounting › Entities

[Open in the interactive reference](https://lensing.ai/api-docs/lensing/v1/endpoints/getEntity)

`GET /base/entities/{id}`

Read-only: Reads and returns; changes nothing.

Retrieves one entity by its id, with its parent, registered address and external identifiers. Accounting-book membership is not part of this resource; read it on GET accounting/books/:bookId/entity-assignments. Every call sends the Api-Version header: a missing or empty header, or an unknown version, answers 400; a route the requested version does not contain answers 404.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Api-Version` | header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version `v1`. |
| `id` | path | string | yes | The unique identifier of the entity to return. Example: `"3b7d5e9c-1a24-4f80-9c6d-2e8f70b13a45"`. |

## Response

`200` Success

Under `data` (getEntityOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The unique identifier for the entity. Other resources reference it as entityId. Example: `"3b7d5e9c-1a24-4f80-9c6d-2e8f70b13a45"`. |
| `entityName` | string | yes | The name of the entity, for example 'Acme Inc.'. Unique within the tenant. Example: `"Acme GmbH"`. |
| `entityNumber` | string | no | The entity's business number, assigned by the system. Absent until one is assigned. Example: `"ENT-00012"`. |
| `currency` | string | no | The entity's functional currency. Format ISO 4217, for example 'USD'. Entity-only: a book's currency for the entity is set on the book's entity assignment. Absent when none has been set. Example: `"EUR"`. |
| `timeZone` | string | no | The time zone the entity operates in. Format IANA time-zone name, for example 'Europe/Berlin'. Absent when none has been set. Example: `"Europe/Berlin"`. |
| `status` | string | no | The lifecycle status of the entity. Possible values: 'active', 'inactive', 'created'. A new entity starts as 'created'. Example: `"active"`. |
| `entityType` | string | no | Whether the entity is a legal entity or a non-legal reporting entity. Possible values: 'LegalEntity', 'NonLegalReportingEntity'. Example: `"LegalEntity"`. |
| `country` | string | no | The country the entity is registered in. Format ISO 3166-1 alpha-2, for example 'US'. Absent when none has been set. Example: `"DE"`. |
| `entityCode` | string | no | A short code for the entity, separate from its entityNumber. Absent until one is assigned. |
| `localeCode` | string | no | The locale for documents sent from this entity. Format BCP 47, for example 'en-US'. Absent when none has been set. |
| `startDate` | date | no | The date the entity became effective. Format YYYY-MM-DD. Absent when none has been set. Example: `"2025-01-01"`. |
| `endDate` | date | no | The date the entity stops being effective. Format YYYY-MM-DD. Absent when the entity has no scheduled end. |
| `lastModifiedDate` | date-time | yes | The date and time the entity last changed, in UTC. ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). Example: `"2026-05-12T09:30:00.000Z"`. |
| `parentEntityId` | string | no | The parent entity in the entity hierarchy, which a consolidation rolls this entity up to. See id on GET base/entities/:id. Absent on the top-level entity. Example: `"9f2c6a10-7d34-4c8e-9b21-5a0f3e6d81b7"`. |
| `registeredAddress` | object | no | The entity's registered address. Absent when none has been set. Example: `{"line1":"Friedrichstrasse 68","city":"Berlin","country":"DE","zipCode":"10117"}`. |
| `registeredAddress.line1` | string | yes | The first address line: street number and name, or PO box. |
| `registeredAddress.line2` | string | no | The second address line: apartment, suite, unit, building, or floor. |
| `registeredAddress.city` | string | yes | The city or locality. |
| `registeredAddress.stateProvince` | string | no | The state, province, or region. |
| `registeredAddress.country` | string | yes | The country of the address. Format ISO 3166-1 alpha-2, for example 'US'. |
| `registeredAddress.zipCode` | string | yes | The postal or ZIP code. |
| `externalIdentifiers` | array<object> | no | External identifiers owned by other systems, at most one per fieldName. Absent or empty when the entity has none. Example: `[{"fieldName":"netsuiteSubsidiaryId","value":"12"}]`. |
| `externalIdentifiers[].fieldName` | string | yes | The configured key of the external identifier, a camelCase slug such as 'netsuiteSubsidiaryId'. |
| `externalIdentifiers[].value` | string | yes | The identifier as the source system holds it. |
| `externalIdentifiers[].externalUrl` | string | no | An absolute http(s) link to the object in the source system. Absent when none is set. |

```json
{
  "data": {
    "id": "3b7d5e9c-1a24-4f80-9c6d-2e8f70b13a45",
    "entityName": "Acme GmbH",
    "entityNumber": "ENT-00012",
    "currency": "EUR",
    "timeZone": "Europe/Berlin",
    "status": "active",
    "entityType": "LegalEntity",
    "country": "DE",
    "entityCode": "<entityCode>",
    "localeCode": "<localeCode>",
    "startDate": "2025-01-01",
    "endDate": "2026-01-15",
    "lastModifiedDate": "2026-05-12T09:30:00.000Z",
    "parentEntityId": "9f2c6a10-7d34-4c8e-9b21-5a0f3e6d81b7",
    "registeredAddress": {
      "line1": "Friedrichstrasse 68",
      "city": "Berlin",
      "country": "DE",
      "zipCode": "10117"
    },
    "externalIdentifiers": [
      {
        "fieldName": "netsuiteSubsidiaryId",
        "value": "12"
      }
    ]
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}
```

## Errors

| Code | Status |
| --- | --- |
| `NOT_FOUND` | 400 |

## Statuses

- `400` — Invalid request or business failure. Codes: NOT_FOUND
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
