Log in
Interface

ShipmentItemInterface

Magento\Sales\Api\Data\ShipmentItemInterface

What it does

This interface defines the contract for shipment items in Magento 2, representing individual products included in a delivery package.

Developers use this when programmatically creating, retrieving, or modifying shipment items through the Sales API, accessing product details like SKU, price, weight, and quantity for shipped orders.

It extends both LineItemInterface and ExtensibleDataInterface to provide standardized data access and allow for custom attributes.

Public Methods

  • getAdditionalData()
  • getDescription()
  • getEntityId()
  • setEntityId()
  • getName()
  • getParentId()
  • getPrice()
  • getProductId()
  • getRowTotal()
  • getSku()
  • getWeight()
  • setParentId()
  • setRowTotal()
  • setPrice()
  • setWeight()
  • setProductId()
  • setAdditionalData()
  • setDescription()
  • setName()
  • setSku()
  • getExtensionAttributes()
  • setExtensionAttributes()