文档
测试

查询盘点单明细

POST
请求地址/router

系统相关界面

"界面路径:【仓储】----【盘点单管理】----【查询】"

请求地址

|环境|服务地址(HTTP/HTTPS)| |-|-| |V2正式环境| https://gw.superboss.cc/router| **2022年4月1日**以后申请的APP Key,统一使用V2正式环境的请求地址:**https://gw.superboss.cc/router**

公共参数

调用任何一个API都必须传入的参数,目前支持的公共参数有: | 参数名称 | 参数类型 | 是否必须 | 参数描述 | | --- | --- | --- | --- | | method | string | 是 | API接口名称 | | appKey | string | 是 | 分配给应用的AppKey | | timestamp | string | 是 | 时间戳,时区为GMT+8,例如:2020-09-21 16:58:00。API服务端允许客户端请求最大时间误差为10分钟 | | format | string | 否 | 响应格式。默认为json格式,可选值:json | | version | string | 是 | API协议版本 可选值:1.0 | | sign\_method | string | 否 | 签名的摘要算法(默认 hmac),可选值为:hmac,md5,hmac-sha256。 | | sign | string | 是 | 签名 | | session | string | 是 | 授权会话信息 (即access_token,由系统分配) |

请求头

参数名
类型
描述
必填
Content-Type
string
multipart/form-data
必填

API接口地址

参数名
类型
描述
必填
method
string
inventory.sheet.get
必填

请求参数

参数名
类型
描述
必填
code
string
示例:盘点单号
必填
pageNo
integer
示例:页码 取值范围:大于零的整数。默认值为1
可选
pageSize
integer
示例:每页条数 取值范围:大于零的整数;最大值:200;默认值:40
可选
startModified
string
示例:起始时间 格式:yyyy-MM-dd HH:mm:ss
可选
endModified
string
示例:结束时间 格式:yyyy-MM-dd HH:mm:ss
可选

请求示例

```json { "code": "string", "pageNo": "integer", "startModified": "string", "pageSize": "integer", "endModified": "string", "fields": "string" } ````

响应参数

参数名
类型
描述
total
string
总数
list
object
列表
sheetCode
string
示例:盘点单号
sysItemId
string
示例:商品信息
goodsSectionId
string
示例:货位id
createdId
string
示例:制单人
title
string
示例:名称
afterNum
string
示例:盘点后数量
matchStatus
string
示例:是否匹配(针对于盘点过程中需要绑定的商品) 012:未匹配/匹配/临时
stockRegionType
string
示例:库区类型(123:拣货/备货/次品)
taskCode
string
示例:盘点任务单号
differentStatus
string
示例:差异状态(123:未盘/有/无差异/异常(针对计算的时候,实时数据对不上的情况))
inventoryName
string
示例:盘点人
modified
string
示例:修改时间
createdName
string
示例:创建人
inventoryTime
string
示例:盘点时间
id
string
示例:id
stockRegionId
string
示例:库区id
goodsSectionCode
string
示例:货位编码/暂存区编码
beforeNum
string
示例:盘点前数量
containerType
string
示例:货位类型(01:货位/暂存区)
created
string
示例:创建时间
inventoryCount
string
示例:盘点次数
propertiesName
string
示例:规格
sysSkuId
string
示例:规格 id
assoGoodsSectionId
string
示例:货位库存id
companyId
string
示例:公司
inventoryId
string
示例:盘点人
outerId
string
示例:主商家编码/sku商家编码,优先sku商家编码
differentAmount
string
示例:差异金额
qualityType
string
示例:质量(01:次/良)
inventoryAgain
string
示例:是否有复盘任务
enableStatus
string
示例:状态(01:作废/正常)
differentNum
string
示例:盘盈盘亏

响应示例

```json { "total": 12345, "list": [ { "sheetCode": "zhangsan", "sysItemId": 12345, "goodsSectionId": 12345, "createdId": 12345, "title": "zhangsan", "afterNum": 12345, "matchStatus": 1, "stockRegionType": 1, "taskCode": "zhangsan", "differentStatus": 1, "inventoryName": "zhangsan", "modified": "@date", "createdName": "zhangsan", "inventoryTime": "@date", "id": 12345, "stockRegionId": 12345, "goodsSectionCode": "zhangsan", "beforeNum": 12345, "containerType": 1, "created": "@date", "inventoryCount": 1, "propertiesName": "zhangsan", "sysSkuId": 12345, "assoGoodsSectionId": 12345, "companyId": 12345, "inventoryId": 12345, "outerId": "zhangsan", "differentAmount": 10000, "qualityType": 1, "inventoryAgain": true, "enableStatus": 1, "differentNum": 12345 } ] } ```

异常示例

```` { "code": "25", "msg": "服务方法(inventory.sheet.get:1.0)的签名无效", "success": false, "trace_id": "3553483395423660" } ````

错误码解释

| 错误码 |错误信息|解决方案| |-|-|-| |25|服务方法(inventory.sheet.get:1.0)的签名无效|签名参数错误|