The CancelOrderActor is used to cancel or delete an order. This actor is located in: /atg/commerce/order/purchase/CancelOrderActor.

This actor contains the following actor-chains:

Actor-Chain

Description

cancelCurrentOrder

Cancels or deletes the user’s current order.

cancelOrder

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

orderIdToCancel

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"

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices