TrackingMore API

API 调用接口 

Manage your trackings

URI Method Description
POST /trackings/post POST 创建单个运单号
GET /trackings/{carrier_code}/{tracking_number} GET 列出单个运单号物流信息
PUT /trackings/{carrier_code}/{tracking_number} PUT 修改单个运单号附加信息。如:订单号,商品标题,快递状态等。
DELETE /trackings/{carrier_code}/{tracking_number} DELETE 删除单个运单号
POST /trackings/batch POST 创建多个运单号
GET /trackings/get GET 获取多个单号的物流信息
POST /trackings/updatemore POST 修改多个运单号附加信息。如:订单号,商品标题,快递状态等。
POST /trackings/delete POST 删除多个运单号
POST /trackings/realtime POST 获取单个运单号实时物流信息
POST /trackings/update POST 修改运输商简码
GET /trackings/getuserinfo GET 查询用户剩余额度
GET /trackings/getstatusnumber GET 获取各个状态的包裹数量
POST /trackings/notupdate POST 设置部分单号不再更新
POST /trackings/remote POST 查询收货地址是否偏远
POST /trackings/costtime POST 获取快递时效结果
POST /trackings/aircargo POST 获取航空运单编号的跟踪结果

获取单个运单号实时物流信息

https://api.trackingmore.com/v2/trackings/realtime

Headers

  • Content-Type: application/json
    Trackingmore-Api-Key: YOUR_API_KEY
  • Tips

    此接口每秒最多3次请求

Parameters

Param描述
tracking_number快递单号
carrier_code运输商简码
destination_code (optional)目标国家/地区代码 (两个字符).
tracking_ship_date(optional)寄件日期,格式为20181001(年月日),部分运输商(如德国邮政)要求填写发件日期才可以查询物流信息,故查询此类运输商时需要传此参数。
tracking_postal_code(optional)收件地邮编,部分运输商(如Mondial Relay法国快递)要求填写邮编才可以查询物流信息,故查询此类运输商时需要传该参数。
tracking_account_number(optional)账户号,部分快递要求填写账户号才可以查询物流,故查询此类快递时需要传该参数
specialNumberDestination(optional)目的国参数,部分运输商要求填写目的国家才可以查询物流,故查询此类快递时需要传该参数
order (optional)Text field for order ID.
order_create_time (optional)下单时间(eg:2017/8/27 16:51).
lang (optional)返回语言类型 (仅当运输商官网支持时有用)。.了解更多信息
auto_correct (optional)如果将值设置为 1, 系统将不会自动根据单号矫正快递商。.
comment (optional)备注

Request Body

  • {
        "tracking_number": "LS912989618CN",
        "carrier_code": "china-ems",
        "destination_code": "US",
        "order": "12645654",
        "order_create_time": "2017/8/27 16:51",
        "comment": "备注"
    }
                    
  • Response Body 200

    {
        "meta": {
            "code": 200,
            "type": "Success",
            "message": "Success"
        },
        "data": {
            "items": [{
                "id": "f1e0645c3288bae10b8ab6ad89ca187b",
                "tracking_number": "LS912989618CN",
                "carrier_code": "china-ems",
                "order_create_time": "2017\/8\/27 16:51",
                "status": "transit",
                "original_country": "China",
                "destination_country": "United States",
                "itemTimeLength": 11,
                "stayTimeLength": 4,
                "service_code": null,
                "origin_info": {
                    "ItemReceived": "2018-04-07 16:45:00",
                    "ItemDispatched": null,
                    "DepartfromAirport": null,
                    "ArrivalfromAbroad": "2018-04-14 17:07:00",
                    "CustomsClearance": null,
                    "DestinationArrived": null,
                    "weblink": "http:\/\/www.ems.com.cn\/",
                    "phone": "11183",
                    "carrier_code": "china-ems",
                    "trackinfo": [{
                        "Date": "2018-04-14 17:07:00",
                        "StatusDescription": "到达处理中心,来自中国 郑州",
                        "Details": "美国",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-07 21:18:37",
                        "StatusDescription": "离开郑州市 发往旧金山",
                        "Details": "郑州市",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-07 16:45:00",
                        "StatusDescription": "中国邮政速递物流股份有限公司河南省国际速递分公司五已收件(揽投员姓名:,联系电话:)",
                        "Details": "郑州市",
                        "checkpoint_status": "transit"
                    }]
                },
                "destination_info": {
                    "ItemReceived": "2018-04-07 16:45",
                    "ItemDispatched": null,
                    "DepartfromAirport": null,
                    "ArrivalfromAbroad": "2018-04-16 20:01",
                    "CustomsClearance": null,
                    "DestinationArrived": null,
                    "weblink": "http:\/\/www.usps.com\/",
                    "phone": "1-800-275-8777",
                    "carrier_code": "usps",
                    "trackinfo": [{
                        "Date": "2018-04-17 22:30",
                        "StatusDescription": "Arrived at USPS Regional Destination Facility",
                        "Details": "DES MOINES IA NETWORK DISTRIBUTION CENTER",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-17 00:00",
                        "StatusDescription": "In Transit to Next Facility",
                        "Details": "",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-16 20:01",
                        "StatusDescription": "Arrived at USPS Regional Facility",
                        "Details": "SAN JOSE CA DISTRIBUTION CENTER",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-14 17:07",
                        "StatusDescription": "Processed Through Facility",
                        "Details": "ISC SAN FRANCISCO (USPS)",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-07 17:00",
                        "StatusDescription": "Processed Through Facility",
                        "Details": "ZHENGZHOU EMS,CHINA",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-07 16:45",
                        "StatusDescription": "Acceptance",
                        "Details": "CHINA",
                        "checkpoint_status": "transit"
                    }, {
                        "Date": "2018-04-07 16:45",
                        "StatusDescription": "Origin Post is Preparing Shipment",
                        "Details": "",
                        "checkpoint_status": "transit"
                    }]
                },
                "lastEvent": "Arrived at USPS Regional Destination Facility,DES MOINES IA NETWORK DISTRIBUTION CENTER,2018-04-17 22:30",
                "lastUpdateTime": "2018-04-17 22:30"
            }]
        }
    }

将您的售后物流查询体验提升到更高维度