客户库存报表
字段可选
M:must 必填
O:optional 选填
C: conditional 某些条件下必选
客户库存日报
接口名
/datacenter/customer/daily
Method
GET
请求
date M datetime 查询日期
----- session -----
station_id M string 站点ID
响应
code M int 返回码,0表示成功,其他表示错误
msg M string 错误信息
data M string 返回json数据
[{
"customer_name" M string 客户名
"remain_pallet_count" M int 剩余库存板数
"remain_item_count" M int 剩余库存件数
"remain_ton_count" M int 剩余库存吨数
"customer_id" M string 客户ID
}]
示例
request
http://test.guanmai.cn:8888/datacenter/customer/daily?date=2016-11-01
response
{
"data": [{
"customer_name": "\u5f00\u6237\u4ebalsk",
"remain_pallet_count": 2,
"remain_item_count": 3,
"remain_ton_count": 0.03,
"customer_id": "K00060"
}],
"msg": "ok",
"code": 0
}
客户库存日报导出
接口名
/datacenter/customer/daily/export
Method
GET
请求
date M datetime 查询日期
----- session -----
station_id M string 站点ID
响应
xlsx文件
示例
request
http://test.guanmai.cn:8888/datacenter/customer/daily/export?date=2016-11-01
response
客户库存明细
接口名
/datacenter/customer/detail
Method
GET
请求
date M datetime 查询日期
----- session -----
station_id M string 站点ID
响应
code M int 返回码,0表示成功,其他表示错误
msg M string 错误信息
data M string 返回json数据
[{
"customer_id" M string 客户ID
"customer_name" M string 客户名
"batch_details": [{ M list 批次明细
"remain_pallet_count" M int 剩余库存板数
"name" M string 商品名
"remain_item_count" M int 剩余库存件数
"remain_ton_count" M float 剩余库存吨数
"batch_id" M string 批号
"ware_category_1_name" M string 仓库名
"ware_category_2_name" M string 库区名
"ware_category_3_name" M string 库位名
"ware_category_4_name" M string 通道名
"unit_weight" M float 件重
}],
"remain_item_count" M int 剩余库存件数
"remain_ton_count" M float 剩余库存吨数
"remain_pallet_count" M int 剩余库存板数
}]
示例
request
http://test.guanmai.cn:8888/datacenter/customer/detail?date=2016-09-20
response
{
"data": [{
"customer_name": "客户21",
"remain_pallet_count": 18,
"batch_details": [{
"remain_pallet_count": 1,
"name": "222",
"remain_item_count": 1,
"remain_ton_count": 0.002,
"batch_id": "100008-2Z3",
"ware_category_1_name": "mila-b",
"ware_category_3_name": "b12",
"unit_weight": 0.002,
"ware_category_4_name": "b121",
"ware_category_2_name": "b1"
}],
"remain_item_count": 137,
"remain_ton_count": 0.493,
"customer_id": "K00080"
}],
"msg": "ok",
"code": 0
}
客户库存明细导出
接口名
/datacenter/customer/detail/export
Method
GET
请求
date M datetime 查询日期
----- session -----
station_id M string 站点ID
响应
xlsx文件
示例
request
http://test.guanmai.cn:8888/datacenter/customer/detail/export?date=2016-09-20
response