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:
{ "items": [ { "order_item_id": 10, "qty": 1 } ], "notify": true, "appendComment": true, "comment": { "extension_attributes": {}, "comment": "comment on shipment", "is_visible_on_front": 1 }, "tracks": [ { "track_number": "123456", "title": "fedex Shipment", "carrier_code": "fedex" } ] }
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)