List ledgers
Ledger accounts (grootboekrekeningen) with ID, code, name and category.
GET https://cotlet.dev/api/v1/e-boekhouden/ledgers
read
Returns the ledger accounts of the administration. The ledger_id goes into create_invoice lines and into create_mutation as the account the booking is made on. Look up the ID here instead of guessing a code.
Parameters
| Name | Type | Description |
|---|---|---|
| limit integer | integer | Number of items to return. |
| offset integer | integer | Number of items to skip, for the next page. |
Request
curl https://cotlet.dev/api/v1/e-boekhouden/ledgers \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("e-boekhouden", "list_ledgers") const result = await cotlet.call('e-boekhouden', 'list_ledgers'); cotlet call e-boekhouden list_ledgers Example response
{
"ledgers": [
{
"ledger_id": 1155,
"code": "1155",
"name": "Payout account",
"category": "Balance"
},
{
"ledger_id": 8000,
"code": "8000",
"name": "Revenue consulting",
"category": "Revenue"
}
],
"total": 2
}