Summarise forecasts
Totals over dated forecasts per period bucket and at most one more dimension. Give
period, or both from and to.
amount totals what was planned and remaining_amount the part not yet matched by
transactions. Every status counts unless status narrows it, so a realised forecast
still adds to amount and adds nothing to remaining_amount. Amounts convert to
currency at the rate of each forecast’s own date. Buckets are calendar aligned and
clipped to the window. totals covers the whole window.
Grouped rows are ordered by absolute amount, largest first. A period keeps at most 50
groups; the rest fold into one row labelled other. Forecasts with no counterparty or
no label fall in a none row, and a forecast with several labels counts once per
label. Here category_id also covers subcategories.
Authorizations
A workspace API key created in ThinkOut settings. One key reads one workspace.
Query Parameters
A named window, resolved against the workspace's local day and echoed in the response. Takes precedence over from and to.
A named window resolved on the server. last_30_days and last_90_days end today and include it; last_12_months starts the day after today minus twelve months. next_month, next_quarter and next_year cover the whole next calendar month, quarter or year.
this_month, last_month, this_quarter, last_quarter, this_year, last_year, month_to_date, quarter_to_date, year_to_date, last_30_days, last_90_days, last_12_months, next_month, next_quarter, next_year First day of the window, inclusive. Required with to unless period is given.
Last day of the window, inclusive. Required with from unless period is given.
The period bucket rows are grouped into. A period bucket for report rows.
day, week, month A second dimension to group by, alongside the period bucket. Omit it for one row per period.
As GroupDimension, plus forecast status. Forecasts have no account.
category, counterparty, label, activity, direction, status Currency to report in. Defaults to the workspace currency. An unknown code is rejected. ISO 4217 alphabetic currency code.
^[A-Z]{3}$"RON"
Only rows in these categories. Comma-separated for several. On /transactions this
also matches a split transaction whose pieces are in one of them. Subcategories are
included only on the summaries.
Only rows carrying at least one of these labels. Comma-separated for several.
Only rows attributed to these counterparties. Comma-separated for several.
Whether money comes in or goes out. On a transaction or forecast it follows the sign of amount.
inflow, outflow Only rows whose category sits in these cash flow statement sections. Comma-separated for several.
Cash flow statement section the category belongs to.
operating, investing, financing realised is complete. partial has matched transactions. overdue is dated before today with none. planned is dated today or later with none.
planned, overdue, partial, realised Response
The summary.
"forecast_summary"The window actually computed.
What was done to make amounts comparable.
As GroupDimension, plus forecast status. Forecasts have no account.
category, counterparty, label, activity, direction, status false when no forecast matched.
The whole window added up, over the same forecasts as the rows.