Log in
Interface

IsProductSalableForRequestedQtyRequestInterface

Magento\InventorySalesApi\Api\Data\IsProductSalableForRequestedQtyRequestInterface

What it does

This interface defines the contract for a request object used to check if a product is available for sale in a specific quantity.

Developers use this when implementing inventory validation logic to verify if a requested quantity of a product (identified by SKU) can be sold, particularly during checkout or cart operations in Multi-Source Inventory (MSI) scenarios.

Public Methods

  • getSku()
  • getQty()
  • setExtensionAttributes()
  • getExtensionAttributes()