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.

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 reorder thresholds. The default bin location is the bin proposed when stock for the product is put away in the warehouse.