Log in
Interface

ProductSalableResultInterface

Magento\InventorySalesApi\Api\Data\ProductSalableResultInterface

What it does

This interface defines the contract for returning product salability check results in Magento's Multi-Source Inventory system.

Developers use this to retrieve whether a product can be sold for a requested quantity, along with any error messages explaining why it cannot be sold if applicable.

It's typically returned by the IsProductSalableForRequestedQtyInterface service when validating inventory availability.

Public Methods

  • isSalable()
  • getErrors()
  • getExtensionAttributes()
  • setExtensionAttributes()