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
comparativebooleanoptionalDefault: falseInclude prior period comparison
fromstringrequiredtostringrequiredResponse
200Default Response
Show response fields
comparativeobjectShow child attributes
netProfitintegerperiodobjectShow child attributes
fromstringtostringtotalExpensesintegertotalRevenueintegerexpensesobjectShow child attributes
accountsarray<object>Show child attributes
balanceintegercodestringidstringnamestringtotalintegergrossProfitintegernetProfitintegerperiodobjectShow child attributes
fromstringtostringrevenueobjectShow child attributes
accountsarray<object>Show child attributes
balanceintegercodestringidstringnamestringtotalinteger