The removeAndAddItemToOrder actor-chain is used to removes items from the order and then adds it to the order.
Parameter | Description |
|---|---|
| The catalog reference ID. |
| The ID of the product. |
| The quantity of the product. |
| The ID given to the item, or to a list of commerce items, that should be removed from the order. |
Move an Item to the Customer’s Cart Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
\"catalogRefIds\":\"xsku1043\",\"productId\": \"xprod1015\",\"quantity\": 1,
\"removalCommerceIds\":\"ci116000002\"}" "http://localhost:8280/rest/model/atg/
commerce/custsvc/order/CartModifierActor/removeAndAddItemToOrder"
