Reports

Profit and loss lines behind a class column

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.

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

Query parameters

basis'accrual' | 'cash'

Financial reporting basis. Omit to use the company's default_report_basis. Cash responses include coverage metadata and structured issues; amounts remain integer cents.

startDatestring date
endDatestring date
classKeystring

Column key from columns=class, or unassigned. Omit for every class.

accountIdstring uuid

Limit to one income or expense account.

rollupboolean

Include subclass lines under a parent column key.

limitinteger

Response

{ basis, lines, totalLines, truncated, totalCents }

Changes

No recorded changes to this operation across all 5 revisions of this API.