问题:创建代金券接口报错:“你配置的信息需要开通特殊权限”
解决方案:
首先这里的这个错误信息不是因为权限问题导致
接下来我们确认一下这几个参数:
1.stock_name:最多可填写9个字
2.max_coupons_per_user:单天发放个数上限不能为0
3. coupon_amount:10<=coupon_amount<=100000
4.available_time_after_receive:可用时间:相对时间,按分钟设置,是否1min<=分钟范围<=1440min
5.transaction_minimum校验规则:
a、使用门槛-券面额>=0.01(门槛要大于面额)
b、0.1元<=门槛<=100000
6.stock_type:目前只支持NORMAL
7.out_request_no:校验规则:不可以重复
8、开始时间结束时间控制在90天内
9、不可使用的时间参数不可以传递
另外参考一下我的创建示列,改为您自己的参数就可以创建:
长示列:
{
"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"
}
精选的标准是什么?
这样的文章就可以了么?
为什么还是不行呢
微信就是牛逼