Log in
Interface

SourceSelectionServiceInterface

Magento\InventorySourceSelectionApi\Api\SourceSelectionServiceInterface

What it does

This interface defines the service for selecting inventory sources based on a specified algorithm.

Developers use this when they need to determine which warehouse or inventory source should fulfill an order, using algorithms like priority-based or distance-based selection.

It takes an inventory request and algorithm code, returning a result that indicates the optimal source(s) for fulfillment.

Public Methods

  • execute()