The removeAndAddItemToOrder
actor-chain is used to remove items from the order and then add it back to the order.
Parameter | Description |
---|---|
| The catalog reference ID. |
| The ID of the product. |
| The quantity of the product. |
| The list of commerce IDs to remove. |
Move Item to the Cart Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{ \"catalogRefIds\":\"xsku1043\",\"productId\": \"xprod1015\",\"quantity\": 1, \"removalCommerceIds\":\"ci116000002\"}" "http://localhost:8280/rest/model/atg/ commerce/order/purchase/CartModifierActor/removeAndAddItemToOrder"