Request Parameters:


This method is used to update cart with multiple items


URL : ../Api/Client/UpdateCartWithMultipleItems


Header:

Content-Type:application/json


Parameter:
{
        "ApiSecretKey":"d101g114q119n106g97y111j112d104",
      "CustomerGUID":"F1F13527-BA8E-4C5A-ACA2-9EC3D78B3FF4",
        "StoreId": "1",
        "CurrencyId":"1",
        "LanguageId":"1",
        "RemoveFromCart":"78",
        "CartItems" :
       [{
            "ItemId":"76",
          "Quantity":"1"
            },
            {
          "ItemId":"77",
          "Quantity":"2"
          }]
}

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


Response:


{
   "OnePageCheckoutEnabled": true,
   "ShowSku": true,
   "ShowProductImages": true,
   "IsEditable": true,
   "Items": [
       {
           "Sku": "COMP_CUST",
           "Picture": {
               "ImageUrl": "http://localhost:89/images/thumbs/0000020_build-your-own-computer_80.jpeg",
               "ThumbImageUrl": "http://localhost:89/images/thumbs/0000020_build-your-own-computer_100.jpeg",
               "FullSizeImageUrl": "http://localhost:89/images/thumbs/0000020_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",
           "ProductSeName": "build-your-own-computer",
           "UnitPrice": "$1,265.00",
           "SubTotal": "$1,265.00",
           "Discount": "$50.00",
           "Quantity": 1,
           "AllowedQuantities": [],
           "AttributeInfo": "Processor: 2.5 GHz Intel Pentium Dual-Core E2200 [+$15.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": 76,
           "Message": null
       },
       {
           "Sku": "AD_C80_RS",
           "Picture": {
               "ImageUrl": "http://localhost:89/images/thumbs/0000053_adidas-consortium-campus-80s-running-shoes_80.jpg",
               "ThumbImageUrl": "http://localhost:89/images/thumbs/0000053_adidas-consortium-campus-80s-running-shoes_100.jpg",
               "FullSizeImageUrl": "http://localhost:89/images/thumbs/0000053_adidas-consortium-campus-80s-running-shoes.jpg",
               "Title": "Show details for adidas Consortium Campus 80s Running Shoes",
               "AlternateText": "Picture of adidas Consortium Campus 80s Running Shoes",
               "Form": null,
               "CustomProperties": {}
           },
           "ProductId": 25,
           "ProductName": "adidas Consortium Campus 80s Running Shoes",
           "ProductSeName": "adidas-consortium-campus-80s-running-shoes",
           "UnitPrice": "$27.56",
           "SubTotal": "$55.12",
           "Discount": null,
           "Quantity": 2,
           "AllowedQuantities": [],
           "AttributeInfo": "Size: 8<br />Color: Red",
           "RecurringInfo": null,
           "RentalInfo": null,
           "AllowItemEditing": true,
           "Warnings": [],
           "Id": 77,
           "Message": null
       }
   ],
   "CheckoutAttributeInfo": "Gift wrapping: No",
   "CheckoutAttributes": [
       {
           "Name": "Gift wrapping",
           "DefaultValue": null,
           "TextPrompt": null,
           "IsRequired": false,
           "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": "DIS20"
   },
   "GiftCardBox": {
       "Display": true,
       "Message": null
   },
   "OrderReviewData": null,
   "DisplayTaxShippingInfo": false,
   "TaxRates": null,
   "DisplayTax": false,
   "DisplayTaxRates": false,
   "Tax": null,
   "IsApplied": false,
   "Message": "Cart is successfully updated.",
   "CustomerGuid": "f1f13527-ba8e-4c5a-aca2-9ec3d78b3ff4"
}