查询出库单状态

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、请求示例

{
    "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": "121-17262173",
            "outbound_time": "",
            "track_num": "202502200006",
            "outflow_sn": "GCO02202500006",
            "status": "InProcess",
            "trouble_sign": "Normal"
        }
    ]
}
        
// 已出库
{
    "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" // 实收费用
                    }
                } // 仓储费
            },
            "charge": [
                {
                    "charge_name": "Shipping",
                    "charge_price": "0.00",
                    "charge_amount": "1.00",
                    "charge_discount": "1.00",
                    "charge_total": "13.63",
                    "charge_currency": "usd",
                    "pay_status": "1",
                    "create_time": "2025-03-27 14:11:00"
                },
                {
                    "charge_name": "Processing/Handling",
                    "charge_price": "0.50",
                    "charge_amount": "1.00",
                    "charge_discount": "0.56",
                    "charge_total": "0.28",
                    "charge_currency": "usd",
                    "pay_status": "1",
                    "create_time": "2025-03-27 14:11:00"
                }
            ],
            "items": [
                {
                    "product_id": "238355",
                    "product_sn": "6941327103026",
                    "request_count": "1", // 预报数量
                    "shipped_count": "1", // 实际发货数量
                }
            ],
            "trouble_sign": "Normal"
        }
    ]
}
        

错误时的返回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:不合法的收货地址

全局返回码说明