Interface

BulkSourceAssignInterface

Magento\InventoryCatalogApi\Api\BulkSourceAssignInterface

What it does

This interface defines a contract for bulk assignment of inventory sources to multiple products in Magento 2's Multi-Source Inventory (MSI) system.

Developers use this when they need to programmatically assign one or more inventory sources to multiple products at once using their SKUs, such as during data imports or mass inventory management operations.

It returns the count of successful assignments and throws validation exceptions for invalid data.

Public Methods

  • execute()