---
title: "List entities"
method: GET
path: "/accounting/v2beta/gl-entities"
tags: ["GL Entities"]
---

# List entities

`GET /accounting/v2beta/gl-entities`

Returns a list of GL entities.

## Query parameters

- `connectionId` string — Unique resource identifier.
- `limit` integer
- `token` string

## Response `200`

A list of GL entities.

- object
  - `items` GLEntity[], required — A list of resources.
    - `currency` string — Three-letter ISO 4217 currency code.
    - `id` string, required — Unique resource identifier.
    - `externalId` string, required — External ID is optional to use, but if used, the Atlar platform will persist it, index it, as well as require it to be unique across all resources. It is possible to retrieve a resource using the external ID using the prefix `external:`.
    - `organizationId` string, required — Unique resource identifier for an Organization.
    - `entityId` string — Unique resource identifier.
    - `thirdPartyId` string — ID of the associated third-party, e.g. the ERP in which the entity is held.
    - `associatedConnections` AssociatedConnection[]
      - `connectionId` string, required
    - `name` string, required — The name of the GL entity.
    - `version` integer, required — Resource version. Starts at value `1` when the resource is created and increases by one for each successive update.
    - `etag` string, required — [ETag](https://en.wikipedia.org/wiki/HTTP_ETag) based on the resource version. This can be passed along in `If-Match` HTTP header when updating a resource to perform a conditional update.
    - `created` string, date-time, required — Time at which the resource was created.
    - `updated` string, date-time, required — Time at which the resource was last updated.
  - `nextToken` string, required — Pagination token for next page. The value will be a non-empty string if there are more resources to be fetched. The value will be an empty string if there are no more resources to be fetched.
  - `token` string, required — The pagination token that was used for this request. The value will be an empty string if no `token` query parameter was provided with the request.
  - `limit` integer, required — The page limit that was used for this request.

## Other responses

- `400` — Bad request.

---

[API](https://skmtc.net/atlar/apis/atlar-api-v2.md) · [All operations](https://skmtc.net/atlar/apis/atlar-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlar/atlar-api-v2/revisions/9c5e194ccf5d/schema)
