文档
测试

盘点单库存盘点

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.batch.update
必填

请求参数

参数名
类型
描述
必填
details
string
通过json格式传入 [{"key":"details","value":"[{\"outerId\":\"63598963823\",\n\"goodsSectionCode\":\"FF-43-A-A-431\", \"sysItemId\":\"512315531713024\",\n\"sysSkuId\":\"512315531778560\",\n\"changeNum\":\"15\"}]","type":"default","enabled":true}]
必填
outerId
string
最小粒度商家编码
必填
goodsSectionCode
string
货位编码
必填
changeNum
string
盘点数量
必填
sysItemId
string
商品ID
可选
sysSkuId
string
商品SKUID
可选
warehouseId
long
仓库id
必填

请求示例

示例一: [{"outerId":"63598963823", "goodsSectionCode":"FF-43-A-A-431", "changeNum":"15"}] 每个都是必填!

响应示例

```` { true; } ````

异常示例

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

错误码解释

| 错误码 |错误信息|解决方案| |-|-|-| |content1|content2|content3|