收藏
回答

创建代金券批次API,提示“活动未开始或已结束”

接口地址:https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks

参数:{"stock_name":"挂耳咖啡券","comment":"业务分类一","belong_merchant":"1605769974","available_begin_time":"2021-08-09T11:49:51.463+08:00","available_end_time":"2021-08-19T11:49:51.463+08:00","no_cash":false,"stock_type":"NORMAL","out_request_no":"Q0000000001","stock_use_rule":{"max_amount":500,"max_amount_by_day":100,"max_coupons":5,"max_coupons_per_user":60,"natural_person_limit":true,"prevent_api_abuse":true},"coupon_use_rule":{"available_merchants":["1605769974"],"combine_use":true,"fixed_normal_coupon":{"coupon_amount":100,"transaction_minimum":2000}},"pattern_info":{"description":"核销后不退、不找零;最终解释权归隅田川公司所有;","merchant_name":"隅田川购物"}}

返回结果:{"code":"REQUEST_BLOCKED","message":"活动未开始或已结束\n"}

Request-ID 08E7CAC2880610900718C6B6C05520C71D289D9C06-270079533

statusCode 403 FORBIDDEN

看了一次其他人的帖子,错误都是这个,但是按照他们说的解决方式都不可以,可以帮忙看一下吗?


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

1 个回答

  • Memory
    Memory
    2021-08-09

    创建时间不要取值当前时间

    长示列:
    {
       "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"
    }
    
    2021-08-09
    有用
    回复 3
    • 郝浩志
      郝浩志
      2021-08-09
      2021-08-09
      回复
    • Memory
      Memory
      2021-08-09回复郝浩志
      商户参考这两个示列改成自己的参数创建试下
      2021-08-09
      回复
    • Memory
      Memory
      2021-08-09回复郝浩志
      回复放不了那么长,我编辑了回复
      2021-08-09
      回复
登录 后发表内容