# Add user coupons
# Interface call specification
Http request method: POST
https://api.weixin.qq.com/shop/coupon/add_user_coupon?access_token=xxxxxxxxx
# Request Parameter Sample
{
"openid": "oIJ9d5Ad4JMhbybqJ3_J73LkR_I",
“user_coupon": {
"out_user_coupon_id": "user_coupon_id_1",
"out_coupon_id": "coupon_id_1",
"status": 100
},
"recv_time": 1628147893
}
# Return Package Example
{
"errcode": 0
}
# Request Parameter Dxplaination
parameter | type | Introductions |
---|---|---|
openid | string | openid |
user_coupon.out_user_coupon_id | string | Merchant User Coupon ID |
user_coupon.out_coupon_id | string | Merchant Side Coupon ID |
user_coupon.status | number | User Coupon Status |
recv_time | number | Time of collection |
# Enumerate - status
Enumeration value | Introductions |
---|---|
100 | In force |
101 | Expired |
102 | Already used |