Turn on auto-reorder for an item
hub_set_reorder_ruleTell the platform to watch one item and suggest reordering it when stock runs low: below lowStockPoint, suggest ordering reorderQuantity from this supplier. Calling it again on the same item replaces the rule rather than adding a second one. The supplier MUST already carry this item (get_supplier_items) — otherwise the rule would draft orders to a supplier that cannot fulfil them, and it is refused. The thresholds apply company-wide unless you pass outletOverrides, which set a different point or quantity per outlet — a busy store may need a higher one than a quiet one. This only produces SUGGESTIONS. Nothing is ever ordered or emailed automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variantId | Yes | Item id from get_supplier_items | |
| supplierId | Yes | Supplier to reorder from — must already carry this item | |
| lowStockPoint | Yes | Suggest reordering once stock falls below this | |
| outletOverrides | No | Per-outlet thresholds for outlets that differ from the default | |
| reorderQuantity | Yes | How many to suggest ordering |