收藏
回答

微信代金券创建批次

非必填未开发的字段,报错返回 映射到字段“当天开始时间”必填性规则校验失败,此字段为必填项,哪位可以帮忙解答

回答关注问题邀请回答
收藏

3 个回答

  • Memory
    Memory
    2022-01-19

    参考一下示例去创建

    长示例:
    
    {
    
       "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"
    
    }
    
    2022-01-19
    有用 1
    回复 1
    • momo
      momo
      2022-01-21
      可以了
      2022-01-21
      回复
  • peng
    peng
    2022-01-19

    整个请求body发出来看看

    2022-01-19
    有用 1
    回复 1
    • momo
      momo
      2022-01-21
      可以了
      2022-01-21
      回复
  • Bazinga
    Bazinga
    03-25

    代金券创建,

    03-25
    有用
    回复
登录 后发表内容