Pick the Update Product Stock action (under Inventory (Legacy)).
Fill in the fields below, then reference the result from later steps as {{updateProductStock.response.data}}.
Request
Path parameters
product_uuidstringrequired
The unique identifier of the product.
Request body
Enter the body as JSON in the step's Body field.
dataobjectrequired
product_idstring (uuid)
The ID of the product to perform the transaction against
typestringrequired
The type of object being returned. Always `stock-transaction`.
One ofstock-transactionDefault "stock-transaction"
actionstringrequired
The type of action being performed by this transaction.
- **increment** - use this when you want to make products available for purchase, for example, when you have received stock from a supplier.
- **decrement** - Use this when you want to remove stock from product inventory.
- **allocate** - Use this when you want to allocate stock, normally to a reseller who sells on the stock.
- **deallocate** - Use this when you want to deallocate any previously allocated stock.
One ofincrementdecrementallocatedeallocate
quantityinteger (int64)
The amount of stock affected by the stock transaction.
Returns 200 with an object. Read it in later steps with {{updateProductStock.response.data.<field>}}.
dataobject
idstring
The unique identifier for the stock transaction.
typestringrequired
The type represents the object being returned. Always `stock-transaction`.
One ofstock-transactionDefault "stock-transaction"
actionstring
The type of action performed by this transaction.
- **increment** - use this when you want to make products available for purchase, for example, when you have received stock from a supplier.
- **decrement** - Use this when you want to remove stock from product inventory.
- **allocate** - Use this when you want to allocate stock, normally to a reseller who sells on the stock.
- **deallocate** - Use this when you want to deallocate any previously allocated stock.
One ofincrementdecrementallocatedeallocate
product_idstring
The product identifier that this stock transaction is for.
quantityinteger (int64)
The amount of stock affected by the stock transaction.