API
WO02.海外仓总库存查询
更新时间: 2017-11-22 17:02:32 访问次数:652
接口说明

通过本接口用户可以查询指定海外仓的所有产品库存数量。

使用场景

用户可以查询指定万邑通海外仓的库存状态。

备注

请求说明
URL http://api.winit.com.cn/ADInterface/api
接口测试 http://erp.sandbox.winit.com.cn/ADInterface/api
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
warehouseID String(20) Y 用户需要查询库存所在的仓库ID。ID对照表见附件
pageSize Int N 每页显示数量/分页大小
pageNum Int N 页码/第几页
请求示例
{
    "action":"queryWarehouseStorage",
    "app_key":"rebecca",
    "data":{
        "warehouseID":1000008,
        "pageSize":20,
        "pageNum":1
    },
    "format":"json",
    "language":"zh_CN",
    "platform":"SELLERERP",
    "sign":"00000000000000000000000000000000",
    "sign_method":"md5",
    "timestamp":"2015-06-16 00:19:26",
    "version":"1.0"
}

                            
返回出参
名称 类型 必填 说明 示例
productName String() Y 用户在WINIT注册的产品名称 0
warehouseID String() Y 万邑通仓库ID
inventory String() Y 对应海外仓在库库存,即此时此刻海外仓内对应该产品的库存(注:此库存不是可用库存,因为该数量包括了已被下单但还未出库的产品)。
pipelineInventory String() Y 在途库存
reservedInventory String() Y 对应海外仓内已被预订下了海外仓出库单,但还未出库的产品。
productCode String() Y 产品编码
specification String() Y 规格(如果此产品注册时填写了该字段,那么此为必填项,否则您可能无法准确定位您注册的产品。如果您在注册产品时没有填写该字段,则在XML中去掉‘Specification’字段。)
qtyShareStorage String() Y 共享库存
qtySellHisOut String() Y 历史代销量
productWeight Numeric(10,2) Y 产品重量(kg)
productLength Numeric(10,2) Y 产品长度(cm)
productHeight Numeric(10,2) Y 产品高度(cm)
productWidth Numeric(10,2) Y 产品宽度(cm)

错误的返回结果:错误码,错误信息

返回示例
{
    "code":0,
    "data":{
        "currentPageNum":1,
        "currentPageSize":20,
        "total":194,
        "list":[
            {
                "reservedInventory":"10",
                "productCode":"30179",
                "inventory":"1204",
                "pipelineInventory":"0",
                "specification":null,
                "warehouseID":1000001,
                "productName":"低压 500LED 暖白串灯",
                "productWeight":1.2,
                "productLength":1.2,
                "productHeight":1.2,
                "productWidth":1.2
            },
            {
                "reservedInventory":"0",
                "productCode":"30321",
                "inventory":"28",
                "pipelineInventory":"0",
                "specification":null,
                "warehouseID":1000001,
                "productName":"太阳能 250LED 蓝色串灯",
                "productWeight":1.2,
                "productLength":1.2,
                "productHeight":1.2,
                "productWidth":1.2
            }
        ]
    },
    "msg":"成功"
}