PATCH

Update Inventory Variants


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

trackQuantity is set at the product level, not per variant. Always include trackQuantity explicitly in every request, even when you're only updating one variant's inStock or quantity — omitting it is treated as false and will retroactively untrack the entire product, affecting variants not referenced in this call.

Authentication

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

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

Errors

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

Did this help?