The OrderLookupActor is used to look up the current user’s orders by order or user ID. The path to this actor is: /atg/commerce/order/OrderLookupActor.
This actor contains the orderLookup actor-chain:
Parameter | Description |
|---|---|
| Identifies the order ID to use when looking up the order. |
Lookup Order By Order ID Example
curl -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
\"orderId\" : \"o220001\"}" http://localhost:8280/rest/model/atg/commerce/
order/OrderLookupActor/orderLookupA typical server response may resemble the following:
{"result": {
"id": "o120001",
"priceInfo": {
"amount": 109.2,
"total": 109.2,
"shipping": 0,
"currencyCode": "USD",
"tax": 0,
"rawSubtotal": 119.2,
"discountAmount": 10
},
"commerceItems": [{
"id": "ci11000001",
"productDisplayName": "Hubbard Chair",
"priceInfo": {
"amount": 119.2,
"currencyCode": "USD",
"currentPriceDetailsSorted": [{
"amount": 119.2,
"currencyCode": "USD",
"quantity": 1,
"detailedUnitPrice": 119.2
}]
},
"quantity": 1,
"catalogRefId": "xsku2126",
"productId": "xprod2126"
}],
"totalCommerceItemCount": 1
}}
