Skills › Reports
Prepare a Financial Forecast
POST/api/v1/skills/reports.forecast.prepare/invoke
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.
Body parameters
client_idstring · uuidRequired
UUID of the client entity to forecast.
horizon_monthsinteger · default 12
Number of months to project from the latest period; 12 when omitted.
scenariosarray of enum
Scenarios to model, any of base, optimistic and pessimistic.
baseoptimisticpessimistic
projection_typearray of enum
Statements to project, any of pnl, cashflow and balance_sheet.
pnlcashflowbalance_sheet
seasonal_adjustmentboolean · default true
Whether to apply monthly seasonal factors to the projection.
growth_assumptionsobject
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.
output_formatenum · default both
What to return: data, document or both.
datadocumentboth
Returns
Skill executed successfully
skillstringRequired
Example prepare_forecast
outputobjectRequired
output.artifact_idstring · uuid
output.download_urlstring · default
output.summarystring · default
output.citationsarray of values
output.warningsarray of strings
output.stub_fieldsarray of strings
output.forecast_idstring · uuid
output.horizon_monthsinteger · default 0
output.base_periodstring · default
output.currencystring · default AUD
output.scenariosobject
output.assumptions_registerarray of objects
output.data_qualityobject
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/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" }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "reports.forecast.prepare", client_id="00000000-0000-0000-0000-000000000000", horizon_months=0, scenarios=["base"], projection_type=["pnl"], seasonal_adjustment=False, growth_assumptions={}, output_format="data", ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("reports.forecast.prepare", {
"client_id": "00000000-0000-0000-0000-000000000000",
"horizon_months": 0,
"scenarios": [
"base"
],
"projection_type": [
"pnl"
],
"seasonal_adjustment": false,
"growth_assumptions": {},
"output_format": "data"
});
console.log(result);Response
{
"skill": "prepare_forecast",
"output": {
"assumptions_register": [
{
"name": "revenue_growth_annual",
"source": "growth_assumptions",
"value": 0.05
},
{
"name": "expense_ratio_to_revenue",
"source": "tb_derived",
"value": 0.8
},
{
"name": "dso_days",
"source": "growth_assumptions",
"value": 40
},
{
"name": "dpo_days",
"source": "growth_assumptions",
"value": 30
},
{
"name": "seasonal_adjustment",
"source": "input",
"value": false
}
],
"base_period": "2026-09",
"currency": "GBP",
"data_quality": {
"cash_open": 184000,
"scenarios_emitted": [
"base"
],
"tb_expenses_annual": 960000,
"tb_revenue_annual": 1200000
},
"forecast_id": "79aa701d-c37b-4748-9461-ed9d66e6eb26",
"horizon_months": 3,
"scenarios": {
"base": {
"2026-10": {
"cash": 203864.2,
"cash_delta": 19864.2,
"ebitda": 20081.48,
"expenses": 80325.93,
"revenue": 100407.41
},
"2026-11": {
"cash": 223809.32,
"cash_delta": 19945.13,
"ebitda": 20163.3,
"expenses": 80653.19,
"revenue": 100816.48
},
"2026-12": {
"cash": 243835.7,
"cash_delta": 20026.38,
"ebitda": 20245.44,
"expenses": 80981.78,
"revenue": 101227.22
}
}
},
"stub_fields": [],
"summary": "Three-month base-case forecast for Northwind Trading Ltd: revenue of about £101,000 a month by December 2026.",
"warnings": []
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.