Log in
Model

GetStockBySalesChannel

Magento\InventorySales\Model\GetStockBySalesChannel

What it does

This class retrieves the stock entity associated with a specific sales channel (like a website or store).

Developers use this when they need to determine which inventory stock is linked to a particular sales channel, enabling proper inventory management across multiple stores or websites in Multi-Source Inventory (MSI).

Public Methods

  • execute()