Updates product inventory, including total quantity, whether the product is in stock, and whether the product inventory is tracked.
You can only call this method when authenticated as a Wix app or Wix user identity.
Product ID.
Inventory item.
curl -X PATCH https://www.wixapis.com/stores/v2/inventoryItems/0ff8f8b0-2857-5974-193e-8283c21fde00 \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
--data-binary '
{
"inventoryItem": {
"trackQuantity": true,
"variants": [
{
"variantId": "00000000-0000-0000-0000-000000000000",
"quantity": 1
}
],
"numericId": 0,
"preorderInfo": {
"enabled": true,
"limit": 4,
"message": "Expected to ship on June"
}
}
}'
{}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.