Get ledger balances
The balance of every ledger, optionally from and up to a date and for one cost center.
GET https://cotlet.dev/api/v1/e-boekhouden/ledger-balances
read
Returns one balance per ledger. With from set, the balance covers only that period; with to set, it is the balance on that date, inclusive. Add a cost center ID to narrow it. This is a balance per ledger, not a list of every booking.
Parameters
| Name | Type | Description |
|---|---|---|
| from date | date | Start of the period, inclusive. |
| to date | date | Balance on this date, inclusive. |
| cost_center_id integer | integer | Only bookings on this cost center. |
Request
curl https://cotlet.dev/api/v1/e-boekhouden/ledger-balances \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("e-boekhouden", "get_ledger_balances") const result = await cotlet.call('e-boekhouden', 'get_ledger_balances'); cotlet call e-boekhouden get_ledger_balances Example response
{
"balances": [
{
"ledger_id": 1155,
"name": "Payout account",
"balance": 4210
},
{
"ledger_id": 8000,
"name": "Revenue consulting",
"balance": -18350
}
],
"to": "2026-10-31"
}