Skip to content
On this page

4.8 获取商品库存

接口说明:

MethodURLContentType
GET/api/restful/products/areastocksapplication/json

URL参数说明:

参数类型说明是否必须长度描述
skusstring必须50多个商品编号; 支持批量,以英文逗号分隔
areastring必须10省编号_市编号_区编号
customer_codestring非必须50客户编码,不传的情况下默认返回全部

返回结果说明:

参数类型说明描述
areastring地址
descstring描述(有货、缺货)
numdouble库存数量
skustring商品编号
customer_codestring客户编码,*默认全部

请求参数示例:

/api/restful/products/areastocks?skus=1049204,105019&area=*&customer_code=106234

返回数据示例:

json
{
    "result": [{
        "sku": "1049204",
        "num": 9999,
        "area": "*",
        "desc": "有货",
        "customer_code": "106234"
    }, {
        "sku": "105019",
        "num": 9999,
        "area": "*",
        "desc": "有货",
        "customer_code": "106234"
    }],
    "success": true,
    "errormsg": "",
    "errorcode": "0",
    "requestId": "8d98d82c2de740cb92b56f4e5f15049a"
}