Get general ledger
The General ledger report for a period, by account.
GET https://cotlet.dev/api/v1/procountor/general-ledger
read
Returns the same account rows as Reports > General ledger for the dates you give: each account with its entries and balance. Entries carry the receipt they come from. Use it to hand the books to an accountant without opening the report by hand.
Parameters
| Name | Type | Description |
|---|---|---|
| date_from string required | string | First day of the period, YYYY-MM-DD. |
| date_to string required | string | Last day of the period, YYYY-MM-DD. |
| account string | string | Limit to one account number. |
Request
curl "https://cotlet.dev/api/v1/procountor/general-ledger?date_from=date+from&date_to=date+to" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("procountor", "get_general_ledger", {"date_from":"date from","date_to":"date to"}) const result = await cotlet.call('procountor', 'get_general_ledger', {"date_from":"date from","date_to":"date to"}); cotlet call procountor get_general_ledger --data '{"date_from":"date from","date_to":"date to"}' Example response
{
"period": {
"from": "2026-09-01",
"to": "2026-09-30"
},
"accounts": [
{
"account": "3000",
"name": "Sales",
"entries": 12,
"balance": -9400
},
{
"account": "1700",
"name": "Accounts receivable",
"entries": 12,
"balance": 9400
}
]
}