查询出库单状态
1、功能名称:查询出库单状态
2、功能描述:查询出库单状态
3、请求地址:https://ssl.glitzcloud.com/agent/v1/orders/order/status
测试地址:http://gztest.glitzcloud.com/agent/v1/orders/order/status
4、请求方式:POST
5、请求参数
| 名称 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| store_name | String | 是 | The Warehouse USA | 仓库名称 |
| order_sn | String | 是 | G201608150001 | 平台店铺订单编号 |
6、请求示例
array(
'format'=>'json',
'apikey'=>'85082f5f62a811e684f500163e06045f',
'randoms'=>1234,
'sign'=>'656d6fbe6b7dec6c2e77ffe27f04bd6d',
'store_name' => 'The Warehouse USA',
'order_sn' => 'G201608150001',
);
7、返回格式:JSON
8、返回示例:
正确时的返回JSON数据包如下:
// 待出库
{
"status":200,
"reqMsg":"ok",
"result":[
{
"sn":"20170703001",
"status":"Pending",
"outbound_time":"2017-07-01 12:10:11",
"track_num":"1Z7498950398981808",
"trouble_sign":""
}
]
}
// 已出库
{
"status": 200,
"reqMsg": "ok",
"result": [
{
"sn": "121702",
"status": "Shipped",
"outbound_time": "2021-12-17 11:48:25",
"track_num": "1Z3Y17R40399474839",
"outflow_sn": "GCO12172100002",
"extend": {
"trackNum": {
"type": 1, // 2子订单
"content": {
"outflow_sn": "GCO12172100002",
"track_num": "1Z3Y17R40399474839",
"outflow_time": "2021-12-17 11:48:25",
"weight": "0.4536",
"length": "28.4100",
"width": "15.2500",
"height": "14.7400",
"carrier": "UPS",
"is_remote_area": false,
"ups_zone": "2",
"delivery": "UPS Ground",
"package": "Your Packaging"
}
}, // 物流信息
"storageCharge": {
"lydia110307": {
"amount": "8", // 数量
"price": "0.25", // 价格
"cost": "0.05000", // 仓储费
"discount": "0.80", // 折扣
"real_cost": "0.05000" // 实收费用
}
}
"storageCharge": {
"lydia110307": {
"amount": "8", // 数量
"price": "0.25", // 价格
"cost": "0.05000", // 仓储费
"discount": "0.80", // 折扣
"real_cost": "0.05000" // 实收费用
},
} // 仓储费
}
}
]
}
错误时的返回JSON数据包如下:
{"status":"2554","reqMsg":"Didn't find relevant order.","result":[]}
9、返回参数说明:
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| sn | String | 20170703001 | 平台店铺订单编号 |
| status | String | Pending | 订单状态 Pending:待出库 InProcess:处理中 Shipped:已发货 Cancelled:已取消 |
| outbound_time | String | 2017-07-01 12:10:11 | 发货时间 |
| track_num | String | 1Z7498950398981808 | 物流单号 |
| trouble_sign | String | Short of storage | 问题订单说明 Short of storage:发货短缺 Invalid Receipt Address:不合法的收货地址 |
