Log in
Model

GetStockIdsBySkus

Magento\Inventory\Model\GetStockIdsBySkus

What it does

This class retrieves all stock IDs associated with given product SKUs in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to determine which inventory stocks contain specific products, such as when calculating available inventory across multiple warehouses or managing stock allocations for orders.

Public Methods

  • execute()