获取单个商品下的所有库存信息

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

请求数据样例

{
    "item_code":"00003554543900_00000000000381"
}
数据类型 请求字段 必填 说明
string item_code 商品编码

回包数据样例

{
    "errcode":0,
    "errmsg":"",
    "stock_info":[
            "item_code":"00003554543900_00000000000381
            "sku_code":"00003554543900_10000000000382",
            "merchant_sku_code":"",
            "stock_attr":"2000049:6000520",
            "stock_number":10,
            "stock_price":100,
            "market_price":0,
            "update_time":0
        },
        {
            "item_code":"00003554543900_00000000000381",
            "sku_code":"00003554543900_10000000000383",
            "merchant_sku_code":"",
            "stock_attr":"2000049:6000532",
            "stock_number":20,
            "stock_price":100,
            "market_price":0,
            "update_time":0
        }
    ]
}
字段类型 返回字段 说明
uint32 errcode 错误码
string errmsg 错误信息
BrandItemStockBo stock_info 商品库存列表,字段详情请查看商品信息结构体说明