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

Parameters: list_gl_accounts
NameTypeDescription
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
curl https://cotlet.dev/api/v1/exact-online/gl-accounts \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("exact-online", "list_gl_accounts")
Node.js
const result = await cotlet.call('exact-online', 'list_gl_accounts');
CLI
cotlet call exact-online list_gl_accounts

Example response

JSON

{
  "accounts": [
    {
      "gl_account": "4000",
      "description": "Rent",
      "type": "expense"
    },
    {
      "gl_account": "1800",
      "description": "Accruals",
      "type": "liability"
    }
  ],
  "next_cursor": null
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.