Log in
Model

SourceDeductionRequest

Magento\InventorySourceDeductionApi\Model\SourceDeductionRequest

What it does

This class represents a request to deduct inventory quantities from a specific source/warehouse in Magento's Multi-Source Inventory (MSI) system.

Developers use it to encapsulate all necessary information (source code, items to deduct, sales channel, and sales event) when processing inventory deductions, typically during order placement or shipment creation.

Public Methods

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