Skip to main content

Get a planner scenario projection

Month-by-month balance projection: as-of month baseline (real income/expense transactions + unmaterialized recurrences) and future months (recurrences), plus the scenario lines. In accounts mode, the current-month start balance is live minus net paid MTD. Requires Authorization: Bearer with a Better Auth session token.
1 min read
get/finance/profiles/{studioId}/planner/scenarios/{scenarioId}/projection
Request example
Response
get/finance/profiles/{studioId}/planner/scenarios/{scenarioId}/projection

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Identifier or key studioId.
scenarioIdstringrequired#
Identifier or key scenarioId.

Query parameters

monthsinteger#
Horizon in months (1-36, default 6).
startYearinteger#
Window start year (defaults to the current UTC month).
startMonthinteger#
Window start month 1-12 (defaults to the current UTC month).
fromstring#
YYYY-MM alias of the start month.

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
startingBalanceCentsintegerrequired#
Base series balance at the start of the window.
scenarioStartingBalanceCentsintegerrequired#
Scenario series balance at the start of the window.
startYearintegerrequired#
startMonthintegerrequired#
monthsobject[]required#
Show child attributes
monthKeystringrequired#
yearintegerrequired#
monthintegerrequired#
baselineIncomeCentsintegerrequired#
baselineExpenseCentsintegerrequired#
baselineEndBalanceCentsintegerrequired#
scenarioIncomeCentsintegerrequired#
scenarioExpenseCentsintegerrequired#
scenarioEndBalanceCentsintegerrequired#
request_idstring#