Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

地址: http://test.birdsystem.com/client/Container-Product/Get-Product-Stock-Info

只读,获取产品在所有站点的库存

参数

查询参数见操作数据

例如需要查询ID为1的产品库存时,添加URL参数:filter=[{"type":"numeric","comparison":"eq","value":1302332,"field":"product_id"}]

请求为:http://test.birdsystem.com/client/Container-Product/Get-Product-Stock-Info?filter=[{"type":"numeric","comparison":"eq","value":499154,"field":"product_id"}]

返回

{
    "total": 2,//产品sku种类数
    "data": [
        {
            "product_id": 499154,
            "quantity": "11",
            "company_id": 35,
            "company_site_name": "空运动态仓",
            "client_ref": "1-3786753345011"
           "is_dynamic_warehouse": 0//不为动态仓库
        },
        {
            "product_id": 499154,
            "quantity": "7",
            "company_id": 36,
            "company_site_name": "CN 东莞站",
            "client_ref": "1-3786753345011"
            "is_dynamic_warehouse": 1//为动态仓库
        },
        {
            "product_id": 212236,
            "quantity": "14",
            "company_id": "0",
            "company_site_name": "Frozen Stock",//冻结库存信息单独一个数据展示
            "client_ref": "983-123456"
        }
    ],
    "success": true,
    "refresh": false,
    "moduleName": "client"
}


  • No labels