Analytics - Financial
Get Revenue Forecast
Generate revenue or churn forecasts using statistical models (Moving Average, Linear Regression, ARIMA, SARIMA).
post/api/analytics/financial/forecast
Request body
Example request
{
"account_ids": [
"acc_abc123",
"acc_def456"
],
"metric": "revenue",
"model": "linear_regression",
"historical_days": 90,
"forecast_days": 30
}Response
Example response
{
"metric": "revenue",
"model": "linear_regression",
"historical": [
{
"date": "2024-01-01",
"value": 500
}
],
"forecast": [
{
"date": "2024-02-01",
"value": 550
}
]
}