---
title: "General ledger"
method: GET
path: "/reports/general-ledger"
tags: ["Reports"]
---

# General ledger

`GET /reports/general-ledger`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/reports/general-ledger`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Returns account activity in integer cents with totalEntries and full-period totals independent of paging. Accounts include openingBalance (zero by default). Entries include journalEntryId, sourceKind, sourceId, and synthetic for source-entry links and cash-basis adjustment identification. includeOpeningBalance=true adds the balance before startDate to running and ending balances, including accounts with no period activity.

## Query parameters

- `basis` 'accrual' | 'cash'
- `startDate` string, date
- `endDate` string, date
- `accountId` string, uuid
- `offset` integer
- `limit` integer
- `includeOpeningBalance` boolean

## Response `200`

General ledger with resolved basis and coverage metadata

- ReportResult: Common report envelope. Report-specific sections are returned alongside these fields.
  - `basis` 'accrual' | 'cash', required
  - `amountUnit` 'integer_cents', required

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
