Skip to content

Runtime_BasketItem_Delete#


Description#

This function deletes an item in a basket. Item must be specified using one of Group_ID or Line_ID, but not both.

Request Parameters#

Parameter
Type Description
line_id
group_id
Number
Number
The id number of the basket line id you wish to delete
The id of the basket group_id you wish to delete
Session_ID String The Basket Session ID you want to delete items from

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful
total Number Updated basket total price
subtotal Number Updated basket subtotal price
formatted_total String Currency formatted basket total price
formatted_subtotal String Currency formatted basket subtotal price

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "Runtime_BasketItem_Delete",
    "Session_Type": "runtime",
    "Session_ID": "b4ddb93804b45e1e3c9b22165d7fe1f2",
    "group_id": "20"
}

Example Response#

{
    "success": 1,
    "data": {
        "total": 0.0,
        "subtotal": 0.0,
        "formatted_total": "$0.00",
        "formatted_subtotal": "$0.00"
    }
}