Skip to content

OrderCoupon_Update_Assigned#


Description#

This function updates a coupon assigned to an order.

Request Body Parameters#

Parameter Type Description
Order_ID Number The ID of the order.
Coupon_ID Number The ID of the coupon.
Coupon_Code String The code of the coupon.
Assigned Boolean Whether the coupon should be assigned to the order.

Response Parameters#

Parameter Type Description
success Boolean Boolean value for if the request was successful.

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "OrderCoupon_Update_Assigned",
    "Order_ID": 1,
    "Coupon_Code": "SAVE10",
    "Assigned": true
}

Example Response#

{
    "success": 1
}