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

Parameters: list_ledgers
NameTypeDescription
limit integer integer Number of items to return.
offset integer integer Number of items to skip, for the next page.

Request

cURL
curl https://cotlet.dev/api/v1/e-boekhouden/ledgers \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("e-boekhouden", "list_ledgers")
Node.js
const result = await cotlet.call('e-boekhouden', 'list_ledgers');
CLI
cotlet call e-boekhouden list_ledgers

Example response

JSON

{
  "ledgers": [
    {
      "ledger_id": 1155,
      "code": "1155",
      "name": "Payout account",
      "category": "Balance"
    },
    {
      "ledger_id": 8000,
      "code": "8000",
      "name": "Revenue consulting",
      "category": "Revenue"
    }
  ],
  "total": 2
}

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.