StockRepositoryInterface
Magento\InventoryApi\Api\StockRepositoryInterface
What it does
This repository interface provides a standardized API for managing Stock entities in Magento's Multi-Source Inventory (MSI) system.
Developers use this to save, retrieve, search, and delete stock records, which represent inventory aggregation points that can be assigned to sales channels.
It follows the repository pattern to abstract data access logic and serves as the main entry point for stock management operations.
Public Methods
- save()
- get()
- getList()
- deleteById()