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

approveOrder

Approves a pending order.

rejectOrder

Rejects a pending order.

The approveOrder actor-chain allows an agent or supervisor to approve a pending order.

Parameter

Description

approvalId

The ID of the approval.

newOrderId

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

approvalId

The ID of the approval.

newOrderId

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"

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