List accounts

The chart of accounts: account numbers and names you can book on.

GET https://cotlet.dev/api/v1/bokio/accounts

read

Returns the accounts of the company's chart of accounts with number and name. Bokio's API only books on accounts it supports, and a journal entry with another account is rejected, so check here first.

Parameters

Parameters: list_accounts
NameTypeDescription
search string string Part of the account number or name.

Request

cURL
curl https://cotlet.dev/api/v1/bokio/accounts \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("bokio", "list_accounts")
Node.js
const result = await cotlet.call('bokio', 'list_accounts');
CLI
cotlet call bokio list_accounts

Example response

JSON

{
  "accounts": [
    {
      "account": "1930",
      "name": "Företagskonto"
    },
    {
      "account": "5010",
      "name": "Lokalhyra"
    }
  ]
}

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.