Skip to content

OrderItemList_Delete#


Description#

This function allows you to delete one or more items (products) from an order.

Request Body Parameters#

Parameter
Type Description
order_id Number Order ID
line_ids Array Array of line ids to delete

Response Parameters#

Parameter
Type Description
total Number Order Total after new item has been added
formatted_total String Currently Formatted Order Total

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "OrderItemList_Delete",
    "Order_Id": "200100",
    "line_ids": [153, 165]
}

Example Response#

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

Error Responses#

Error Code Error Message Error Description
MER-JSN-ORD-00025 Order number not found. Order number not found.
MER-JSN-00023 One or more parameters are invalid Missing line_ids parameter