Profit & Loss
GET
https://app.speybooks.com/api/v1/reports/profit-lossIncome statement for a date range. Groups accounts by type (revenue, expense) and computes gross profit and net profit.
When comparative=true, includes the equivalent prior period for comparison. The prior period is calculated as the same number of days ending the day before the from date.
Revenue accounts are shown as positive values (negated from their credit storage). Expense accounts are shown as positive debit values.
Query parameters
comparative boolean optional Default: falseInclude prior period comparison
from string requiredto string requiredResponse
200 Default Response
Show response fields
comparative objectShow child attributes
netProfit integerperiod objectShow child attributes
from stringto stringtotalExpenses integertotalRevenue integerexpenses objectShow child attributes
accounts array<object>Show child attributes
balance integercode stringid stringname stringtotal integergrossProfit integernetProfit integerperiod objectShow child attributes
from stringto stringrevenue objectShow child attributes
accounts array<object>Show child attributes
balance integercode stringid stringname stringtotal integer