TrackingMore API

Trackings 

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/batch

Headers

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

    此接口壹次最多傳40個快遞單號

Parameters

Param描述
tracking_number跟蹤編號
carrier_code 快遞代碼. 檢查 快遞代碼
destination_code (optional)目標國家/地區代碼 (兩個字元).
title (optional)產品名稱
logistics_channel (optional)物流渠道
customer_name (optional)客戶名稱.
customer_email (optional)客戶郵箱.
customer_phone (optional)客戶電話號碼.
order_id (optional)訂單 ID.
order_create_time (optional)下單時間(eg:2017/8/27 16:51).
tracking_ship_date(optional)寄件日期,格式為20181001(年月日),部分運輸商(如德國郵政)要求填寫發件日期才可以查詢物流信息,故查詢此類運輸商時需要傳此參數。
tracking_postal_code(optional)收件地郵編,部分運輸商(如Mondial Relay法國快遞)要求填寫郵編才可以查詢物流信息,故查詢此類運輸商時需要傳該參數。
tracking_account_number(optional)賬戶號,部分快遞要求填寫賬戶號才可以查詢物流,故查詢此類快遞時需要傳該參數
specialNumberDestination(optional)目的國參數,部分運輸商要求填寫目的國家才可以查詢物流,故查詢此類快遞時需要傳該參數
lang (optional)返回語言類型 (僅當信使官方網站支援時)。.瞭解更多資訊
auto_correct (optional)如果將值設置為 1, 系統將不會自動校正信使。.
comment (optional)備註

Request Body

  • [
      {
          "tracking_number": "RP893531375SG",
          "carrier_code": "singapore-post",
          "logistics_channel": "4PX挂号小包",
          "customer_phone": "+110110",
          "destination_code": "cn",
          "title": "title 1",
          "customer_email": "[email protected]",
          "order_id": "213456",
          "comment": "备注",
          "order_create_time": "2017/8/27 16:51",
          "lang": "en"
      },
      {
          "tracking_number": "LK894734223CN",
          "carrier_code": "china-ems",
          "logistics_channel": "4PX挂号小包",
          "customer_phone": "+22222222",
          "destination_code": "cn",
          "title": "title 1",
          "customer_email": "[email protected]",
          "order_id": "213456",
          "comment": "备注",
          "order_create_time": "2017/8/27 16:51",
          "lang": "en"
      }
    ]
                    
  • Response Body 201

    {
        "meta": {
            "code": 201,
            "type": "Created",
            "message": "The request was successful and a resource was created."
        },
        "data": {
            "submitted": 2,
            "added": 0,
            "trackings": [],
            "errors": [{
                "tracking_number": "RP893531375SG",
                "carrier_code": "singapore-post",
                "code": 4016,
                "message": "Tracking already exists."
            }, {
                "tracking_number": "LK894734223CN",
                "carrier_code": "china-ems",
                "code": 4016,
                "message": "Tracking already exists."
            }]
        }
    }
    
  • Response Body 200

    {
        "meta": {
            "code": 200,
            "type": "Success",
            "message": "Success"
        },
        "data": {
            "submitted": 2,
            "added": 2,
            "trackings": [{
                "id": "ec6150c0b7557eb3131578640e04f798",
                "tracking_number": "RP893531375SG",
                "carrier_code": "singapore-post",
                "order_create_time": "2017\/8\/27 16:51",
                "status": "pending",
                "created_at": "2018-04-18T07:26:14+00:00",
                "customer_email": "[email protected]",
                "customer_name": null,
                "customer_phone": "+110110",
                "order_id": "213456",
                "comment": "备注",
                "title": "title 1"
                "logistics_channel": "4PX挂号小包"
            }, {
                "id": "bca8dab58bac35e0658f93c09e8092ac",
                "tracking_number": "LK894734223CN",
                "carrier_code": "china-ems",
                "order_create_time": "2017\/8\/27 16:51",
                "status": "pending",
                "created_at": "2018-04-18T07:26:14+00:00",
                "customer_email": "[email protected]",
                "customer_name": null,
                "customer_phone": "+22222222",
                "order_id": "213456",
                "comment": "备注",
                "title": "title 1"
                "logistics_channel": "4PX挂号小包"
            }]
        }
    }
    

轉變您的
今天的貨件追蹤

想要自動更新貨件或提高交付效率?借助 TrackingMore 強大的 API,您將擁有觸手可及的所有工具,以改變客戶的售後旅程。