Profit & Loss By Period
Profit & loss with one column per month or quarter. Accounts are grouped into Revenue, Cost of Goods Sold, Operating Expenses and Other Expenses; each line carries its amount per period, its total, and its share of its section. Amounts are natural-signed (revenue and expenses both positive) in the organization's functional currency. A single-period result always equals the Income Statement. To compare with an earlier range (this month so far against the same days last month), pass compareStartDate and compareEndDate: the result then has exactly two periods, the compare range first and the requested range second, granularity is ignored, and every total and percent covers the requested range only.
Parameters
organizationIdUUID!requiredOrganization ID
startDateDate!requiredStart of range (YYYY-MM-DD); the first period is clipped to it
endDateDate!requiredEnd of range (YYYY-MM-DD); the last period is clipped to it
granularityString"month" (default) or "quarter"
viewString"all" (default, every entry) or "management" (leaves out the income and expense of entries marked to leave out of management reports). Their sales tax and the balance sheet stay the same
compareStartDateDateFirst day of an earlier range to show as a first column (YYYY-MM-DD). Needs compareEndDate
compareEndDateDateLast day of the compare range (YYYY-MM-DD, inclusive). Must be before startDate