Log in
Repository

SourceRepositoryInterface

Magento\InventoryApi\Api\SourceRepositoryInterface

What it does

This repository interface provides methods to manage inventory sources in Magento's Multi-Source Inventory (MSI) system.

Developers use this to save, retrieve individual sources by code, or fetch a list of sources with optional search criteria.

Note that sources cannot be deleted (only disabled) to preserve historical data like order information.

Public Methods

  • save()
  • get()
  • getList()