Deletes the specified cart line. Introduced in v2.21
| Method | DeleteCartLine |
The request body is of type DeleteCartLine.
| Name | Description | Data Type |
|---|---|---|
| ID | The identifier of the cart detail line. | xml:int |
// Example: // Delete the cart line having an ID of 1003 MakeAJAXCall("Cart.DeleteCartLine", { ID: 1003 }, console.log)
The response body is of type DeleteCartLineResponse.
| Name | Description | Data Type |
|---|---|---|
| DeleteCartLineResult | A string value containing a JSON object containing the results of the cart, after the requested delete is performed.
{
"Data": {
"ItemCount": 1,
"SubTotalAmount": 430.15,
"Weight": 12.0,
"Volume": 0.3,
"LastUpdated": "2022-03-29T16:06:49.86",
"SubTotal": "$430.15 ",
"Detail": [{
"Row": 1,
"ID": 1007,
"Item_ID": 579,
"Parent_ID": -1,
"StockCode": "A100",
"Description": "15 Speed Mountain Bike Boys",
"Quantity": 1,
"UOM": "EA",
"UnitType": 1,
"DefaultPriceAmount": 560.0,
"CustomerPriceAmount": 559.0,
"DiscountPriceAmount": 477.945,
"WebPriceAmount": 430.1505,
"TotalPriceAmount": 430.15,
"UnitWeight": 10.0,
"UnitVolume": 0.3,
"IsBackordered": false,
"Warehouse": "",
"LastUpdated": "2022-03-29T16:40:37.333",
"URL": "/ECommerce/product/a100/15-speed-mountain-bike-boys",
"Photo": "/Ecommerce/site/images/Photo1/A100.jpg",
"DefaultPrice": "$560.00 ",
"CustomerPrice": "$559.00 ",
"DiscountPrice": "$477.945 ",
"WebPrice": "$430.151 ",
"TotalPrice": "$430.15 "
}]
},
"Result": {
"Success": true,
"Message": "There are 1 items in the Shopping Cart.",
"ElapsedTime": "37 ms"
}
}
| xml:string |