收藏
回答

创建商家券API中异常提示信息太过模糊

创建商家券对接中 无法确定异常信息

响应数据:

{"code":"PARAM_ERROR","message":"请求中含有未在API文档中定义的参数"}

请求数据:

{"stock_name":"一张测试券","belong_merchant":"1508816771","comment":null,"goods_name":"普通商品","stock_type":"NORMAL","coupon_use_rule":{"coupon_available_time":{"available_begin_time":"2020-03-31T16:01:13.087+08:00","available_end_time":"2020-04-03T16:01:13.087+08:00","available_day_after_receive":1,"available_week":null,"irregulary_avaliable_time":[]},"fixed_normal_coupon":{"discount_amount":5000,"transaction_minimum":100000},"discount_coupon":null,"exchange_coupon":null,"use_method":"PAYMENT_CODE","mini_programs_appid":null,"mini_programs_path":null},"stock_send_rule":{"max_amount":10000000,"max_coupons":100,"max_coupons_per_user":10,"max_amount_by_day":50000,"max_coupons_by_day":100,"natural_person_limit":false,"prevent_api_abuse":false,"transferable":false,"shareable":false},"out_request_no":"100001123","custom_entrance":null,"display_pattern_info":null,"coupon_code_mode":"WECHATPAY_MODE"}


Fidder4:

请求数据已经在三确认过,全部包含在文档,并不存在API文档没有的的参数

文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/busifavor/chapter3_1.shtml

麻烦各位了

最后一次编辑于  03-31
回答关注问题邀请回答
收藏

1 个回答

  • Ming
    Ming
    04-01

    解决了,解决方法是为空的对象不传递

    如这两个

    04-01
    有用
    回复
登录 后发表内容
问题标签