PATCH

Update Inventory Variants


Updates product inventory, including total quantity, whether the product is in stock, and whether the product inventory is tracked.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/stores/v2/inventoryItems/product/{inventoryItem.productId}

Path Params
inventoryItem.productIdstringRequired

Product ID.

Body Params
inventoryItemInventoryItemRequired

Inventory item.

Response Object
Returns an empty object.
Request
cURL
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" } } }'
Response
JSON
{}
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?