Log in
Interface

SourceDeductionRequestInterface

Magento\InventorySourceDeductionApi\Model\SourceDeductionRequestInterface

What it does

This interface defines a request object for deducting inventory quantities from a specific source in Magento's Multi-Source Inventory (MSI) system.

Developers use this when implementing inventory deduction logic during order placement or fulfillment, providing the source code, items to deduct, sales channel, and sales event context needed to reduce stock quantities from a warehouse or pickup location.

Public Methods

  • getSourceCode()
  • getItems()
  • getSalesChannel()
  • getSalesEvent()