Allows you to retrieve the list of stock data by product IDs.
magento.catalogInventoryStockItem.list({
products: [ val, val, val ]
}, callback);
// or a single product
magento.catalogInventoryStockItem.list({
products: val
}, callback);
Allows you to update the required product stock data.
data
is a catalogInventoryStockItemUpdateEntity object.
magento.catalogInventoryStockItem.update({
product: val,
data: val
}, callback);