Skip to main content

setProductDefaultBinLocation

Sets (or clears) the default bin location for a product in a warehouse. Upserts the (product, warehouse) configuration row: an existing row is updated, otherwise a new row is created with a reorder point of 0. Passing binLocationId: null clears the default bin location. Returns the resulting configuration row, or null when the row is left without a default bin location and without reorder thresholds (reorderPoint 0, no targetMaximumQuantity): such a row serves no purpose and is removed.

Required scopes​

The token needs the product_warehouse_configurations:write access scope.

setProductDefaultBinLocation(
input: SetProductDefaultBinLocationInput!
): ProductWarehouseConfiguration

Arguments​

setProductDefaultBinLocation.input ● SetProductDefaultBinLocationInput! 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.