---
title: "Profit and loss"
method: GET
path: "/reports/profit-and-loss"
tags: ["Reports"]
---

# Profit and loss

`GET /reports/profit-and-loss`

## Request

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

columns=class returns one column per class with activity in the period, then Unassigned, plus a Total column equal to the standard report: columns (key, classId, code, name, isActive), revenue/expenses/managementReview rows with amounts keyed by column key and totalCents, columnTotals, and report totals. rollup=true folds subclasses into their parent column. Amounts are integer cents.

## Query parameters

- `basis` 'accrual' | 'cash'
- `startDate` string, date
- `endDate` string, date
- `columns` 'total' | 'class'
- `rollup` boolean

## Response `200`

Profit and loss 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)
