List ledger accounts
General ledger accounts of a division with code and description.
GET https://cotlet.dev/api/v1/exact-online/gl-accounts
read
Lists the ledger accounts of one division with their code and description. Use the code in book_journal_entry. Search by code or part of the description to find one account.
Parameters
| Name | Type | Description |
|---|---|---|
| division integer | integer | Division (company) code from list_divisions. Default: the account's current division. |
| query string | string | Part of the code or the description. |
| limit integer | integer | Records per page. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/exact-online/gl-accounts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("exact-online", "list_gl_accounts") const result = await cotlet.call('exact-online', 'list_gl_accounts'); cotlet call exact-online list_gl_accounts Example response
{
"accounts": [
{
"gl_account": "4000",
"description": "Rent",
"type": "expense"
},
{
"gl_account": "1800",
"description": "Accruals",
"type": "liability"
}
],
"next_cursor": null
}