Log in
Interface

SalesChannelInterface

Magento\InventorySalesApi\Api\Data\SalesChannelInterface

What it does

This interface defines a sales channel entity that links inventory stocks to sales platforms like websites or customer groups.

Developers use this interface when implementing Multi-Source Inventory (MSI) functionality to manage how inventory is allocated and displayed across different sales channels.

The default channel type is 'website', allowing merchants to control inventory visibility per website in multi-store setups.

Public Methods

  • getType()
  • setType()
  • getCode()
  • setCode()
  • getExtensionAttributes()
  • setExtensionAttributes()