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.
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
Financial reporting basis. Omit to use the company's default_report_basis. Cash responses include coverage metadata and structured issues; amounts remain integer cents.
Column key from columns=class, or unassigned. Omit for every class.
Limit to one income or expense account.
Include subclass lines under a parent column key.
Response
{ basis, lines, totalLines, truncated, totalCents }
Changes
No recorded changes to this operation across all 5 revisions of this API.