Explore Plans
WooCommerce

Update product stock

This action will update the stock quantity for an existing product in your WooCommerce store.

Developer info

API endpoint slug
woocommerce.update_product_stock
Filter method
Woocommerce.updateProductStock.skip(string?: reason)
Runtime method
runAction("woocommerce.update_product_stock", {})

Action fields

Product Dropdown list

Label
Product
Helper text
Select the product to update
Slug
product_id
Required
true
Can have default value
false

Stock quantity Text input > Other

Label
Stock Quantity
Helper text
The new stock quantity (integer). Enables stock management if not already enabled.
Slug
stock_quantity
Required
true
Can have default value
true
Filter method
Woocommerce.updateProductStock.setStockQuantity(string: stock_quantity)