查询入库单状态
1、功能名称:查询入库单状态
2、功能描述:查询入库单状态
3、请求地址:https://ssl.glitzcloud.com/agent/v1/asn/storage/getstatus
测试地址:http://gztest.glitzcloud.com/agent/v1/asn/storage/getstatus
4、请求方式:POST
5、请求参数
| 名称 | 类型 | 必填 | 示例值 | 更多示例 | 描述 |
|---|---|---|---|---|---|
| store_name | String | 是 | The Warehouse USA | 仓库名称 | |
| storage_sn | String | 是 | GCI17060500002 | GCI17060500002,GCI17060500012 | 入库单号,多个用英文逗号隔开 |
6、请求示例
array(
'format'=>'json',
'apikey'=>'85082f5f62a811e684f500163e06045f',
'randoms'=>1234,
'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d',
'store_name'=>'The Warehouse USA',
'storage_sn'=>'GCI17060500002,GCI17060500012',
);
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
{
"status": 200,
"reqMsg": "ok",
"result": [
{
"sn": "GCI06272200012",
"status": "Reconciled", // ASN状态
"receive_time": "2022-08-09 22:39:25",
"isputawayfinish": "1", // 是否上架完成
"info": [
{
"product_sn": "6941327147792",
"exp_piece_qty": "120",
"act_piece_qty": "120",
"good_qty": "120",
"bad_qty": 0
},
{
"product_sn": "6952658875919",
"exp_piece_qty": "192", // 预报件数
"act_piece_qty": "192", // 实收件数(不含超收)
"good_qty": "192", // 实收好货件数(不含超收)
"bad_qty": 0, // 实收坏货件数(不含超收)
"over_receive": {
"carton_num": "5", // 超收箱数
"num": "40", // 超收总件数
"good_num": "40", // 超收好货件数
"bad_num": "0" // 超收坏货件数
}
}
]
}
]
}
错误时的返回JSON数据包如下:
{"status":2027,"reqMsg":"ASN is compulsory","result":[]}
9、返回参数说明:
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| sn | String | GCI16091800002 | 入库单号 |
| status | String | Reconciled | 入库单状态 Pending:待入库 Received:已收货 Cancelled:已取消 Reconciled:已完成 To-Audit:待审核 Unapproved:审核不通过 |
| receive_time | String | 2017-07-01 12:10:11 | 收货时间 |
| sku | String | sku918 | 产品编号 |
| exp_piece_qty | Integer | 10 | 产品预报数量 |
| act_piece_qty | Integer | 9 | 产品实际数量 |
| good_qty | Integer | 5 | 产品合格数量 |
| bad_qty | Integer | 4 | 产品不合格数量 |
