库龄查询

1、功能名称:库龄查询

2、功能描述:库龄查询

3、请求地址:https://ssl.glitzcloud.com/agent/v1/skus/inventory/stockAge

      测试地址:http://gztest.glitzcloud.com/agent/v1/skus/inventory/stockAge

4、请求方式:POST

5、请求参数

名称 类型 必填 示例值 描述
store_name String The Warehouse USA 仓库名称

6、请求示例

           array(
                    'format'=>'json',
                    'apikey'=>'85082f5f62a811e684f500163e06045f',
                    'randoms'=>1234,
                    'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d',
                    'store_name' => 'TWUSA01',
             );
        

7、返回格式:JSON

8、返回示例:

正确时的返回JSON数据包如下:

            {
                "status": 200,
                "reqMsg": "ok",
                "result": {
                    "Amy001": [ // SKU名称
                        {
                            "age": 1530, // 库龄
                            "count": 130 // 数量
                        }
                    ],
                    "Amy002": [
                        {
                            "age": 1566,
                            "count": 1
                        },
                        {
                            "age": 763,
                            "count": 30
                        }
                    ]
                }
            }
        

错误时的返回JSON数据包如下:

            {
                "status": 2002,
                "reqMsg": "Invalid warehouse",
                "result": []
            }
        

9、返回参数说明:

参数 类型 示例值 描述
age String 32 库龄(天)
count Integer 110 数量

全局返回码说明