post
/products/warehouses/update
Updates stocks and/or default shipping prices for product’s variants. Either id
or sku
of the product must be specified.
Put in the request body only the variant-warehouse pairs you’d like to change. All other variant-warehouse pairs will remain unchanged.
For more information on how default shipping prices work read the overview.
Requirements
For each item
- either
shippingPrice
+currency
orinventory
must be specified; - for non-default warehouses either
warehouseId
orwarehouseLabel
must be specified.
If no warehouse is specified, the default warehouse is assumed.
Request Parameters
2 Query Parameters
Request Body
Schema
items
array[object]
Responses
Schema
Send a Test Request
POST
Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
host