Log in
Interface

StockResolverInterface

Magento\InventorySalesApi\Api\StockResolverInterface

What it does

This interface defines a contract for resolving which inventory stock is linked to a specific sales channel (like a website or store view) in Magento's Multi-Source Inventory system.

Developers use this when they need to determine which stock should be used for inventory calculations based on the sales channel type and code, such as getting the stock for a particular website during checkout or product display.

Public Methods

  • execute()