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

# List accounts

`GET /accounting/v2beta/gl-accounts`

Returns a list of general ledger accounts. Sort order is always ascending on account number.

## Query parameters

- `type` 'UNSPECIFIED' | 'BANK' | 'ACCOUNTS_PAYABLE' | 'ACCOUNTS_RECEIVABLE' — The general ledger account types are not uniform across other third-party systems. However, it is useful to have a consistent type for the general ledger account. For example, to suggest accounts one can match with a bank account.
- `excludeIgnored` boolean
- `connectionId` string — Unique resource identifier.
- `accountId` string — Unique resource identifier.
- `limit` integer
- `token` string

## Response `200`

A list of general ledger accounts.

- object
  - `items` GLAccount[], required — A list of resources.
    - `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.
    - `thirdPartyId` string — ID of the associated third-party, e.g. the ERP in which the account is held.
    - `associatedConnections` AssociatedConnection[]
      - `connectionId` string, required
    - `accountId` string — Unique resource identifier.
    - `glEntityIds` string[], required — The Atlar general ledger entity ids that this general ledger account is associated with.
    - `name` string, required — The name of the general ledger account.
    - `number` string — The number of the general ledger account.
    - `currency` string — Three-letter ISO 4217 currency code.
    - `type` 'UNSPECIFIED' | 'BANK' | 'ACCOUNTS_PAYABLE' | 'ACCOUNTS_RECEIVABLE' — The general ledger account types are not uniform across other third-party systems. However, it is useful to have a consistent type for the general ledger account. For example, to suggest accounts one can match with a bank account.
    - `displayType` string, required — The general ledger account types are not uniform across other third-party systems. So instead, we accept the raw type from the third-party system that we can display to the user.
    - `ignored` boolean, required — Whether the account is ignored in the accounting system.
    - `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)
