Log in
Model

SourceSelectionService

Magento\InventorySourceSelectionApi\Model\SourceSelectionService

What it does

This service class acts as a factory for executing different source selection algorithms in Magento's Multi-Source Inventory (MSI) system.

Developers use it to determine which inventory sources should fulfill order items by passing an inventory request and specifying an algorithm code (like 'priority' or 'distance').

The class dynamically loads and executes the appropriate algorithm implementation based on the configured selection methods.

Public Methods

  • execute()