Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 713 Bytes

catalogInventory_stock_item.md

File metadata and controls

30 lines (21 loc) · 713 Bytes

Catalog Inventory Stock Item

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);