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
| Name | Type | Description |
|---|---|---|
| search string | string | Part of the account number or name. |
Request
curl https://cotlet.dev/api/v1/bokio/accounts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("bokio", "list_accounts") const result = await cotlet.call('bokio', 'list_accounts'); cotlet call bokio list_accounts Example response
{
"accounts": [
{
"account": "1930",
"name": "Företagskonto"
},
{
"account": "5010",
"name": "Lokalhyra"
}
]
}