Supply Chain MRP (V2)

Forecast visible — agrégat mensuel ventes + projection.

Forecast visible — agrégat mensuel ventes + projection.

Query params :
    product_id (uuid, required) : produit ciblé
    months (int, optional, default 12) : fenêtre historique (1..36) — S1
    model (str, optional, default "legacy"):
        "legacy" : retourne le format S1 (historical + projection M3
                   moyenne mobile, schema {month, units_sold/predicted})
        "linear" : forecast V1 moyenne mobile 3 mois, schema ML-style
                   ({date, value, ci_lower, ci_upper})
        "ml"     : forecast AutoARIMA (statsforecast) — raise si lib
                   missing OU <12 mois historique
        "auto"   : dispatcher — ML si possible, fallback linear sinon

Pour les modes linear|ml|auto, le param `months` est interprété comme
`months_horizon` (1..12 mois de projection).

Réponse :
    legacy : {data: {historical[], projection[], basis}}
    autres : {data: {model_name, months_horizon, confidence,
                      projection[{date, value, ci_lower, ci_upper}],
                      metrics{nb_history_months, rmse, mean_y}}}

Permissions requises : supply:read

get/api/v1/supply/forecast

Request

  • Base URL: https://erp.eyeot.fr/api/v1
  • URL: https://erp.eyeot.fr/api/v1/api/v1/supply/forecast
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Response

Succès — payload {data, meta} (cf. API-GUIDE §3.1)

Changes

No recorded changes to this operation across all 1 revision of this API.