批量修改商品库存图片

接口调用基本参数 参数
协议 https
http请求方式 POST
请求URL https://api.weixin.qq.com/mall/updatestockpicture?access_token=ACCESS_TOKEN
POST数据格式 json

请求数据样例

{
    "item_code": "00003563372839_00000000000223",
    "stock_pics": [
        {
            "attr_key_id": 1223,
            "attr_val_id": 2345,
            "stock_pic_info": [
                {
                    "type": 1,
                    "pic_url": "http://www.qq.com/1",
                    "index": 1,
                    "width": 120,
                    "height": 120
                },
                {
                    "type": 2,
                    "pic_url": "http://www.qq.com/2",
                    "index": 2,
                    "width": 240,
                    "height": 240
                }
            ]
        }
    ]
}
数据类型 请求字段 必填 说明
string item_code 商品编码
StockPicturesBo stock_pics 该商品对应的所有库存图片信息,字段详情请查看商品信息结构体说明

回包数据样例

{
    "errcode":0,
    "errmsg":""
}
字段类型 返回字段 说明
uint32 errcode 错误码
string errmsg 错误信息