Log in
Interface

ShippingAssignmentInterface

Magento\Sales\Api\Data\ShippingAssignmentInterface

What it does

This interface defines the contract for a shipping assignment in Magento 2, which groups order items with their shipping information and stock location.

Developers use this when working with order fulfillment, multi-source inventory, or custom shipping logic to manage which items are shipped together from which stock source.

It's particularly important in multi-warehouse scenarios where different items in an order may ship from different locations.

Public Methods

  • getShipping()
  • getItems()
  • getStockId()
  • setShipping()
  • setItems()
  • setStockId()
  • getExtensionAttributes()
  • setExtensionAttributes()