Log in
Interface

ShipOrderInterface

Magento\Sales\Api\ShipOrderInterface

What it does

This interface defines a contract for creating shipments in Magento 2.

Developers use this to programmatically create shipments for orders, allowing them to specify items to ship, tracking information, packages, comments, and notification preferences.

It's the recommended service contract approach for shipment creation instead of directly manipulating models.

Public Methods

  • execute()