Demand Suggestions
List Demand Suggestions
List Demand Suggestions
Generate Demand Suggestions
Regenerate the pending demand suggestions from current inventory + sales state and return them. PERSISTS: existing pending rows are replaced; confirmed and dismissed suggestions are preserved. Body params: `look_back_days` (int, default 30) — sales-history window used to compute velocity; `safety_days` (int, default 7) — safety-stock buffer added to the need. Response: `{ data: [DemandSuggestion], message: 'N suggestions generated', look_back_days, safety_days }`.
Update Demand Suggestion
Update the suggested quantity on a pending demand suggestion.
Confirm Demand Suggestion
Confirm a pending demand suggestion. Creates a Draft manufacturing order from the suggestion's BOM and suggested quantity, and links it via confirmed_manufacturing_order_id.
Dismiss Demand Suggestion
Dismiss a pending demand suggestion so it no longer appears as actionable. Dismissed suggestions are preserved and are not recreated by the next generation run.
Bulk Confirm Demand Suggestions
Confirm multiple pending demand suggestions in one call - each confirmed suggestion gets its own Draft manufacturing order. Suggestions that are not pending or have no default BOM are skipped silently; only the confirmed rows are returned.
Bulk Dismiss Demand Suggestions
Dismiss multiple pending demand suggestions in one call. Suggestions that are not pending are skipped silently; only the dismissed rows are returned.