Log in
Model

ShipOrder

Magento\Sales\Model\ShipOrder

What it does

This class handles the complete process of creating and saving shipments for orders in Magento 2.

Developers use this class when they need to programmatically ship an order with specific items, tracking information, comments, and packages while ensuring proper validation and order state transitions.

It provides a transactional approach using order mutex to prevent concurrent shipment creation issues.

Public Methods

  • execute()