201Successful Response
Schema: SuccessEnvelope_DemandPlanScenarioResponse_
successbooleanmessagestringcodestringdataDemandPlanScenarioResponse
/api/v1/businesses/{business_id}/cfo-portal/cash-forecast/demand-planRun the canonical forecast twice (clean baseline + scenario) and return the per-week ending-cash delta.
Read-only: overrides and inline_one_time_items apply only
to the scenario pass and are never persisted. Persisting a
scenario is a separate call to PUT /cash-forecast/overrides.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredSchema: DemandPlanScenarioRequest
scenario_descriptionstringrequiredoverridesarray · DemandPlanScenarioOverrideDemandPlanScenarioOverrideweek_numberintegerrequiredcolumnstringrequiredOne of: ar_in, ap_out, inventory, debt, debt_in, budget_rev, budget_exp, one_time
amount_centsintegerrequiredinline_one_time_itemsarray · DemandPlanScenarioOneTimeDemandPlanScenarioOneTimelabelstringrequiredamount_centsintegerrequiredapplies_onstring · daterequiredweeksintegerbudget_idstringexcluded_budget_ledger_idsarray · stringSchema: SuccessEnvelope_DemandPlanScenarioResponse_
successbooleanmessagestringcodestringdataDemandPlanScenarioResponseSchema: 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.