curl --request GET \
--url https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"uuid": "8c0a32d1-7f32-4e4e-9876-0f1234567890",
"tracking_number": "TRK123456789",
"tracking_url": "https://track.smartsend.io/8c0a32d1",
"state": "InTransit",
"description": "<string>",
"locale": "da-DK",
"last_synced_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"estimated_delivery": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
},
"delivered_at": "2023-11-07T05:31:56Z",
"returned_at": "2023-11-07T05:31:56Z",
"service": {
"service_code": "postnord_agent",
"service_name": "Pickup Point",
"carrier_code": "postnord",
"carrier_name": "PostNord",
"carrier_logo_url": "<string>",
"carrier_icon_url": "<string>",
"is_pickup": true,
"is_return": true
},
"receiver": {
"name": "<string>",
"company": "<string>",
"email": "jsmith@example.com",
"phone": "<string>"
},
"destination": {
"type": "HOME_ADDRESS",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"country": "<string>",
"coordinates": {
"latitude": 55.689748,
"longitude": 12.553726
},
"pickup_point": {
"id": "<string>",
"name": "<string>",
"type": "post_office"
}
},
"events": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "AvailableForPickup",
"status_code": "Error_NotFound",
"description": "<string>",
"happened_at": "2023-11-07T05:31:56Z",
"recorded_at": "2023-11-07T05:31:56Z",
"location": {
"city": "<string>",
"postal_code": "<string>",
"country": "US",
"administrative_area": "NY"
},
"coordinates": {
"latitude": 55.689748,
"longitude": 12.553726
},
"note": "<string>"
}
]
}
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name is required."
]
}
}{
"message": "<string>"
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}Get tracking information
Returns current tracking status and complete event history for a shipment identified by its tracking number. Includes carrier information, destination details, and timestamped events.
curl --request GET \
--url https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.smartsend.io/api/v2/team/{team}/tracking/{trackingNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"uuid": "8c0a32d1-7f32-4e4e-9876-0f1234567890",
"tracking_number": "TRK123456789",
"tracking_url": "https://track.smartsend.io/8c0a32d1",
"state": "InTransit",
"description": "<string>",
"locale": "da-DK",
"last_synced_at": "2023-11-07T05:31:56Z",
"last_updated_at": "2023-11-07T05:31:56Z",
"estimated_delivery": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z"
},
"delivered_at": "2023-11-07T05:31:56Z",
"returned_at": "2023-11-07T05:31:56Z",
"service": {
"service_code": "postnord_agent",
"service_name": "Pickup Point",
"carrier_code": "postnord",
"carrier_name": "PostNord",
"carrier_logo_url": "<string>",
"carrier_icon_url": "<string>",
"is_pickup": true,
"is_return": true
},
"receiver": {
"name": "<string>",
"company": "<string>",
"email": "jsmith@example.com",
"phone": "<string>"
},
"destination": {
"type": "HOME_ADDRESS",
"address": {
"address_lines": [
"3200 Whitehaven St. NW",
"Building A, Floor 2"
],
"postal_code": "20008",
"city": "Washington",
"country": "US",
"administrative_area": "DC"
},
"country": "<string>",
"coordinates": {
"latitude": 55.689748,
"longitude": 12.553726
},
"pickup_point": {
"id": "<string>",
"name": "<string>",
"type": "post_office"
}
},
"events": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category": "AvailableForPickup",
"status_code": "Error_NotFound",
"description": "<string>",
"happened_at": "2023-11-07T05:31:56Z",
"recorded_at": "2023-11-07T05:31:56Z",
"location": {
"city": "<string>",
"postal_code": "<string>",
"country": "US",
"administrative_area": "NY"
},
"coordinates": {
"latitude": 55.689748,
"longitude": 12.553726
},
"note": "<string>"
}
]
}
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name is required."
]
}
}{
"message": "<string>"
}{
"message": "Something unexpected happened."
}{
"message": "Something unexpected happened."
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Preferred language(s) for translatable content using BCP 47 language tags. Supports quality values (q-factors) for priority ordering. The API negotiates the best available language based on this header, the team's configured language, and available translations. If omitted, the team's default language is used.
"da-DK, da;q=0.9, en;q=0.8"
Any value passed in this request will be returned in the same header. This can be used to correlate requests between client and server.
1 - 128^[A-Za-z0-9._-]{1,128}$Path Parameters
Team identifier. All resources are scoped to this team.
1"ad9546c1-393e-49a5-9a72-5cc146c9bec5"
The tracking number/code assigned to the shipment by the carrier
1 - 255"TRK123456789"
Response
Tracking information retrieved successfully
Show child attributes
Show child attributes
Was this page helpful?