updateInventoryVariants( )


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

The updateInventoryVariants() function is a Promise that resolves to the updated inventory variant data.

Authentication

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

Permissions
Manage Stores - all permissions
Manage Products
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
productIdstringRequired

Product ID.


inventoryItemUpdateInventoryVariantsInventoryItemRequired

Inventory item to update.

Was this helpful?
Yes
No