Skip to main content

Measure Promo Lift

POST 

/api/inventory-forecasting/promo-windows/:id/measure

Measure the realised demand lift during a promo window and the dip in the days after it, for one product. The result is persisted onto the window and returned alongside suggested forward demand modifiers for next year's occurrence.

Authentication: Requires Bearer token.

The measured lift is what a promo_lift demand modifier applies at build time. It is reported as a percentage but is applied MULTIPLICATIVELY to whatever the current baseline is, so it stays correct as demand grows - a promotion that lifted demand 85% last year still lifts this year's larger baseline by 85%. Re-measure whenever you want the applied lift refreshed (for example after editing the window or accruing more sales).

Path parameter: id - the promo window to measure.

Body fields:

  • product_id (required): the product to measure.
  • dip_days (optional): number of days after the window to measure the post-promo dip, 1-365 (default 14).
  • sales_filters (optional): object narrowing which sales are counted.
  • warehouse_id (optional): restrict the measurement to one warehouse.

The response reports measured_lift_pct, post_promo_dip_pct, the in-window and expected daily rates, and suggested_modifiers - event demand modifiers pre-dated to the same window one year forward, ready to add to a build or configuration.

Request

Responses

OK

Response Headers
    Content-Type