Get Shopping Cart
Request Parameters:
Get Shopping cart items.
URL: ../Api/Client/Cart
Header:
Content-Type:application/json
Required Parameters :
Case-1. Exception parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "",
"CurrencyId":"",
"LanguageId":"1"
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId":"1",
"LanguageId":"1"
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"OnePageCheckoutEnabled": true,
"ShowSku": true,
"ShowProductImages": true,
"ShowEstimateShipping": true,
"IsEditable": true,
"Items": [
{
"Sku": "M8_HTC_5L",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000041_htc-one-m8-android-l-50-lollipop_80.jpeg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000041_htc-one-m8-android-l-50-lollipop_100.jpeg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000041_htc-one-m8-android-l-50-lollipop.jpeg",
"Title": "Show details for HTC One M8 Android L 5.0 Lollipop",
"AlternateText": "Picture of HTC One M8 Android L 5.0 Lollipop",
"Form": null,
"CustomProperties": {}
},
"ProductId": 18,
"ProductName": "HTC One M8 Android L 5.0 Lollipop",
"ProductType": "SimpleProduct",
"ProductSeName": "htc-one-m8-android-l-50-lollipop",
"UnitPrice": "$245.00",
"SubTotal": "$245.00",
"Discount": null,
"Quantity": 1,
"AllowedQuantities": [],
"AttributeInfo": "",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": false,
"Warnings": [],
"Id": 2057,
"Message": null,
"MinAllowedQuantity": 1,
"MaxAllowedQuantity": 10000
},
{
"Sku": "RB_AVR_SG",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000064_ray-ban-aviator-sunglasses_80.jpg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000064_ray-ban-aviator-sunglasses_100.jpg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000064_ray-ban-aviator-sunglasses.jpg",
"Title": "Show details for Ray Ban Aviator Sunglasses",
"AlternateText": "Picture of Ray Ban Aviator Sunglasses",
"Form": null,
"CustomProperties": {}
},
"ProductId": 33,
"ProductName": "Ray Ban Aviator Sunglasses",
"ProductType": "SimpleProduct",
"ProductSeName": "ray-ban-aviator-sunglasses",
"UnitPrice": "$25.00",
"SubTotal": "$50.00",
"Discount": null,
"Quantity": 2,
"AllowedQuantities": [],
"AttributeInfo": "",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": false,
"Warnings": [],
"Id": 2058,
"Message": null,
"MinAllowedQuantity": 1,
"MaxAllowedQuantity": 10000
},
{
"Sku": "FL_GIRL_B",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000072_flower-girl-bracelet_80.jpg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000072_flower-girl-bracelet_100.jpg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000072_flower-girl-bracelet.jpg",
"Title": "Show details for Flower Girl Bracelet",
"AlternateText": "Picture of Flower Girl Bracelet",
"Form": null,
"CustomProperties": {}
},
"ProductId": 41,
"ProductName": "Flower Girl Bracelet",
"ProductType": "SimpleProduct",
"ProductSeName": "flower-girl-bracelet",
"UnitPrice": "$360.00",
"SubTotal": "$360.00",
"Discount": null,
"Quantity": 1,
"AllowedQuantities": [],
"AttributeInfo": "",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": false,
"Warnings": [],
"Id": 2059,
"Message": null,
"MinAllowedQuantity": 1,
"MaxAllowedQuantity": 10000
},
{
"Sku": "COMP_CUST",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000021_build-your-own-computer_80.jpeg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000021_build-your-own-computer_100.jpeg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000021_build-your-own-computer.jpeg",
"Title": "Show details for Build your own computer",
"AlternateText": "Picture of Build your own computer",
"Form": null,
"CustomProperties": {}
},
"ProductId": 1,
"ProductName": "Build your own computer",
"ProductType": "SimpleProduct",
"ProductSeName": "build-your-own-computer",
"UnitPrice": "$3,100.00",
"SubTotal": "$6,200.00",
"Discount": null,
"Quantity": 2,
"AllowedQuantities": [],
"AttributeInfo": "Processor: Test String [+$1,800.00]<br />RAM: 2 GB<br />HDD: 320 GB<br />OS: Vista Home [+$50.00]<br />Software: Microsoft Office [+$50.00]",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": true,
"Warnings": [],
"Id": 2062,
"Message": null,
"MinAllowedQuantity": 1,
"MaxAllowedQuantity": 10000
}
],
"CheckoutAttributeInfo": "Gift wrapping: No",
"CheckoutAttributes": [
{
"Name": "Gift wrapping",
"DefaultValue": null,
"TextPrompt": null,
"IsRequired": false,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "DropdownList",
"Values": [
{
"Name": "No",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"IsPreSelected": true,
"Message": null,
"Id": 1
},
{
"Name": "Yes",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$10.00",
"IsPreSelected": false,
"Message": null,
"Id": 2
}
],
"Message": null,
"Id": 1
}
],
"Warnings": [],
"MinOrderSubtotalWarning": null,
"TermsOfServiceOnShoppingCartPage": true,
"TermsOfServiceOnOrderConfirmPage": false,
"DiscountBox": {
"Display": true,
"Message": null,
"CurrentCode": "456,123"
},
"GiftCardBox": {
"Display": true,
"Message": null
},
"OrderReviewData": null,
"DisplayTaxShippingInfo": false,
"TaxRates": null,
"DisplayTax": false,
"DisplayTaxRates": false,
"Tax": null,
"IsApplied": false,
"Message": null,
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce"
},
"ValidationMessage": [],
"ErrorMessage": null
}