List the entity's chart of accounts

​

Every GL account for the key's entity, with the external id to use as gl_account_id on a journal entry line. Filter with postable=true to get only the accounts a line may name - the journal entry endpoint refuses an account that is inactive or not postable. Paged: page_number (from 1) and page_size (max 100).

Query Parameters

  • true returns only accounts that are both active and postable, which is the set a journal entry line may name. Default false returns the whole chart.

  • Integer numbers.

  • Integer numbers.

Responses

  • application/json
  • Missing or invalid bearer API key (CAPI11).

  • The key lacks the customer_api:read permission (CAPI71).

  • application/json
Request Example for get/v1/gl-accounts
curl 'https://api.t0.ai/v1/gl-accounts?postable=false&page_number=1&page_size=100' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "data": [
    {
      "external_id": "string",
      "account_number": "string",
      "name": "string",
      "account_type": "bank",
      "is_active": true,
      "is_postable": true,
      "parent_external_id": "string"
    }
  ],
  "total_objects": 100,
  "page_number": 1,
  "page_size": 100
}