# Update the coupon

# Dxplaination of Interface Call Request

After the coupon is created, status = 1, can be transferred to 2,4,5

Http request method: POST
https://api.weixin.qq.com/product/coupon/update_status?access_token=xxxxxxxxx 

# Example of request parameters

{
    "coupon_id" :  111,
    "status": 2
}

# Examples of back-up

{
    "errcode": 0,
    "errmsg": "ok"
}

# Dxplaination of request parameters

parameter type Is it compulsory? Introductions
coupon_id number yes Coupon ID
status number yes Coupon Status

# Dxplaination of callback parameters

parameter type Introductions
Error code number Error code
errmsg string Error message

# Enumeration - status

The enumeration value describe
2 Take effect
4 It has been invalidated.
5 delete

# Return code

Return code Error Type
-1 System exceptions
-2 Token too long
9401020 The parameter is incorrect.