How to create shipment using Rest API Magento 2?

Magento 2 is robust, scalable and multi-feature enable eCommerce platform. You can create Shipment of an Order Using a third party platform to Magento 2 backend by API request.
Using below payload you can create Shipment of an order using any third party platform to Magento 2. you Just need to pass below payload in your request with POST data. Check for creating an order using API,  Create order using rest api in Magento 2

Request:
{YOUR_URL}/rest/V1/order/{order_id}/ship

Type:
POST

Body:

Pass order item id is your order item’s id dont pass order id. Pass order_id in request Url. You can create multiple request using pass multi-array in the items array.

Response:
10 (new shipment id)

 

One Reply to “How to create shipment using Rest API Magento 2?”

Leave a Reply

Your email address will not be published. Required fields are marked *