updateInventoryVariantFieldsByProductId( )


Updates an existing inventory item's variants by product ID.

The updateInventoryVariantFieldsByProductId() function returns a Promise that resolves when the variant with the specified product ID has been updated.

Only the properties passed in the inventory item object will be updated. All other properties will remain the same.

Note: You can also update a variant's inventory by inventory ID instead of product ID using the updateInventoryVariantFields() function.

Method Declaration
Copy
Method Parameters
productIdstringRequired

The corresponding product ID for the inventory item in a Wix store.


inventoryInfoInventoryItemVariantInfoRequired

The information to update in the variant.

Was this helpful?
Yes
No