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

# Profit and loss comparison

`GET /reports/pnl-comparison`

## Request

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

## Query parameters

- `compare` 'monthly' | 'quarterly' | 'yearly'
- `periods` integer
- `anchorDate` string, date
- `basis` 'accrual' | 'cash'

## Response `200`

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