View a company’s revenues, expenses, and profits over time
type
(expense, revenue) and sub_type
(operating expenses, operating revenue, total cost of goods sold, other expenses, other income).sub_type
groups and profit metrics such as gross profit and net profit. Each sub_type
group includes a calculated total of all the sub_type
’s ledgers. The values are tabulated for the specified date range.
/v0/reports/income-statement
to get the income statement data.
sub_type
, for example “Operating Expenses” or “Operating Revenue”, interspersed with profit metrics.
amount
and total_amount
: amount
reports the sum of entries in that ledger, where total_amount
reports the sum of entries in that ledger and all child ledgers.start_date
and end_date
parameters to filter the request. If you need a date picker to get started, see the Reports introduction for an example. In this example, we use the date picker set the start_date
and end_date
as query parameters and use those in our request. If the query params have not been set, you should have a default date range to fall back to, for example the year to date, in YYYY-MM-DD
format.
total_amount
is 0. You may want to hide these to avoid cluttering the interface.new Intl.NumberFormat()
in JavaScript) to ensure decimal places and commas are appropriately accounted for.font-variant-numeric: tabular-nums;
css rule to display the amounts to keep consistent spacing for optimal legibility.