创建代金券批次API
返回值,{"code":"REQUEST_BLOCKED","message":"活动未开始或已结束\n"}
Request-ID: mp3sto
Request body:
{
"stock_name":"测试1016(满2-1)",
"comment":"创建人XXX",
"belong_merchant":"1491410352",
"available_begin_time":"2019-10-22T14:54:42Z",
"available_end_time":"2019-10-22T23:59:59Z",
"stock_use_rule":{
"max_amount":1000,
"max_coupons":10,
"max_amount_by_day":0,
"max_coupons_per_user":1,
"natural_person_limit":false,
"prevent_api_abuse":false
},
"pattern_info":{
"description":"使用说明1,使用说明2"
},
"coupon_use_rule":{
"coupon_available_time":{
"second_day_available":false
},
"fixed_normal_coupon":{
"coupon_amount":100,
"transaction_minimum":200
},
"available_items":[
"9310297009473",
"9310297009474"
],
"available_merchants":[
"1491410352"
],
"combine_use":false
},
"no_cash":false,
"stock_type":"NORMAL",
"out_request_no":"191016115001001A"
}
最新遇到bug,名称里面有微信立减金也不行
stock_name不能有测试字样
微信的一个bug把,正在修复中https://developers.weixin.qq.com/community/develop/doc/000c8c639446e0f98f4941ddd56c00?_at=1571730903243