Skip to content

请求方式

POST /open/order/query

请求业务参数

参数名类型是否必须说明
thirdOrderNostring第三方订单编号

请求示例

{
    "timestamp": 1711092618,
    "sign": "",
    "resellerId": 10000,
    "version": 1,
    "bizContent": {
        "thirdOrderNo": "20240328-874367231"
    }
}

响应结果

字段名类型是否必须说明
dataobjectdata
data.outUserIdstring下单用户标识
data.unionOrderNostring父订单号
data.thirdOrderNostring三方单号
data.subOrderListobject[]子订单列表
data.subOrderList{i}.orderNostring子订单号
data.subOrderList{i}.orderStatusint子订单状态
data.subOrderList{i}.addressobject收件人信息
data.subOrderList{i}.address.namestring收件人
data.subOrderList{i}.address.phonestring收件人手机号
data.subOrderList{i}.address.provincestring
data.subOrderList{i}.address.citystring
data.subOrderList{i}.address.districtstring
data.subOrderList{i}.address.addressstring详细地址
data.subOrderList{i}.skusobject[]子订单商品列表
data.subOrderList{i}.skus{j}.customizeNostring定制单号
data.subOrderList{i}.skus{j}.resellerSkuIdint商品id
data.subOrderList{i}.skus{j}.countint商品数量
data.subOrderList{i}.orderExpressobject子订单物流信息
data.subOrderList{i}.orderExpress.expressNumberstring物流单号
data.subOrderList{i}.orderExpress.expressCompanyNamestring物流公司名称
data.subOrderList{i}.orderExpress.expressCompanystring物流
data.subOrderList{i}.orderExpress.tracesobject[]物流轨迹列表
data.subOrderList{i}.orderExpress.traces{j}.timestring时间
data.subOrderList{i}.orderExpress.traces{j}.contextstring说明
data.subOrderList{i}.orderExpress.traces{j}.statusstring状态
data.subOrderList{i}.orderExpress.traces{j}.citystring城市

响应示例

{
    "code": 0,
    "data": {
        "outUserId": "outUserId",
        "unionOrderNo": "1711617155438042815450787",
        "thirdOrderNo": "20240328-874367231",
        "subOrderList": [
            {
                "orderNo": "1711617155442212624339790",
                "orderStatus": 60,
                "address": {
                    "name": "张三",
                    "phone": "1*********9",
                    "province": "浙江省",
                    "city": "杭州市",
                    "district": "西湖区",
                    "address": "金*********梯"
                },
                "skus": [
                    {
                        "customizeNo": "customizeNo_1u34638311",
                        "resellerSkuId": 7,
                        "count": 1
                    }
                ],
                "orderExpress": {
                    "expressNumber": "433333385045566",
                    "expressCompanyName": "韵达快递",
                    "expressCompany": "yd",
                    "packageCount": 1,
                    "shippingStatus": 25,
                    "traces": [
                        {
                            "time": "2023-07-13 07:56:39",
                            "context": "【上海市】已到达 上海闵行区浦航服务部[021-23145005]",
                            "status": "",
                            "city": ""
                        },
                        {
                            "time": "2023-07-13 03:27:49",
                            "context": "【上海市】已离开 上海分拨交付中心;发往 上海闵行区浦航公司",
                            "status": "",
                            "city": ""
                        },
                        {
                            "time": "2023-07-12 06:56:22",
                            "context": "【上海市】已到达 上海分拨交付中心",
                            "status": "",
                            "city": ""
                        },
                        {
                            "time": "2023-07-12 01:34:22",
                            "context": "【金华市】已离开 浙江义乌分拨交付中心;发往 上海分拨交付中心",
                            "status": "",
                            "city": ""
                        },
                        {
                            "time": "2023-07-12 01:33:13",
                            "context": "【金华市】已到达 浙江义乌分拨交付中心",
                            "status": "",
                            "city": ""
                        },
                        {
                            "time": "2023-07-11 21:50:10",
                            "context": "【金华市】已离开 浙江金华金东金义新区公司;发往 闵行地区包",
                            "status": "",
                            "city": ""
                        },
                        {
                            "time": "2023-07-11 21:49:17",
                            "context": "【金华市】浙江金华金东金义新区公司 已揽收",
                            "status": "",
                            "city": ""
                        }
                    ]
                }
            }
        ]
    },
    "message": "成功"
}

子订单状态

状态值说明
0已取消
10待支付
20待发货
30待收货
40已完成
50已退款
60待生产
70无法生产
80生产中
90已补发

错误码

说明
5000000参数校验错误
6010002订单查询失败