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
- Type: booleanpostable
truereturns only accounts that are both active and postable, which is the set a journal entry line may name. Defaultfalsereturns the whole chart. - Type: integerpage
_number min:1Integer numbers.
- Type: integerpage
_size min:1max:100Integer numbers.
Responses
- application/json
- 401
Missing or invalid bearer API key (CAPI11).
- 403
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
}