---
title: "List accounts"
method: GET
path: "/companies/{companyId}/connections/{connectionId}/data/banking-accounts"
tags: ["Accounts"]
---

# List accounts

`GET /companies/{companyId}/connections/{connectionId}/data/banking-accounts`

The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/banking-api#/schemas/Account) for a given company's connection.

[Accounts](https://docs.codat.io/banking-api#/schemas/Account) are financial accounts maintained by a bank or other financial institution.

Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data).

## Path parameters

- `companyId` string, uuid, required — Unique identifier for your SMB in Codat.
- `connectionId` string, uuid, required — Unique identifier for a company's data connection.

## Query parameters

- `page` integer
- `pageSize` integer
- `query` string
- `orderBy` string

## Response `200`

Success

- Accounts
  - `results` Account[]
    - `id` string, required — The ID of the account from the provider.
    - `name` string, required — The name of the account according to the provider.
    - `informalName` string, nullable — The friendly name of the account, chosen by the holder. This may not have been set by the account holder and therefore is not always available.
    - `holder` string, nullable — The name of the person or company who holds the account.
    - `type` 'Unknown' | 'Credit' | 'Debit', required — The type of transactions and balances on the account. For Credit accounts, positive balances are liabilities, and positive transactions **reduce** liabilities. For Debit accounts, positive balances are assets, and positive transactions **increase** assets.
    - `balance` AccountBalanceAmounts, required — unresolved $ref
    - `identifiers` AccountIdentifiers, required — unresolved $ref
    - `currency` string, required — The currency code for the account.
    - `institution` AccountInstitution, required — unresolved $ref
    - `modifiedDate` string — The date when the record was last fetched from the accounting software, commerce software, or open banking provider and updated in Codat’s data cache. Use it to identify and retrieve records that have changed since your last fetch. For example, filtering `modifiedDate` to today will provide new records updated in Codat today. This date is populated for all data types except for attachments, balance sheets, company information, and profit & loss reports ([read more](https://docs.codat.io/using-the-api/modified-dates#modified-date)). In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>.
    - `sourceModifiedDate` string — The date when a record was last modified in the accounting software, usually by the business or a business process. For example, when payments are made against an invoice. It is not populated ([read more](https://docs.codat.io/using-the-api/modified-dates#source-modified-date)) when: - Pulling attachments - The accounting software does not provide modification dates for a data type - A record has been deleted from the source platform and Codat doesn't have a record of when the deletion occurred - A record has been voided. For certain platforms that soft delete records, `isDeleted` metadata is used to identify void records In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>.
  - `pageNumber` integer, required — Current page number.
  - `pageSize` integer, required — Number of items to return in results array.
  - `totalResults` integer, required — Total number of items.
  - `_links` Links, required — unresolved $ref

## Other responses

- `400` — Your `query` parameter was not correctly formed
- `401` — Your API request was not properly authorized.
- `402` — An account limit has been exceeded. The type of limit is described in the error property: - You have exceeded the 50-company limit that applies to a Free plan. Delete any companies you no longer need and retry the request. - The requested sync schedule is not allowed. You requested an hourly sync schedule but this functionality is not included in the Free plan. - Your Free account is older than 365 days and has expired. Contact support@codat.io.
- `403` — You are using an outdated API key or a key not associated with that resource.
- `404` — One or more of the resources you referenced could not be found. This might be because your company or data connection id is wrong, or was already deleted.
- `409` — The data type's dataset has not been requested or is still syncing.
- `429` — Too many requests were made in a given amount of time. Wait a short period and then try again.
- `500` — There is a problem with our server. Please try again later.
- `503` — The Codat API is temporarily offline for maintenance. Please try again later.

---

[API](https://skmtc.net/codatio/apis/banking-api.md) · [All operations](https://skmtc.net/codatio/apis/banking-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codatio/banking-api/revisions/499b5a5d8637/schema)
