---
title: "Profit and loss lines behind a class column"
method: GET
path: "/reports/profit-and-loss/lines"
tags: ["Reports"]
---

# Profit and loss lines behind a class column

`GET /reports/profit-and-loss/lines`

## Request

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

Lists the income and expense journal lines behind one Profit & Loss by Class amount, for review and retagging with PATCH /journal-lines/class. Returns lines (id, journalLineId (null for synthetic cash-basis lines), journalEntryId, entryNumber, date, description, accountId, accountCode, accountName, classId, amountCents), totalLines, truncated, and totalCents.

## Query parameters

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

## Response `200`

{ basis, lines, totalLines, truncated, totalCents }

## 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)
