# Update coupon inventory
# Instructions for Interface Calls
http请求方式:POST
https://api.weixin.qq.com/shop/coupon/update_coupon_stock?access_token=xxxxxxxxx
# Example of request parameters
{
"coupon_stock": {
"out_coupon_id": "coupon_id_1",
"stock_info": {
"issued_num": 60,
"receive_num": 40
}
}
}
# Examples of back-up
{
"errcode": 0
}
# Dxplaination of request parameters
参数 | type | Is it compulsory? | Introductions |
---|---|---|---|
coupon_stock.out_coupon_id | string | yes | Coupon Merchant Side ID |
coupon_stock.stock_info.issued_num | number | yes | Coupon surplus |
coupon_stock.stock_info.receive_num | number | yes | Number of coupons issued |