setProductWarehouseReorderConfiguration
Sets the replenishment thresholds (reorderPoint and targetMaximumQuantity) for a product in a warehouse. Upserts the (product, warehouse) configuration row: an existing row is updated, otherwise a new row is created. Returns the resulting configuration row, or null when both thresholds are empty (reorderPoint null or 0, no targetMaximumQuantity) and no default bin location is set: such a row serves no purpose and is removed.
Required scopes
The token needs the product_warehouse_configurations:write access scope.
setProductWarehouseReorderConfiguration(
input: SetProductWarehouseReorderConfigurationInput!
): ProductWarehouseConfiguration
Arguments
setProductWarehouseReorderConfiguration.input ● SetProductWarehouseReorderConfigurationInput! non-null input
Type
ProductWarehouseConfiguration object
Per-warehouse configuration for a single product. One row per (product, warehouse) pair, storing the product's default bin location for that warehouse and its replenishment thresholds. The default bin location is the bin proposed when stock for the product is put away in the warehouse.