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

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

Example response

JSON

{
  "balances": [
    {
      "ledger_id": 1155,
      "name": "Payout account",
      "balance": 4210
    },
    {
      "ledger_id": 8000,
      "name": "Revenue consulting",
      "balance": -18350
    }
  ],
  "to": "2026-10-31"
}

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.