文档
测试

1.查询盘盈记录

POST
https://api.jd.com/routerjson

接口描述

开发者可调用此接口查询事业部在某段时间内的盘盈列表记录

jos官网说明

https://jos.jd.com/apilist?apiGroupId=138&apiId=13152&apiName=jingdong.eclp.checkstock.queryCheckStockProfit

数据格式及编码

``` Content_type:application/x-www-form-urlencoded Accept:application/json Charset:utf-8 ```

Params公共请求参数

参数名
类型
描述
必填
method
string
接口方法名。请填写"jingdong.eclp.checkstock.queryCheckStockProfit"
必填
app_key
string
开发者应用app_key
必填
access_token
string
京东账户授权访问令牌码
必填
timestamp
string
请求时间, 京东网关允许误差为10分钟。 示例:2020-09-23 12:23:45
必填
format
string
数据格式。固定值"json"
必填
v
string
接口版本号,固定值“2.0”
必填
sign_method
string
签名方式,可支持"md5"(默认),"hmacmd5","hmacsha256"
可选
sign
string
签名值。签名算法请参考https://easydoc.xyz/doc/85914950/QULSrw7u/EnnJTVOz
必填

Request Body应用级参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
360buy_param_json
string
业务系统参数
必填
deptNo
string
eclp系统--事业部编码
必填
checkStockNos
string
eclp系统--盘点单号
可选
pageNo
number
查询页码;默认第一页
必填
pageSize
number
每页盘点单个数;默认:50,最大50条
必填
startTime
string
开始日期;格式:yyyy-MM-dd HH:mm:ss
必填
endTime
string
结束日期;格式:yyyy-MM-dd HH:mm:ss
必填

Response响应参数

参数名
类型
描述
必填
jingdong_eclp_checkstock_queryCheckStockProfit_responce
object
数据字典
必填
code
string
网关状态码
必填
checkstockProfitList
array
业务系统盘盈单据数据列表
必填
deptNo
string
eclp--事业部编码
必填
checkStockNo
string
eclp系统--盘盈单据号
必填
warehouseId
string
eclp系统--盘盈库房编码
必填
details
array
盘盈商品明细数据列表
必填
goodsNo
string
eclp系统--商品编码
必填
goodsName
string
eclp系统--商品名称
必填
diffQty
int
盘盈数量
必填
oneLevelReason
string
差异一级原因
必填
twoLevelReason
string
差异二级原因;示例:1195||盘点差异
可选
threeLevelReason
string
差异三级原因;示例:1196||盘点
可选
productLevel
string
商品等级
可选
isvLotattrs
string
isv属性串(云仓专用)
可选
batchInfoMap
object
商品批属性信息
可选
production_date_lot
string
生产日期;格式:yyyy-MM-dd
可选
expiration_date_lot
string
到期日期;格式:yyyy-MM-dd
可选
isPo
string(200)
采购单号;
可选
isSupplier
string(200)
供应商;
可选
isRcvDate
date
收货日期;格式:yyyy-MM-dd
可选
isPLU
string(200)
plu管理批属性
可选
isLogisticCompany
string(200)
物流公司
可选
isOrigin
string(200)
原产地
可选
isLot
string(200)
批号
可选
isManufacturer
string(200)
制造商
可选
isPackageBatch
string(200)
包装批号
可选
isBoxNo
string(200)
箱号属性
可选
isNosale
string(200)
不可售属性
可选
gysgL
string(200)
供应商管理
可选
isStore
string(200)
门店
可选
createTime
int
创建时间(unix时间戳,单位秒)
必填

请求示例

`url示例:` --- > https://api.jd.com/routerjson?method=jingdong.eclp.checkstock.queryCheckStockProfit&app_key=**++{{app_key值}}++**&access_token=**++{{access_token值}}++**& timestamp=**++{{请求时间}}++**&format=json&v=2.0&sign_method=**md5**&sign=**++{{签名值}}++** `Request Body示例:` --- ```json 360buy_param_json={ "deptNo":"EBU4418046558657", "pageNo":"1", "pageSize":"50", "startTime":"2020-10-01", "endTime":"2020-10-14" } ```

响应示例

