收藏
回答

自定义交易组件添加优惠券报商品券缺少商品的错误如何处理?

{
    coupon: {
        out_coupon_id: "328", 
        type: 2, 
        promote_type: 4, 
        coupon_info: {
            name: "xxx", 
            promote_info: {
                promote_type: 4, 
                finder: {
                    nickname: "xxxx"
                }
            }, 
            discount_info: {
                discount_condition: {
                    product_cnt: 1, 
                    product_price: 14800, 
                    out_product_ids: [
                        "230"
                    ]
                }, 
                tradein_info: {
                    out_product_id: null, 
                    price: 0
                }, 
                buyget_info: {
                    buy_out_product_id: null, 
                    buy_product_cnt: 0, 
                    get_out_product_id: null, 
                    get_product_cnt: 0
                }, 
                discount_num: 0, 
                discount_fee: 3000
            }, 
            receive_info: {
                start_time: 1653010211, 
                end_time: 1684546211, 
                limit_num_one_person: 1, 
                total_num: 99999
            }, 
            valid_info: {
                valid_type: 2, 
                valid_day_num: 30, 
                valid_second: 0, 
                start_time: 1624261226, 
                end_time: null
            }
        }
    }
}

添加优惠券,参数如上。

报以下错误:

{ errcode: 1090011, errmsg: '商品券缺少商品 rid: 62870bbf-1a09adfb-029b0d56' }

可明明有传

discount_condition: {
                    product_cnt: 1, 
                    product_price: 14800, 
                    out_product_ids: [
                        "230"
                    ]
                }, 

为啥会报缺少商品呢?


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

1 个回答

  • 巍
    2022-05-26

    我也碰到这问题了,请问如何解决?

    2022-05-26
    有用
    回复
登录 后发表内容