货位进出记录查询
请求地址
环境 | 服务地址(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
goods.section.in.out.record.query
必填
请求参数
全部展开
参数名
类型
描述
必填
pageNo
Integer
当前页
必填
pageSize
Integer
每页数,默认40
必填
orderNumber
string
单据编号
operateStartTime
string
操作开始时间 格式为:yyyy-MM-dd HH:mm:ss
operateEndTime
string
操作结束时间 格式为:yyyy-MM-dd HH:mm:ss
请求示例
示例一:
{
"pageNo": 1,
"pageSize": 40
}
响应参数
全部展开
参数名
类型
描述
必填
traceId
string
示例:3118655604459561094
必填
hasNext
boolean
示例:true 是否有下一页
必填
list
array
货位进出记录
id
long
记录id,唯一
sysItemId
long
系统商品id
sysSkuId
long
系统规格id
outerId
string
商家编码
warehouseId
long
仓库id
warehouseName
string
仓库名称
goodsSectionId
long
货位id
goodsSectionCode
string
货位编码
orderNumber
string
单据号
operateTime
date
操作时间
stockChange
int
数量
qualityType
boolean
质量类型true:良品,false:次品
batchNo
string
批次号
productTime
date
生产日期
expireDate
date
到期日期
boxCode
string
箱码
type
int
操作类型
typeName
string
操作类型名称
content
string
操作详情
staffName
string
操作人名称
响应示例
{
"traceId": "4718011452490990110",
"hasNext": true,
"list": [
{
"goodsSectionCode": "FF-y-y-1-1",
"orderNumber": "DC5151945389570050_8",
"sysItemId": 620052882924032,
"operateTime": 1736428612000,
"typeName": "调拨出库",
"goodsSectionId": 1810156,
"type": 19,
"warehouseName": "默认仓库",
"content": "操作前数量:866,操作后数量:806",
"sysSkuId": 0,
"warehouseId": 69583,
"staffName": "超级管理员",
"outerId": "发票单品06",
"qualityType": true,
"id": 15658363,
"stockChange": -60
}
]
}
异常示例
{
"code": "25",
"msg": "服务方法(item.single.get:1.0)的签名无效",
"success": false,
"trace_id": "3553483395423660"
}
错误码解释
错误码 | 错误信息 | 解决方案 |
---|---|---|
content1 | content2 | content3 |