The CancelOrderActor
is used to cancel or delete the current order. This actor is located in: /atg/commerce/order/purchase/CancelOrderActor
.
This actor contains the following actor-chains:
Actor-Chain | Description |
---|---|
| Cancels or deletes the user’s current order. |
| Cancels or deletes an order. |
Cancel or Delete Current Order
The cancelCurrentOrder
actor-chain deletes the current order.
Parameters: None
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" "http://localhost:8280/rest/model/atg/commerce/order/purchase/CancelOrderActor/ cancelCurrentOrder"
Cancel or Delete a Specific Order
The cancelOrder
actor-chain deletes a specified order.
Parameter | Description |
---|---|
| Provides the ID of the order to cancel. |
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{\"orderIdToCancel\":\"o99240003\"}" "http://localhost:8280/rest/model/atg/ commerce/order/purchase/CancelOrderActor/cancelOrder"