Tracking
Get tracking
Either code returns the whole shipment: every event from the OpenBorder label and every carrier label linked to it. results holds one entry and not_found is empty, the same envelope as the batch lookup.
GET
/
api
/
v1
/
tracking
/
{tracking_code}
Get the tracking events of one shipment, by OpenBorder label or carrier tracking code
curl --request GET \
--url https://api.openborder.com/api/v1/tracking/{tracking_code} \
--header 'X-OpenBorder-Api-Key: <api-key>'import requests
url = "https://api.openborder.com/api/v1/tracking/{tracking_code}"
headers = {"X-OpenBorder-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-OpenBorder-Api-Key': '<api-key>'}};
fetch('https://api.openborder.com/api/v1/tracking/{tracking_code}', 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://api.openborder.com/api/v1/tracking/{tracking_code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-OpenBorder-Api-Key: <api-key>"
],
]);
$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://api.openborder.com/api/v1/tracking/{tracking_code}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-OpenBorder-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openborder.com/api/v1/tracking/{tracking_code}")
.header("X-OpenBorder-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openborder.com/api/v1/tracking/{tracking_code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-OpenBorder-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"tracking_code": "OB_LABEL_MNM631582",
"brand_code": "acme",
"order_reference": "#L1234",
"latest_tracking_status": "Delivered",
"tracking_updates": [
{
"sequence": 918342207,
"status": "Delivered",
"message": "Delivered to recipient",
"timestamp": "2026-09-21T17:22:00.000Z",
"timestamp_precision": "second",
"location": {
"city": "Toronto",
"province": "Ontario",
"country": "CA",
"raw": "TORONTO, ON M5V"
}
}
]
}
],
"not_found": []
}{
"statusCode": 401,
"message": "Invalid or expired API key",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Insufficient scopes",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Tracking code not found",
"error": "Not Found"
}{
"statusCode": 429,
"message": "Rate limit exceeded"
}{
"statusCode": 503,
"message": "Unable to validate API key",
"error": "Service Unavailable"
}Authorizations
Headers
The ETag of a previous response. Returns 304 with no body when it still matches.
Path Parameters
An OpenBorder label (OB_LABEL_...) or a carrier tracking code
⌘I
Get the tracking events of one shipment, by OpenBorder label or carrier tracking code
curl --request GET \
--url https://api.openborder.com/api/v1/tracking/{tracking_code} \
--header 'X-OpenBorder-Api-Key: <api-key>'import requests
url = "https://api.openborder.com/api/v1/tracking/{tracking_code}"
headers = {"X-OpenBorder-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-OpenBorder-Api-Key': '<api-key>'}};
fetch('https://api.openborder.com/api/v1/tracking/{tracking_code}', 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://api.openborder.com/api/v1/tracking/{tracking_code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-OpenBorder-Api-Key: <api-key>"
],
]);
$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://api.openborder.com/api/v1/tracking/{tracking_code}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-OpenBorder-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openborder.com/api/v1/tracking/{tracking_code}")
.header("X-OpenBorder-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openborder.com/api/v1/tracking/{tracking_code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-OpenBorder-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"tracking_code": "OB_LABEL_MNM631582",
"brand_code": "acme",
"order_reference": "#L1234",
"latest_tracking_status": "Delivered",
"tracking_updates": [
{
"sequence": 918342207,
"status": "Delivered",
"message": "Delivered to recipient",
"timestamp": "2026-09-21T17:22:00.000Z",
"timestamp_precision": "second",
"location": {
"city": "Toronto",
"province": "Ontario",
"country": "CA",
"raw": "TORONTO, ON M5V"
}
}
]
}
],
"not_found": []
}{
"statusCode": 401,
"message": "Invalid or expired API key",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Insufficient scopes",
"error": "Forbidden"
}{
"statusCode": 404,
"message": "Tracking code not found",
"error": "Not Found"
}{
"statusCode": 429,
"message": "Rate limit exceeded"
}{
"statusCode": 503,
"message": "Unable to validate API key",
"error": "Service Unavailable"
}