收藏
回答

API创建代金券遇到BUG,希望有技术能够帮忙解决一下问题?

API接口 https://api.mch.weixin.qq.com/v3/marketing/favor/coupon-stocks
body的数据:
{
    "stock_name": "3元代金券",
    "belong_merchant": "1556093731",
    "available_begin_time": "2021-12-14T10:00:00.120+08:00",
    "available_end_time": "2022-03-01T12:00:00.120+08:00",
    "stock_use_rule": {
        "max_coupons": 1000,
        "max_amount": 300000,
        "max_coupons_per_user": 1,
        "natural_person_limit": false,
        "prevent_api_abuse": false
    },
    "pattern_info": {
        "description": "优麦团全场通用券(不包含外卖订单)",
        "merchant_logo": "https://img.youmaituan.cn/youmaituan/images/20211213154601.png",
        "merchant_name": "优麦团",
        "background_color": "COLOR010"
    },
    "coupon_use_rule": {
        "fixed_normal_coupon": {
            "coupon_amount": 300,
            "transaction_minimum": 301
        },
        "coupon_available_time": {
            "available_time_after_receive" : 1440
        },
        "available_merchants": [
            "1556093731"
        ]
    },
    "no_cash": true,
    "stock_type": "NORMAL",
    "out_request_no": "2021121319165757985599"
}';

遇到的问题:
当“available_begin_time” 设置为小于当前时间时,报错信息“批次开始时间必须大于当前时间”,
而当 “available_begin_time” 设置为大于当前时间时,报错信息“活动未开始或已结束”。
回答关注问题邀请回答
收藏
登录 后发表内容