Log in
Interface

ShipmentItemCreationInterface

Magento\Sales\Api\Data\ShipmentItemCreationInterface

What it does

This interface defines the structure for creating shipment items when processing orders in Magento 2.

Developers use this interface when building shipment creation functionality, particularly in custom shipping integrations or when programmatically creating shipments via the API.

It extends LineItemInterface to include order item details and provides extension attributes for custom data.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()