Tenant API - Moving Items Between Orders

Modified on Fri, 28 Feb at 12:11 PM

Moving Items Between Orders

The Tenant API allows you to move items from one order to another.


Endpoint

POST /api/v1/orders/{orderId}/items/move

  • {orderId} refers to the original order containing the items to be moved.

Request Parameters

ParameterTypeDescription
updateWeightExtraFeeBooleantrue: Recalculates the Total Weight system extra fee for both orders. false: Keeps the original order’s fee unchanged and sets it to 0 in the target order.
updateNumberOfPiecesExtraFeeBooleantrue: Recalculates the Number of Pieces system extra fee for both orders. false: Keeps the original order’s fee unchanged and sets it to 0 in the target order.
targetOrderIdStringThe Order ID where the items should be moved.
itemIdsArrayA list of Item IDs to transfer from the original order to the target order. Item IDs can be retrieved using the GET /api/v1/orders/{orderId}/items endpoint.

Example Request (cURL)

curl -X POST "https://your-api-url.com/api/v1/orders/{orderId}/items/move" \

     -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \

     -H "Content-Type: application/json" \

     -d '{

           "updateWeightExtraFee": true,

           "updateNumberOfPiecesExtraFee": true,

           "targetOrderId": "targetOrder123",

           "itemIds": ["itemid1", "itemid2"]

         }'



Items with a parcel type that is not in the new order parcel type schedule will not be editable. It can be deleted and exception codes can be added on the item.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article