`成功示例:` --- ```json { "jingdong_eclp_checkstock_queryCheckStockProfit_responce": { "code": "0", "checkstockProfitList": [ { "deptNo": "EBU4418046558657", "createTime": 1602549554000, "checkStockNo": "CP0100342010130000001", "details": [ { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088301667", "diffQty": 400, "goodsName": "合生元派星较大婴儿配方奶粉 (400克)" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2022-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105971692", "diffQty": 20, "goodsName": "合生元可贝思婴儿配方羊奶粉400克 /罐" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2022-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105727373", "diffQty": 20, "goodsName": "合生元可贝思较大婴儿配方羊奶粉800克 /罐" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088301643", "diffQty": 20, "goodsName": "合生元金装妈妈配方奶粉" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2022-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105745595", "diffQty": 10, "goodsName": "合生元可贝思婴儿配方羊奶粉800克 /罐" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088302589", "diffQty": 10, "goodsName": "合生元阿尔法星学龄前儿童配方奶粉 900g" } ], "warehouseId": "110001869" }, { "deptNo": "EBU4418046558657", "createTime": 1602560277000, "checkStockNo": "CP0100342010130000003", "details": [ { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2022-01-23", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418120799209", "diffQty": 1, "goodsName": "合生元益生菌冲剂(儿童型)48袋装-20版" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105727469", "diffQty": 20, "goodsName": "合生元可贝思焖烧杯 /个" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088301655", "diffQty": 1, "goodsName": "合生元贝塔星学龄前儿童配方奶粉 900g" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088545176", "diffQty": 5, "goodsName": "合生元派星婴儿配方奶粉 (400克)" } ], "warehouseId": "110001869" }, { "deptNo": "EBU4418046558657", "createTime": 1602575571000, "checkStockNo": "CP0100342010130000004", "details": [ { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418097735871", "diffQty": 1, "goodsName": "Dodie轻薄柔护·日款婴儿纸尿裤试用装(L) 1片" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088545172", "diffQty": 3, "goodsName": "合生元派星幼儿配方奶粉 900g" } ], "warehouseId": "110001869" }, { "deptNo": "EBU4418046558657", "createTime": 1602513015000, "checkStockNo": "CP0100342010120000001", "details": [ { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2022-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105745982", "diffQty": 470, "goodsName": "合生元可贝思较大婴儿配方羊奶粉400克 /罐" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088302190", "diffQty": 40, "goodsName": "合生元派星较大婴儿配方奶粉 900g" } ], "warehouseId": "110001869" }, { "deptNo": "EBU4418046558657", "createTime": 1602554444000, "checkStockNo": "CP0100342010130000002", "details": [ { "oneLevelReason": "1193||库存差异", "productLevel": "100", "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105727469", "diffQty": 20, "goodsName": "合生元可贝思焖烧杯 /个" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088302190", "diffQty": 10, "goodsName": "合生元派星较大婴儿配方奶粉 900g" } ], "warehouseId": "110001869" }, { "deptNo": "EBU4418046558657", "createTime": 1602580558000, "checkStockNo": "CP0100342010130000005", "details": [ { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2022-01-28", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418118967788", "diffQty": 6, "goodsName": "合生元儿童益生菌粉48袋装-20版" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418105727469", "diffQty": 20, "goodsName": "合生元可贝思焖烧杯 /个" }, { "oneLevelReason": "1193||库存差异", "productLevel": "100", "batchInfoMap": { "expiration_date_lot": "2023-08-01", "production_date_lot": "2020-08-01" }, "threeLevelReason": "1196||盘点", "twoLevelReason": "1195||盘点差异", "goodsNo": "EMG4418088545176", "diffQty": 6, "goodsName": "合生元派星婴儿配方奶粉 (400克)" } ], "warehouseId": "110001869" } ] } } ``` `失败示例:` --- ```json { "jingdong_eclp_checkstock_queryCheckStockProfit_responce": { "code": "0", "checkstockProfitList": null } } ``` `异常示例:` --- ```json { "error_response": { "code": "null 3,107", "zh_desc": "盘点系统 参数:事业部编码,解析错误,请检查数据(解决方案参考:http://open.jd.com/home/home#/doc/common?listId=533)", "en_desc": "null 3,107(Solution reference:http://open.jd.com/home/home#/doc/common?listId=533)" } } ```