The ShoppingCartActor contains two chains, the detailed actor-chain that is used to view or review a cart or order, and the summary actor-chain that provides a summary of the shopping cart. This actor is located at /atg/commerce/.
Parameters: None
View Shopping Cart Example
The following example shows a detailed request:
curl -v -b customer_cookies.txt -H "Content-Type: application/json" "http://localhost:8280/rest/model/atg/commerce/ShoppingCartActor/detailed"
The server response may be similar to the following:
{"order": {
"lastModifiedTime": 1363293103777,
"shippingGroupCount": 1,
"paymentGroupCount": 1,
"shippingGroups": [{
"specialInstructions": {},
"handlingInstructions": [],
"state": 0,
"locationId": null,
"shippingMethod": "Ground",
"id": "sg140009",
"trackingNumber": null,
"priceInfo": null,
"description": "sg140009",
"actualShipDate": null,
"submittedDate": null,
"shipOnDate": null,
"shippingAddress": {
"middleName": null,
"lastName": "Smith",
"ownerId": null,
"state": "MA",
"address1": "1 Main Street",
"address2": null,
"address3": null,
"companyName": null,
"suffix": null,
"city": "Cambridge",
"country": "USA",
"id": null,
"postalCode": "02046",
"faxNumber": null,
"phoneNumber": "6176378687",
"county": null,
"email": "jsmith@example.com",
"prefix": null,
"firstName": "John",
"jobTitle": null
},
"stateDetail": null
}],
"commerceItems": [{
"id": "ci11000002",
"productDisplayName": "Roseanna Storage Ottoman",
"returnedQuantity": 0,
"priceInfo": {
"amount": 159.2,
"quantityDiscounted": 1,
"discountable": true,
"priceListId": "listPrices",
"onSale": false,
"rawTotalPrice": 199,
"currencyCode": "USD",
"amountIsFinal": false,
"listPrice": 199,
"discounted": true,
"currentPriceDetailsSorted": [{
"amount": 159.2,
"itemPriceInfo": null,
"currencyCode": "USD",
"tax": 0,
"range": {
"lowBound": 0,
"class": "atg.core.util.Range",
"highBound": 0,
"size": 1
},
"amountIsFinal": false,
"discounted": true,
"quantity": 1,
"detailedUnitPrice": 159.2
}],
"salePrice": 0
},
"catalogId": null,
"quantity": 1,
"catalogRefId": "xsku2034",
"catalogKey": "en_US",
"productId": "xprod2034"
}],
"id": "o140002",
"siteId": "homeSite",
"taxPriceInfo": null,
"priceInfo": {
"amount": 149.2,
"total": 149.2,
"shipping": 0,
"currencyCode": "USD",
"tax": 0,
"amountIsFinal": false,
"discounted": true,
"manualAdjustmentTotal": 0,
"rawSubtotal": 159.2,
"discountAmount": 10
},
"paymentGroups": [{
"amount": 0,
"currencyCode": null,
"expirationMonth": null,
"expirationYear": null,
"paymentId": "pg140003",
"creditCardNumber": null,
"expirationDayOfMonth": null,
"billingAddress": {
"middleName": null,
"lastName": "Smith",
"ownerId": null,
"state": "MA",
"address1": "1 Main Street",
"address2": null,
"address3": null,
"companyName": null,
"suffix": null,
"city": "Cambridge",
"country": "USA",
"id": null,
"postalCode": "02046",
"faxNumber": null,
"phoneNumber": "6176378687",
"county": null,
"email": "jsmith@example.com",
"prefix": null,
"firstName": "John",
"jobTitle": null
},
"creditCardType": "Visa",
"orderId": null
}],
"profileId": "230000",
"creationTime": 1363291121877,
"relationships": [{
"id": "r110006",
"amount": 0,
"relationshipType": "SHIPPINGQUANTITY",
"returnedQuantity": 0,
"shippingGroupId": "sg140009",
"commerceItemId": "ci11000002",
"quantity": 1
}],
"totalCommerceItemCount": 1
}}
