Tracking
Batch tracking lookup
Codes that resolve come back in results in the order sent, once each. The rest are listed in not_found, and a lookup where nothing resolves is still a 200. The call counts once against the rate limit, whatever the number of codes.
POST
/
api
/
v1
/
tracking
/
lookup
Get the tracking events of several shipments in one call
curl --request POST \
--url https://api.openborder.com/api/v1/tracking/lookup \
--header 'Content-Type: application/json' \
--header 'X-OpenBorder-Api-Key: <api-key>' \
--data '
{
"tracking_codes": [
"OB_LABEL_MNM631582",
"LA123456789NL"
]
}
'import requests
url = "https://api.openborder.com/api/v1/tracking/lookup"
payload = { "tracking_codes": ["OB_LABEL_MNM631582", "LA123456789NL"] }
headers = {
"X-OpenBorder-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-OpenBorder-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tracking_codes: ['OB_LABEL_MNM631582', 'LA123456789NL']})
};
fetch('https://api.openborder.com/api/v1/tracking/lookup', 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/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tracking_codes' => [
'OB_LABEL_MNM631582',
'LA123456789NL'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openborder.com/api/v1/tracking/lookup"
payload := strings.NewReader("{\n \"tracking_codes\": [\n \"OB_LABEL_MNM631582\",\n \"LA123456789NL\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-OpenBorder-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.openborder.com/api/v1/tracking/lookup")
.header("X-OpenBorder-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tracking_codes\": [\n \"OB_LABEL_MNM631582\",\n \"LA123456789NL\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openborder.com/api/v1/tracking/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-OpenBorder-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tracking_codes\": [\n \"OB_LABEL_MNM631582\",\n \"LA123456789NL\"\n ]\n}"
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": 400,
"message": [
"tracking_codes must contain no more than 50 elements"
],
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid or expired API key",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Insufficient scopes",
"error": "Forbidden"
}{
"statusCode": 429,
"message": "Rate limit exceeded"
}{
"statusCode": 503,
"message": "Unable to validate API key",
"error": "Service Unavailable"
}Authorizations
Body
application/json
Tracking codes to look up, OpenBorder label or carrier. At most 50. Duplicates are collapsed.
Example:
["OB_LABEL_MNM631582", "LA123456789NL"]
⌘I
Get the tracking events of several shipments in one call
curl --request POST \
--url https://api.openborder.com/api/v1/tracking/lookup \
--header 'Content-Type: application/json' \
--header 'X-OpenBorder-Api-Key: <api-key>' \
--data '
{
"tracking_codes": [
"OB_LABEL_MNM631582",
"LA123456789NL"
]
}
'import requests
url = "https://api.openborder.com/api/v1/tracking/lookup"
payload = { "tracking_codes": ["OB_LABEL_MNM631582", "LA123456789NL"] }
headers = {
"X-OpenBorder-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-OpenBorder-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({tracking_codes: ['OB_LABEL_MNM631582', 'LA123456789NL']})
};
fetch('https://api.openborder.com/api/v1/tracking/lookup', 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/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tracking_codes' => [
'OB_LABEL_MNM631582',
'LA123456789NL'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.openborder.com/api/v1/tracking/lookup"
payload := strings.NewReader("{\n \"tracking_codes\": [\n \"OB_LABEL_MNM631582\",\n \"LA123456789NL\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-OpenBorder-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.openborder.com/api/v1/tracking/lookup")
.header("X-OpenBorder-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tracking_codes\": [\n \"OB_LABEL_MNM631582\",\n \"LA123456789NL\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openborder.com/api/v1/tracking/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-OpenBorder-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tracking_codes\": [\n \"OB_LABEL_MNM631582\",\n \"LA123456789NL\"\n ]\n}"
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": 400,
"message": [
"tracking_codes must contain no more than 50 elements"
],
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid or expired API key",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Insufficient scopes",
"error": "Forbidden"
}{
"statusCode": 429,
"message": "Rate limit exceeded"
}{
"statusCode": 503,
"message": "Unable to validate API key",
"error": "Service Unavailable"
}