The ConfirmOrderActor is used to confirm a customer’s order. As it does this, it re-prices the order one last time before the agent commits the order to ensure that all pricing is up to date. The path to this actor is: /atg/commerce/pricing/ConfirmOrderActor.
This actor contains the confirmOrder actor-chain.
Parameters: None
Confirm Customer’s Order Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" "http://localhost:8280/rest/model/atg/commerce/custsvc/order/ConfirmOrderActor/ confirmOrder"
The server response may be similar to the following:
{"order": {
"lastModifiedTime": 1363214893776,
"shippingGroupCount": 1,
"paymentGroupCount": 0,
"shippingGroups": [{
"specialInstructions": {},
"handlingInstructions": [],
"state": 0,
"locationId": null,
"shippingMethod": "hardgoodShippingGroup",
"id": "sg110016",
"trackingNumber": null,
"priceInfo": {
"amount": 0,
"currencyCode": "USD",
"amountIsFinal": false,
"discounted": true,
"rawShipping": 0
},
"description": "sg110016",
"actualShipDate": null,
"submittedDate": null,
"shipOnDate": null,
"shippingAddress": {
"middleName": null,
"lastName": null,
"ownerId": null,
"state": null,
"address1": null,
"address2": null,
"address3": null,
"companyName": null,
"suffix": null,
"city": null,
"country": null,
"id": null,
"postalCode": null,
"faxNumber": null,
"phoneNumber": null,
"county": null,
"email": null,
"prefix": null,
"firstName": null,
"jobTitle": null
},
"stateDetail": null
}],
"commerceItems": [{
"id": "ci10000002",
"productDisplayName": "Swiss Detail Clock",
"returnedQuantity": 0,
"priceInfo": {
"amount": 99,
"quantityDiscounted": 0,
"discountable": true,
"priceListId": "listPrices",
"onSale": false,
"rawTotalPrice": 99,
"currencyCode": "USD",
"amountIsFinal": false,
"listPrice": 99,
"discounted": false,
"currentPriceDetailsSorted": [{
"amount": 99,
"itemPriceInfo": null,
"currencyCode": "USD",
"tax": 0,
"range": {
"lowBound": 0,
"class": "atg.core.util.Range",
"highBound": 0,
"size": 1
},
"amountIsFinal": false,
"discounted": false,
"quantity": 1,
"detailedUnitPrice": 99
}],
"salePrice": 0
},
"catalogId": null,
"quantity": 1,
"catalogRefId": "xsku2011",
"catalogKey": "en_US",
"productId": "xprod2011"
}],
"id": "o110003",
"siteId": "homeSite",
"taxPriceInfo": {
"amount": 0,
"currencyCode": "USD",
"countyTax": 0,
"amountIsFinal": false,
"countryTax": 0,
"discounted": false,
"stateTax": 0,
"cityTax": 0,
"districtTax": 0
},
"priceInfo": {
"amount": 99,
"total": 99,
"shipping": 0,
"currencyCode": "USD",
"tax": 0,
"amountIsFinal": false,
"discounted": false,
"manualAdjustmentTotal": 0,
"rawSubtotal": 99,
"discountAmount": 0
},
"paymentGroups": [],
"profileId": "220022",
"creationTime": 1363213904193,
"relationships": [{
"id": "r100004",
"amount": 0,
"relationshipType": "SHIPPINGQUANTITY",
"returnedQuantity": 0,
"shippingGroupId": "sg110016",
"commerceItemId": "ci10000002",
"quantity": 1
}],
"totalCommerceItemCount": 1
}}
