小商店批量添加SKU失败,参数错了吗?
发布于 6 年前 作者 yiming 9900 次浏览 来自 问答

https://developers.weixin.qq.com/doc/ministore/minishopopencomponent/API/sku/batch_add_sku.html

15033000是一个已存在的spuId,通过添加spu接口加的商品

入参:

{

    "skus":

    [

        {

            "product_id"15033000,

            "out_sku_id""1024",

            "thumb_img""http://img10.360buyimg.com/n1/s450x450_jfs/t1/100778/17/13648/424215/5e590a40E2d68e774/e171d222a0c9b763.jpg",

            "sale_price"1300,

            "market_price"1500,

            "stock_num"100,

            "sku_code""A24525252",

            "barcode""13251454",

            "sku_attrs"

            [

                {

                    "attr_key""选择颜色",

                    "attr_value""红蓝主机"

                },

                {

                    "attr_key""选择套装",

                    "attr_value""主机+保护套"

                }

            ]

        }

    ]    

}

出参:

{

    "errcode"100020,

    "errmsg""Invalid input param rid: 6014019b-7a5b069c-17fa4809"

}

回到顶部