Profit & Loss

GEThttps://app.speybooks.com/api/v1/reports/profit-loss

Income 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: false
Include prior period comparison
fromstringrequired
date
tostringrequired
date

Response

200Default Response
Show response fields
comparativeobject
Show child attributes
netProfitinteger
periodobject
Show child attributes
fromstring
tostring
totalExpensesinteger
totalRevenueinteger
expensesobject
Show child attributes
accountsarray<object>
Show child attributes
balanceinteger
codestring
idstring
namestring
totalinteger
grossProfitinteger
netProfitinteger
periodobject
Show child attributes
fromstring
tostring
revenueobject
Show child attributes
accountsarray<object>
Show child attributes
balanceinteger
codestring
idstring
namestring
totalinteger