Skip to content

CouponCustomer_Update_Assigned#


This function updates a customer’s coupon assignment.

Request Parameters#

Parameter
Type Description
Coupon_ID
Coupon_Code
Edit_Coupon
Number
String
String
ID of the coupon.
Coupon code
Coupon code
customer_id
edit_customer
customer_login
Number
String
String
The customer id
The customer login
The customer login
assigned Boolean Boolean value indicating if the coupon should be assigned to the customer.

Response Parameters#

Parameter
Type Description
success Boolean Indicates if the API request was successful.

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "CouponCustomer_Update_Assigned",
    "Coupon_ID": 1,
    "Customer_ID": 2,
    "Assigned": 1
}

Example Response#

{
    "success": 1
}

Error Responses#

Error Code Error Message Error Description
MER-CUS-JSN-00001 Customer not found Customer not found.