使用的是api-v3接口,商户创建代金券一直提示这个错误,不知道什么情况,没有文档能参考。有谁知道怎么解决的吗?
商户已经申请了免押金代金券权限,服务商也给商户授权了。
注意:belong_merchant和available_merchants我都是使用的一个商户号(非服务商),有谁创建成功的,是不是那个字段需要服务商号?
{
"stock_name": "测试代金券",
"comment": "测试批次001",
"belong_merchant": "商户号",
"available_begin_time": "2020-08-22T09:35:00.120+08:00",
"available_end_time": "2020-09-30T23:59:59.120+08:00",
"stock_use_rule": {
"max_coupons": 50,
"max_amount": 10000,
"max_coupons_per_user": 5,
"natural_person_limit": false,
"prevent_api_abuse": false
},
"pattern_info": {
"description": "001门店可用",
"merchant_name": "xxx店铺",
"background_color": "COLOR020"
},
"coupon_use_rule": {
"coupon_available_time": {
"fix_available_time": {
"available_week_day": [
1
],
"begin_time": 0,
"end_time ": 3600
},
"second_day_available": false,
"available_time_after_receive": 1440
},
"fixed_normal_coupon": {
"coupon_amount": 200,
"transaction_minimum": 100
},
"trade_type": ["MICROAPP"],
"combine_use": false,
"available_merchants": [
"商户号"
]
},
"no_cash": true,
"stock_type": "NORMAL",
"out_request_no": "100002322019090134234sfdd"
}
{
"code": "INVALID_REQUEST",
"message": "可用商户不符合规则,请检查"
}
https://developers.weixin.qq.com/community/develop/doc/000ee2e21fc9589eadcac25ea51000?_at=1598238610275 ,可参考这篇帖子。