Skip to main content
GET
Summarise forecasts

Authorizations

Authorization
string
header
required

A workspace API key created in ThinkOut settings. One key reads one workspace.

Query Parameters

period
enum<string>

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.

Available options:
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
from
string<date>

First day of the window, inclusive. Required with to unless period is given.

to
string<date>

Last day of the window, inclusive. Required with from unless period is given.

interval
enum<string>
default:month

The period bucket rows are grouped into. A period bucket for report rows.

Available options:
day,
week,
month
group_by
enum<string>

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.

Available options:
category,
counterparty,
label,
activity,
direction,
status
currency
string

Currency to report in. Defaults to the workspace currency. An unknown code is rejected. ISO 4217 alphabetic currency code.

Pattern: ^[A-Z]{3}$
Example:

"RON"

category_id
string<uuid>[]

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.

label_id
string<uuid>[]

Only rows carrying at least one of these labels. Comma-separated for several.

counterparty_id
string<uuid>[]

Only rows attributed to these counterparties. Comma-separated for several.

direction
enum<string>

Whether money comes in or goes out. On a transaction or forecast it follows the sign of amount.

Available options:
inflow,
outflow
activity
enum<string>[]

Only rows whose category sits in these cash flow statement sections. Comma-separated for several.

Cash flow statement section the category belongs to.

Available options:
operating,
investing,
financing
status
enum<string>

realised is complete. partial has matched transactions. overdue is dated before today with none. planned is dated today or later with none.

Available options:
planned,
overdue,
partial,
realised

Response

The summary.

object
string
required
Allowed value: "forecast_summary"
period
object
required

The window actually computed.

conversion
object
required

What was done to make amounts comparable.

group_by
enum<string> | null
required

As GroupDimension, plus forecast status. Forecasts have no account.

Available options:
category,
counterparty,
label,
activity,
direction,
status
has_data
boolean
required

false when no forecast matched.

totals
object
required

The whole window added up, over the same forecasts as the rows.

data
object[]
required