收藏
回答

自定义版交易组件及开放接口 /服务端接口 /优惠券接口 /添加优惠券?

https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/coupon/add_coupon.html

上述提供的请求示例不完整,

一直提示

{

    "errcode": 1090049,

    "errmsg": "请求缺少discount_info rid: 614b0998-7e379eab-4f9632ad"

}


有没有详细新版的文档地址

{

    "coupon": {

        "out_coupon_id": "1",

        "type": 1,

        "promote_type": 4,

        "coupon_info": {

            "name": "示例优惠券",

            "promote_info": {

                "promote_type": 4,

                "finder": {

                    "nickname": "视频号昵称"

                }

            },

            "discount_info": {

                "discount_condition": {

                    "product_cnt": 2,

                    "product_price": 5000,

                    "out_product_ids": [

                        "3",

                        "4"

                    ],

                    "tradein_info": {

                        "out_product_id": "product_id_5",

                        "price": 10000

                    },

                    "buyget_info": {

                        "buy_out_product_id": "product_id_1",

                        "buy_product_cnt": 3,

                        "get_out_product_id": "product_id_2",

                        "get_product_cnt": 2131241242

                    }

                },

                "discount_num": 9800,

                "discount_fee": "6400"

            },

            "receive_info": {

                "start_time": "1632294547",

                "end_time": "1663830547",

                "limit_num_one_person": 10,

                "total_num": 100

            },

            "valid_info": {

                "valid_type": 1,

                "start_time": "1632294547",

                "end_time": "1663830547"

            }

        }

    }

}

提示 {

    "errcode": 1090011,

    "errmsg": "商品券缺少商品 rid: 614bed69-27b0aef7-0459cbc2"

}


最后一次编辑于  2021-09-23
回答关注问题邀请回答
收藏

2 个回答

  • 云间凡尘
    云间凡尘
    2022-10-13

    请问这个问题是否解决了

    2022-10-13
    有用
    回复
  • 有赞
    有赞
    2021-09-23

    缺少优惠信息,例如优惠条件啊,优惠金额啊啥的

    2021-09-23
    有用
    回复 1
    • Sinker.Yin
      Sinker.Yin
      发表于移动端
      2021-09-23
      就是给出来,完整的示例贴进去请求。就报缺少字段。下
      2021-09-23
      回复
登录 后发表内容