201Successful Response
Schema: SuccessEnvelope_CashForecastVersionDetail_
successbooleanmessagestringcodestringdataCashForecastVersionDetail
/api/v1/businesses/{business_id}/cfo-portal/cash-forecast/versionsSnapshot the current cash forecast configuration + output.
The version captures the chosen budget, excluded ledgers, embedded one-time items, cell overrides and forecast switches, along with the full computed forecast JSON. The snapshot is what stays stable as live data drifts; the config is what's replayed on load.
Request Body: config.overrides omitted or null saves the
working override set (the Reorder Cash Planner); [] saves none
(the live Cash Flow Forecast tab, which ignores overrides). Duplicate
cells or weeks outside 1-52 are refused with 400.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredSchema: CashForecastVersionCreate
namestringrequireddescriptionstringconfigCashForecastVersionConfigCashForecastVersionConfigbudget_idstringexcluded_budget_ledger_idsarray · stringweeksintegerone_time_items_snapshotarray · CashForecastOneTimeItemBaseCashForecastOneTimeItemBaseSnapshot of the one-time items as they existed when the version was saved. Replays against live data don't re-load from the live cash_forecast_one_time_items table.
overridesarray · CashForecastOverrideInputCell overrides saved with the version. On save, omit (null) to capture the working override set, pass [] to save none (the live Cash Flow Forecast tab, which ignores overrides). On read, null means the version predates override capture.
include_projected_replenishmentbooleanProjected replenishment POs were in the forecast.
include_unapproved_apbooleanBills awaiting approval were in the forecast.
net_bills_against_budgetbooleanOpen bills were netted against their budget line.
Schema: SuccessEnvelope_CashForecastVersionDetail_
successbooleanmessagestringcodestringdataCashForecastVersionDetailSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.