Commerce
setInventory
Set Inventory
Set the on-hand inventory count on a product (turns inventory tracking on) or on one variant.
Arguments
appIdstringrequiredThe Studio app ID whose catalog to edit.productIdstringoptionalThe product ID to set total inventory on.variantIdstringoptionalThe variant ID to set inventory on.quantityintegerrequiredThe absolute on-hand count.
Returns
The registry does not declare a return shape.
Declared limits
quantity: minimum 0quantity: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- set shilajit stock to 40
- we have 12 of the 50ML left
- restock this item
Pair it with
The verbs that finish the job.