Log in
Interface

ShippingAssignmentInterface

Magento\Sales\Api\Data\ShippingAssignmentInterface

What it does

This interface defines the structure for shipping assignments in Magento 2, which group order items together with their shipping information and associated stock location.

Developers use this when working with order fulfillment, multi-source inventory, or customizing how items are assigned to specific shipping methods and warehouse locations during order processing.

Public Methods

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