Invoke Skill Reports Forecast Prepare
post
/api/v1/skills/reports.forecast.prepare/invokePrepare a financial forecast β multi-scenario, with assumptions register.
Projects monthly revenue, expenses, EBITDA and cash for one or more scenarios from the client's trial balance. Only client_id is required; the horizon, scenarios, statements, seasonality and output format all have defaults, and growth_assumptions overrides the drivers. The answer holds the monthly figures for each scenario, an assumptions register and data-quality notes.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
client_idrequired | string (uuid) | UUID of the client entity to forecast. |
horizon_months | integer | Number of months to project from the latest period; 12 when omitted. |
scenarios | "base" | "optimistic" | "pessimistic"[] | Scenarios to model, any of base, optimistic and pessimistic. |
projection_type | "pnl" | "cashflow" | "balance_sheet"[] | Statements to project, any of pnl, cashflow and balance_sheet. |
seasonal_adjustment | boolean | Whether to apply monthly seasonal factors to the projection. |
growth_assumptions | object | Numeric overrides keyed revenue_growth_annual (a fraction, so 0.05 is 5%), dso_days, dpo_days and seasonal_factor_01 to seasonal_factor_12.show nestedEmpty object. |
output_format | "data" | "document" | "both" | What to return: data, document or both.datadocumentboth |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/reports.forecast.prepare/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"client_id": "00000000-0000-0000-0000-000000000000",
"horizon_months": 0,
"scenarios": [
"base"
],
"projection_type": [
"pnl"
],
"seasonal_adjustment": false,
"growth_assumptions": {},
"output_format": "data"
}'