Update wishlist With Multiple Items
Request Parameters:
This method is used to update cart with multiple items
URL : ../Api/Client/UpdateWishlistWithMultipleItems
Header:
Content-Type:application/json
Required Parameters :
Note:
- RemoveFromCart is for removing items from cart, use comma (‘,’) for remove multiple items from cart
- ItemId - is the id of cart items id and Quantity is new quantity
Case-1. Exception parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "",
"CurrencyId":"",
"LanguageId":"",
"RemoveFromCart":"",
"CartItems" :
[{
"ItemId":"12",
"Quantity":"1"
},
{
"ItemId":"13",
"Quantity":"2"
}]
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Incorrect Parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId":"1",
"LanguageId":"1",
"RemoveFromCart":"78",
"CartItems" :
[{
"ItemId":"18",
"Quantity":"1"
},
{
"ItemId":"19",
"Quantity":"2"
}]
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"OnePageCheckoutEnabled": true,
"ShowSku": true,
"ShowProductImages": 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",
"CustomProperties": {}
},
"ProductId": 18,
"ProductName": "HTC One M8 Android L 5.0 Lollipop",
"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": null,
"Id": 12,
"Message": null
},
{
"Sku": "LT_MIR_DC",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000039_leica-t-mirrorless-digital-camera_80.jpeg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000039_leica-t-mirrorless-digital-camera_100.jpeg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000039_leica-t-mirrorless-digital-camera.jpeg",
"Title": "Show details for Leica T Mirrorless Digital Camera",
"AlternateText": "Picture of Leica T Mirrorless Digital Camera",
"CustomProperties": {}
},
"ProductId": 16,
"ProductName": "Leica T Mirrorless Digital Camera",
"ProductSeName": "leica-t-mirrorless-digital-camera",
"UnitPrice": "$530.00",
"SubTotal": "$1,060.00",
"Discount": null,
"Quantity": 2,
"AllowedQuantities": [],
"AttributeInfo": "",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": false,
"Warnings": null,
"Id": 13,
"Message": null
}
],
"CheckoutAttributeInfo": "Gift wrapping: No",
"CheckoutAttributes": [
{
"Name": "Gift wrapping",
"DefaultValue": null,
"TextPrompt": null,
"IsRequired": true,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": 1,
"Values": [
{
"Name": "Gift wrapping",
"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": null
},
"GiftCardBox": {
"Display": true,
"Message": null
},
"OrderReviewData": null,
"DisplayTaxShippingInfo": false,
"TaxRates": null,
"DisplayTax": false,
"DisplayTaxRates": false,
"Tax": null,
"IsApplied": false,
"Message": "Cart is successfully updated. Failed update to item ids: 18,19",
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce"
},
"ValidationMessage": [],
"ErrorMessage": null
}
Case-3. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId":"1",
"LanguageId":"1",
"RemoveFromCart":"78",
"CartItems" :
[{
"ItemId":"12",
"Quantity":"1"
},
{
"ItemId":"13",
"Quantity":"2"
}]
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"OnePageCheckoutEnabled": true,
"ShowSku": true,
"ShowProductImages": 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",
"CustomProperties": {}
},
"ProductId": 18,
"ProductName": "HTC One M8 Android L 5.0 Lollipop",
"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": 12,
"Message": null
},
{
"Sku": "LT_MIR_DC",
"Picture": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000039_leica-t-mirrorless-digital-camera_80.jpeg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000039_leica-t-mirrorless-digital-camera_100.jpeg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000039_leica-t-mirrorless-digital-camera.jpeg",
"Title": "Show details for Leica T Mirrorless Digital Camera",
"AlternateText": "Picture of Leica T Mirrorless Digital Camera",
"CustomProperties": {}
},
"ProductId": 16,
"ProductName": "Leica T Mirrorless Digital Camera",
"ProductSeName": "leica-t-mirrorless-digital-camera",
"UnitPrice": "$530.00",
"SubTotal": "$1,060.00",
"Discount": null,
"Quantity": 2,
"AllowedQuantities": [],
"AttributeInfo": "",
"RecurringInfo": null,
"RentalInfo": null,
"AllowItemEditing": false,
"Warnings": [],
"Id": 13,
"Message": null
}
],
"CheckoutAttributeInfo": "Gift wrapping: No",
"CheckoutAttributes": [
{
"Name": "Gift wrapping",
"DefaultValue": null,
"TextPrompt": null,
"IsRequired": true,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": 1,
"Values": [
{
"Name": "Gift wrapping",
"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": null
},
"GiftCardBox": {
"Display": true,
"Message": null
},
"OrderReviewData": null,
"DisplayTaxShippingInfo": false,
"TaxRates": null,
"DisplayTax": false,
"DisplayTaxRates": false,
"Tax": null,
"IsApplied": false,
"Message": "Wishlist is successfully updated. Failed update to item ids: ",
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce"
},
"ValidationMessage": [],
"ErrorMessage": null
}