文档
测试

扫码接口

POST
http://scm.gkgd.com/api/v1/ScanCode

接口描述

扫描仓位码、包装码入库接口(包装码缓存时间为3小时,过期后自动失效,需要重新扫描)(已经缓存的包装码再次扫描入库会提示,已扫描无法重复入库)

请求头

参数名
类型
描述
必填
access-token
string
登陆成功返回的token
必填

请求参数

参数名
类型
描述
必填
code
string
仓位码或者包装码
必填
type
int
1 仓位码 2 包装码
必填
warehousing_id
int
入库单主键(获取入库单详情接口获得)
必填

响应参数

参数名
类型
描述
必填
status
int
状态吗 200 成功 0 失败
必填
message
string
提示 (状态码等于0时直接显示此字段即可)
必填
result
json
type = 2 时 返回json数据
必填
order
int
包装序号
必填
unit
string
包装单位名称
必填
fit
json
必填
id
int
fit 主键
必填
total_actual_num
int
已缓存产品数
必填
total_actual_unit_str
string
已扫包装单位
必填
result
json
type = 1 时返回json数据
必填
position_id
int
仓位主键
必填
position_name
string
仓位名称
必填
storehouse_name
string
该仓位所属仓库名称
必填

说明 / 示例

{ "status": 200, "message": "缓存成功", "result": { "order": 1, "unit": "站板", "fit": { "id": 17, "total_actual_num": 6, "total_actual_unit_str": "1站板 " } } }