The ApproveOrderActor
is used to approve or reject any order that is waiting for authorization. This actor is located at /atg/commerce/custsvc/approvals/order/ApproveOrderActor
, and contains the following actor-chains:
Actor-Chain | Description |
---|---|
| Approves a pending order. |
| Rejects a pending order. |
The approveOrder
actor-chain allows an agent or supervisor to approve a pending order.
Parameter | Description |
---|---|
| The ID of the approval. |
| The ID of the order that has been approved. |
Approve Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{\"newOrderId\": \"o650008\",\"approvalId\": \"400003\"}" "http://localhost:8180 /rest/model/atg/commerce/custsvc/approvals/order/ApproveOrderActor/approveOrder"
The rejectOrder
actor-chain allows an agent or supervisor to reject a pending order.
Parameter | Description |
---|---|
| The ID of the approval. |
| The ID of the order that has been rejected. |
Reject Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"newOrderId\": \"o650008\",\"approvalId\": \"400003\"}" "http://localhost:8180 /rest/model/atg/commerce/custsvc/approbals/order/ApproveOrderActor/rejectOrder"