Skip to Content
FeaturesInsights

Trend Reporting

Overview

A single Profit and Loss tells a Business's owner what happened. A trend tells them where things are heading: whether sales are growing, whether margins are slipping, whether the cash balance is building or draining, and which months are strong or weak.

Asset doesn't have a separate trends endpoint. Trends come from the reports you already have, asked for in a way that returns a series instead of a single number:

To see a trend inUse
Revenue, costs and profitThe Profit and Loss with period.
Cash in, cash out and cash balanceThe Cash Flow Report with period.
Assets, liabilities and equityThe Balance Sheet, requested once for each date.

Each of them can be narrowed to a job, a location, a customer or a vendor. See Profitability Reporting.


Profit and loss by month, quarter or year

Add the period parameter to the Profit and Loss request. It splits the range into one block for each month, quarter or year, so a single call returns the whole series.

curl --request GET \
  --url "https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/reports/profit-and-loss?start_datetime=2026-01-01T00:00:00Z&end_datetime=2027-01-01T00:00:00Z&period=month" \
  --header 'Authorization: Bearer <token>'
periodReturns
monthOne block for each calendar month.
quarterOne block for each calendar quarter.
yearOne block for each calendar year.
allOne block for the whole range. This is the default.

The response is a list with one entry for each block, oldest first. Each has a period label and the usual records:

{
  "data": [
    { "period": "1/2026", "records": [ ... ] },
    { "period": "2/2026", "records": [ ... ] },
    { "period": "3/2026", "records": [ ... ] }
  ]
}

The labels are the month and the year for month, as in 3/2026. For quarter they are the quarter and the year, so 1/2026 is January to March. For year they are just the year, 2026.

Every block has the same lines, so you can read one line across the blocks to get its trend. To chart revenue, take Total Income from each block. For profit, take Net Profit.

Measures worth showing

Compute these from the lines of each block:

MeasureHow
Gross marginGross Profit divided by Total Income.
Net marginNet Profit divided by Total Income.
GrowthThe change in Total Income from the previous block.
A cost line as a share of revenueAn Operating Expenses Ledger divided by Total Income. A rising share is an early warning.

Cash flow by month

The Cash Flow Report takes the same period parameter. Each block shows the cash at the start of the period, the cash that came in and went out, and the cash at the end:

  • Starting Balances and Ending Balances give the cash balance over time.
  • Cash Flow From Operations shows what the Business generates from running.
  • Net Change in Cash shows whether cash grew or shrank in the period.

Plot Ending Balances to show the cash balance. When Net Change in Cash is negative for several months in a row, the balance is being drawn down, which is what an owner needs to know before it runs out.


Balance sheet over time

The Balance Sheet is a snapshot as of one moment, and has no period parameter. To get a trend, request it for each date you want, with end_datetime set to the start of the next day or month. For month-end snapshots through a year:

Snapshotend_datetime
End of January2026-02-01T00:00:00Z
End of February2026-03-01T00:00:00Z
End of March2026-04-01T00:00:00Z

Read Assets, Liabilities and Equity from each response, or an item inside one, such as the receivables in Current Assets. A growing receivables balance with flat revenue means customers are paying more slowly.

Equity includes Net Profit (Current Fiscal Year), which starts again when a new fiscal year begins. Expect equity to step at a year end.


Add the same filters you use for a single report, and the trend is for that slice. The Profit and Loss accepts tags, customer_id and vendor_id. See Profitability Reporting.

curl --request GET \
  --url "https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/reports/profit-and-loss?start_datetime=2026-01-01T00:00:00Z&end_datetime=2027-01-01T00:00:00Z&period=month&customer_id=cus_WQMDNUHpBThYSNh4AprDBo" \
  --header 'Authorization: Bearer <token>'

That shows how much a customer is worth month by month. A Location tag shows how one branch is performing. The filters apply to the Profit and Loss only. The Cash Flow and Balance Sheet cover the whole Business.


Comparing periods

  • Month over month. Take two consecutive blocks from one period=month call.
  • Year over year. Request 24 months with period=month, then compare each month with the same month a year earlier. This shows seasonality, which a month-over-month comparison hides.
  • Year to date against last year. Make two calls with the same period=all range, one for each year.

Things to watch for

  • Periods with no activity are missing. A block is returned only for a period that has activity. If a month has none, it won't appear, so a chart needs to fill the gaps with zeros. In the Cash Flow Report, the next block starts from the closing balance of the last one shown.
  • Periods are calendar periods. year means a calendar year, and quarter means January to March and so on, whatever the Business' fiscal year is. For a fiscal-year trend, request each fiscal year with period=all, one call for each year.
  • The first and last blocks can be partial. A range that starts mid-month gives a short first month. Start on the first of the month, and end on the first of the next month, with an exclusive end_datetime.
  • Use the same basis throughout. The default modified_cash shows revenue when it is paid. accrual shows it when it is issued. Switching between them changes the shape of the trend.
  • Time zones. Dates are read as UTC unless they carry a time zone.
  • Export it. Send an Accept header of application/vnd.openxmlformats-officedocument.spreadsheetml.sheet to receive the report as a spreadsheet.

Questions? Reach out via our Contact form.

On this page