cURL
curl --request GET \
--url https://dev.api.r4technology.io/tracking \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.api.r4technology.io/tracking"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://dev.api.r4technology.io/tracking', 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://dev.api.r4technology.io/tracking",
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: Basic <encoded-value>"
],
]);
$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://dev.api.r4technology.io/tracking"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.api.r4technology.io/tracking")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.r4technology.io/tracking")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"return_order_id": "ZG12345678",
"current_status": "return closed",
"tracking_updates": [
{
"status": "detail",
"timestamp": "2025-03-15T14:23:17Z",
"description": "Package scanned and received at a dropoff point"
},
{
"status": "sub pickup",
"timestamp": "2025-03-15T16:45:32Z",
"description": "Package picked up from dropoff location"
},
{
"status": "hub dropoff",
"timestamp": "2025-03-16T09:12:48Z",
"description": "Package arrived at consolidation hub"
},
{
"status": "return closed",
"timestamp": "2025-03-16T14:28:15Z",
"description": "Package left consolidation hub and return process complete"
}
],
"total_updates": 4
}{
"error": 123,
"message": "<string>"
}Endpoints
Order Tracking
Get tracking information for an order by order ID
GET
/
tracking
cURL
curl --request GET \
--url https://dev.api.r4technology.io/tracking \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dev.api.r4technology.io/tracking"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://dev.api.r4technology.io/tracking', 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://dev.api.r4technology.io/tracking",
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: Basic <encoded-value>"
],
]);
$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://dev.api.r4technology.io/tracking"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.api.r4technology.io/tracking")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.r4technology.io/tracking")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"return_order_id": "ZG12345678",
"current_status": "return closed",
"tracking_updates": [
{
"status": "detail",
"timestamp": "2025-03-15T14:23:17Z",
"description": "Package scanned and received at a dropoff point"
},
{
"status": "sub pickup",
"timestamp": "2025-03-15T16:45:32Z",
"description": "Package picked up from dropoff location"
},
{
"status": "hub dropoff",
"timestamp": "2025-03-16T09:12:48Z",
"description": "Package arrived at consolidation hub"
},
{
"status": "return closed",
"timestamp": "2025-03-16T14:28:15Z",
"description": "Package left consolidation hub and return process complete"
}
],
"total_updates": 4
}{
"error": 123,
"message": "<string>"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
The return order ID to track
⌘I
