- 创建代金券批次API,返回活动未开始或已结束
创建代金券批次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" }
2019-10-21 - 创建代金券批次API调用出错
创建代金券批次API https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks Request-ID: dmfqt4 返回:{"code":"PARAM_ERROR","message":"参数“订单优惠标记”是必填项"} 参数: {"stock_name":"测试1016(满2-1)","comment":"创建","belong_merchant":"1491410352","available_begin_time":"2019-10-16T15:48:52Z","available_end_time":"2019-10-26T15:48:52Z","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":{"available_time_after_receive":1440},"fixed_normal_coupon":{"coupon_amount":100,"transaction_minimum":200},"combine_use":false,"available_items":["9310297009473","9310297009474"],"available_merchants":["1491410352","1491820102"]},"no_cash":false,"singleitem":true,"stock_type":"NORMAL","out_request_no":"191016115001001"} Request-ID: r3syz9 返回:{"code":"PARAM_ERROR","message":"无法将传入参数“订单优惠标记”转换为string/bytes类型。"} 参数: {"stock_name":"测试1016(满2-1)","comment":"创建","belong_merchant":"1491410352","available_begin_time":"2019-10-16T15:53:13Z","available_end_time":"2019-10-26T15:53:13Z","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":{"available_time_after_receive":1440},"fixed_normal_coupon":{"coupon_amount":100,"transaction_minimum":200},"goods_tag":[],"combine_use":false,"available_items":["9310297009473","9310297009474"],"available_merchants":["1491410352","1491820102"]},"no_cash":false,"singleitem":true,"stock_type":"NORMAL","out_request_no":"191016115001001"}
2019-10-16