Log in
Interface

ShipmentPackageInterface

Magento\Sales\Api\Data\ShipmentPackageInterface

What it does

This interface defines the contract for shipment package data objects in Magento 2.

Developers use this when working with order shipments to represent individual packages containing products, allowing them to retrieve or set extension attributes for custom data storage.

It's primarily used in shipping operations, order fulfillment workflows, and when extending shipment functionality through plugins or custom modules.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()