Delete Shipment item record by item id Magento 2.

The shipment item record will be available on the Magento 2 sales_shipment_item table.

The table contains the list of shipment item records with the product item level. When you delete the record, a record will be deleted from the sales_shipment_item table. Continue reading “Delete Shipment item record by item id Magento 2.”

How to get Shipment item collection by shipment item id Magento 2?

You can retrieve the shipment item data by shipment item id using Magento 2 by Shipment Item RepositoryInterface.

Used Shipment item repository interface to get shipment data:
Magento\Sales\Api\ShipmentItemRepositoryInterface Continue reading “How to get Shipment item collection by shipment item id Magento 2?”

How to Get Shipment item collection by order item id Magento 2?

You can retrieve partial shipment items collection by Order item id using Magento 2 with the search criteria Builder interface.

This is the rare condition where you need to fetch the list of shipment items from the Order item id. Continue reading “How to Get Shipment item collection by order item id Magento 2?”