Reports

Profit and loss

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.

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

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

Inclusive period start, YYYY-MM-DD.

endDatestring date

Inclusive period end, YYYY-MM-DD.

columns'total' | 'class'

total for one amount column; class for Profit & Loss by Class.

rollupboolean

With columns=class, show subclasses inside their parent class column.

Response

Profit and loss with resolved basis and coverage metadata

basis'accrual' | 'cash' required
amountUnit'integer_cents' required

Changes

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