# Issue coupons
# Interface call request specification
Http request method: POST
https://api.weixin.qq.com/product/coupon/push?access_token=xxxxxxxxx
# Request Parameter Sample
{
"openid": "xxxx",
"coupon_id": 123
}
# Return Package Example
{
"errcode": 0,
"errmsg": "ok"
}
# Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
---|---|---|---|
openid | string | yes | User openid |
coupon_id | number | yes | Coupon ID, available from Get Coupons |
# Return parameter specification
parameter | type | Introductions |
---|---|---|
Errcode | number | Error code |
errmsg | string | Error message |
# Return code
Return code | Type of error |
---|---|
-1 | System exception |
-2 | Token is too long |
9401020 | Wrong parameter |
109100 | Coupon status is wrong |
109101 | Insufficient inventory of coupons |
109102 | The coupon hasn't expired yet. |
109103 | Coupon Limited |