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

Headers

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

Parameters

Param描述
carrier_code 快遞代碼. 檢查 快遞代碼
original發件國家二字簡碼 (eg:CN)
destination目的地國家二字簡碼 (eg:US)

Request Body

  • [
      {
    	"original": "CN",
    	"destination": "US",
    	"carrier_code": "dhl"
      },
      {
    	"original": "CN",
    	"destination": "RU",
    	"carrier_code": "dhl"
      }
    ]
    				

Response Attributes

  • Attributes描述
    carrier_code 快遞代碼.
    original發件國家二字簡碼 (eg:CN)
    destination目的地國家二字簡碼 (eg:US)
    total樣本總數
    delivered簽收樣品數量
    range10-7 天內簽收的資料樣本比例
    range3在7-15days 內交付的資料樣本比例
    range416-30 天內提供的資料樣本比例
    range531-60 天內提供的資料樣本比例
    range6簽收超過60天的資料樣本比例
    day預計到達時間
  • Response Body 200

    {
    	"meta": {
    		"code": 200,
    		"type": "Success",
    		"message": "The request was successful."
    	},
    	"data": {
    		"items": [{
    			"carrier_code": "dhl",
    			"original": "CN",
    			"destination": "US",
    			"total": 1112,
    			"delivered": 22931,
    			"range1": 89.455322489207,
    			"range3": 10.239413893855,
    			"range4": 0.19624089660285,
    			"range5": 0.03924817932057,
    			"range6": 0.069774541014347,
    			"day": 3.4593715906611
    		}, {
    			"carrier_code": "dhl",
    			"original": "CN",
    			"destination": "RU",
    			"total": 6,
    			"delivered": 30,
    			"range1": 93.333333333333,
    			"range3": 6.6666666666667,
    			"range4": 0,
    			"range5": 0,
    			"range6": 0,
    			"day": 4.1666666666667
    		}]
    	}
    }