Banner

Tracktry API

Trackings 

Manage your trackings

URI Method Description
POST /trackings/post POST Create a tracking item
GET /trackings/{carrier_code}/{tracking_number} GET Get tracking results of a single tracking.
PUT /trackings/{carrier_code}/{tracking_number} PUT Update Tracking item
DELETE /trackings/{carrier_code}/{tracking_number} DELETE Delete a tracking item
POST /trackings/batch POST Create multiple trackings.
GET /trackings/get GET List all trackings
POST /trackings/realtime POST Get realtime tracking results of a single tracking

Update Tracking item

https://api.tracktry.com/v1/trackings/{carrier_code}/{tracking_number}

Request E.g.

E.g.

https://api.tracktry.com/v1/trackings/sto/402934299065

Headers

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

Parameters

ParamDescription
title (optional)Title of the tracking
logistics_channel (optional)Logistics channel of the tracking
customer_name (optional)Customer name of the tracking.
customer_email (optional)Email address to receive email notifications of the customer.
customer_phone (optional)Phone number to receive SMS notifications.
order_id (optional)Text field for order ID.
destination_code (optional) Destination Carrier code.Check country code list
archived (optional)Modify whether a single number is archived by passing a true/false string.
status (optional)Change status.You can only change the state value to 4, 7 or 8. 4 means delivered, 7 means exception, 8 means return to the original status.

Request Body

  • {
    	"title": "new title",
    	"logistics_channel": "4PX挂号小包",
    	"customer_name": "sandy",
    	"customer_email": "[email protected]",
    	"customer_phone":"+86123456789",
    	"order_id": "986574521568",
    	"destination_code": "CN",
    	"archived": "true",
    	"status": 7
    }
    				
  • Reponse Body

    {
    	"meta": {
    		"code": 200,
    		"type": "Success",
    		"message": "Success"
    	},
    	"data": {
    		"id": "3d300c6f34a6a9711166cc44e4cc096a",
    		"tracking_number": "402934299065",
    		"carrier_code": "sto",
    		"created_at": "2018-04-18T14:34:30+08:00",
    		"updated_at": "2018-04-18T14:32:27+08:00",
    		"customer_email": "[email protected]",
    		"customer_name": "sandy",
    		"order_id": "986574521568",
    		"title": "new title",
    		"destination_code": "CN",
    		"customer_phone": "+86123456789",
    		"archived": "true",
    		"status": "7",
    		"logistics_channel": "4PX挂号小包"
    	}
    }