---
title: "List chart-of-accounts accounts"
method: GET
path: "/accounts"
tags: ["Accounting"]
---

# List chart-of-accounts accounts

`GET /accounts`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/accounts`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Returns the canonical account ids that can be sent back as sourceBankAccountId or categoryAccountId when ledgerHqRoles allows that role.

## Response `200`

Accounts in the current organization

- object
  - `accounts` Account[]
    - `id` string, uuid
    - `code` string
    - `name` string
    - `type` 'asset' | 'liability' | 'equity' | 'revenue' | 'expense'
    - `classification` 'asset' | 'liability' | 'equity' | 'revenue' | 'expense'
    - `active` boolean
    - `postable` boolean
    - `reportingRole` 'cash' | 'accounts_receivable' | 'accounts_payable' | 'sales_tax_payable' | 'purchase_tax_receivable' | 'customer_prepayment' | 'vendor_prepayment' | 'inventory' | 'prepaid_expense' | 'fixed_asset' | 'accumulated_depreciation' | 'credit_card' | 'debt' | 'equity' | 'revenue' | 'cost_of_goods_sold' | 'expense' | 'other' | 'null', nullable: Explicit chart-account reporting role used by dual-basis reports and control-account validation.
    - `ledgerHqRoles` string[]
  - `data` Account[]
    - `id` string, uuid
    - `code` string
    - `name` string
    - `type` 'asset' | 'liability' | 'equity' | 'revenue' | 'expense'
    - `classification` 'asset' | 'liability' | 'equity' | 'revenue' | 'expense'
    - `active` boolean
    - `postable` boolean
    - `reportingRole` 'cash' | 'accounts_receivable' | 'accounts_payable' | 'sales_tax_payable' | 'purchase_tax_receivable' | 'customer_prepayment' | 'vendor_prepayment' | 'inventory' | 'prepaid_expense' | 'fixed_asset' | 'accumulated_depreciation' | 'credit_card' | 'debt' | 'equity' | 'revenue' | 'cost_of_goods_sold' | 'expense' | 'other' | 'null', nullable: Explicit chart-account reporting role used by dual-basis reports and control-account validation.
    - `ledgerHqRoles` string[]

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
