Is it possible to add in shipping and tracking information for an order using the Magento 2 REST API without putting in the item information. We always ship the entire order and based on our warehouse setup, it's very difficult to specify the items. Any help is greatly appreciated.


This answer is for Magento 1.7 and 1.9, but at least with those it ships everything if the product array is empty array(). Might be worth trying with Magento 2.

$result = $client->salesOrderShipmentCreate($session, $order->getIncrementId(), array(), 'automatic send');
| improve this answer | |
  • do you have a solution that works for magento 2 via Rest API? thanks – Kris Wen Apr 10 '19 at 7:17

For Magento 2 API Shipment tracking you can use Shipment tracking repository interface. A shipment is a delivery package that contains products.

Method POST /V1/shipment/track

Body data

  "orderId": int,
  "createdAt": "string",
  "entityId": 0,
  "parentId": 0,
  "updatedAt": "string",
  "weight": 0,
  "qty": 0,
  "description": "string",
  "extensionAttributes": {},
  "trackNumber": "string",
  "title": "string",
  "carrierCode": "string"

To delete that specific tracking reference; Deletes a specified shipment track by ID.

Method DELETE /V1/shipment/track/{id}

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.