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

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Products
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
inventoryItemUpdateInventoryVariantsInventoryItemRequired

Inventory item to update.


productIdstringRequired

Product ID.


optionsUpdateInventoryVariantsOptions
Errors

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

Did this help?