接口地址:https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks,
参数:{"stock_name":"挂耳咖啡券","comment":"业务分类一","belong_merchant":"1605769974","available_begin_time":"2021-08-09T11:49:51.463+08:00","available_end_time":"2021-08-19T11:49:51.463+08:00","no_cash":false,"stock_type":"NORMAL","out_request_no":"Q0000000001","stock_use_rule":{"max_amount":500,"max_amount_by_day":100,"max_coupons":5,"max_coupons_per_user":60,"natural_person_limit":true,"prevent_api_abuse":true},"coupon_use_rule":{"available_merchants":["1605769974"],"combine_use":true,"fixed_normal_coupon":{"coupon_amount":100,"transaction_minimum":2000}},"pattern_info":{"description":"核销后不退、不找零;最终解释权归隅田川公司所有;","merchant_name":"隅田川购物"}}
返回结果:{"code":"REQUEST_BLOCKED","message":"活动未开始或已结束\n"}
Request-ID 08E7CAC2880610900718C6B6C05520C71D289D9C06-270079533
statusCode 403 FORBIDDEN
看了一次其他人的帖子,错误都是这个,但是按照他们说的解决方式都不可以,可以帮忙看一下吗?
创建时间不要取值当前时间
长示列: { "stock_name": "耗子尾汁", "comment": "零售批次", "belong_merchant": "2480255141", "available_begin_time": "2020-12-1T15:40:35.120+08:00", "available_end_time": "2020-12-30T15:40:36.120+08:00", "stock_use_rule": { "max_coupons": 10, "max_amount": 5000, "max_amount_by_day": 500, "max_coupons_per_user": 1, "natural_person_limit": true, "prevent_api_abuse": true }, "pattern_info": { "description": "微信支付营销代金券", "merchant_logo": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0", "merchant_name": "耗子尾汁", "background_color": "COLOR060", "coupon_image": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0" }, "coupon_use_rule": { "fixed_normal_coupon": { "coupon_amount": 500, "transaction_minimum": 1000 }, "goods_tag": [ "my-test" ], "combine_use": true, "available_merchants": [ "2480255141" ], "limit_pay" :["CBHB_DEBIT"] }, "no_cash": false, "stock_type": "NORMAL", "out_request_no": "123333333-111100" } 短示列: { "stock_name": "GD测批次4", "comment": "验证活动", "belong_merchant": "xxxxxx", "available_begin_time": "2020-02-13T18:00:00.120+08:00", "available_end_time": "2020-02-20T23:59:59.120+08:00", "stock_use_rule": { "max_coupons": 10, "max_amount": 100, "max_coupons_per_user": 10, "natural_person_limit": false, "prevent_api_abuse": false }, "coupon_use_rule": { "fixed_normal_coupon": { "coupon_amount": 10, "transaction_minimum": 10 }, "available_merchants": [ "209784532", "221003827" ] }, "no_cash": false, "stock_type": "NORMAL", "out_request_no": "207662xxxxxx" }
{"stock_name":"挂耳咖啡券","comment":"业务分类一","belong_merchant":"1605769974","available_begin_time":"2021-08-10T17:04:42.806+08:00","available_end_time":"2021-08-20T17:04:42.806+08:00","no_cash":false,"stock_type":"NORMAL","out_request_no":"Q0000000001","stock_use_rule":{"max_amount":500,"max_amount_by_day":100,"max_coupons":5,"max_coupons_per_user":60,"natural_person_limit":true,"prevent_api_abuse":true},"coupon_use_rule":{"available_merchants":["1605769974"],"combine_use":true,"fixed_normal_coupon":{"coupon_amount":100,"transaction_minimum":2000}},"pattern_info":{"description":"核销后不退、不找零;最终解释权归隅田川公司所有;","merchant_name":"隅田川购物"}}
开始时间修改为明天的也是一样的错误
{"stock_name":"挂耳咖啡券","comment":"业务分类一","belong_merchant":"1605769974","available_begin_time":"2021-08-10T17:04:42.806+08:00","available_end_time":"2021-08-20T17:04:42.806+08:00","no_cash":false,"stock_type":"NORMAL","out_request_no":"Q0000000001","stock_use_rule":{"max_amount":500,"max_amount_by_day":100,"max_coupons":5,"max_coupons_per_user":60,"natural_person_limit":true,"prevent_api_abuse":true},"coupon_use_rule":{"available_merchants":["1605769974"],"combine_use":true,"fixed_normal_coupon":{"coupon_amount":100,"transaction_minimum":2000}},"pattern_info":{"description":"核销后不退、不找零;最终解释权归隅田川公司所有;","merchant_name":"隅田川购物"}}
长示列:
{
"stock_name": "耗子尾汁",
"comment": "零售批次",
"belong_merchant": "2480255141",
"available_begin_time": "2020-12-1T15:40:35.120+08:00",
"available_end_time": "2020-12-30T15:40:36.120+08:00",
"stock_use_rule": {
"max_coupons": 10,
"max_amount": 5000,
"max_amount_by_day": 500,
"max_coupons_per_user": 1,
"natural_person_limit": true,
"prevent_api_abuse": true
},
"pattern_info": {
"description": "微信支付营销代金券",
"merchant_logo": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0",
"merchant_name": "耗子尾汁",
"background_color": "COLOR060",
"coupon_image": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0"
},
"coupon_use_rule": {
"fixed_normal_coupon": {
"coupon_amount": 500,
},