Log in
Interface

ShipmentPackageCreationInterface

Magento\Sales\Api\Data\ShipmentPackageCreationInterface

What it does

This interface defines the contract for creating shipment packages in Magento 2.

Developers use this when programmatically creating shipping packages for orders, allowing them to define package details and extend functionality through extension attributes.

It's commonly used in custom shipping integrations or when building order fulfillment workflows.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()