Update Tracking Location
curl --request POST \
--url https://api.usedroptrail.com/tracking/{id}/location \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"latitude": 123,
"longitude": 123,
"status": "<string>",
"notes": "<string>"
}
'import requests
url = "https://api.usedroptrail.com/tracking/{id}/location"
payload = {
"latitude": 123,
"longitude": 123,
"status": "<string>",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({latitude: 123, longitude: 123, status: '<string>', notes: '<string>'})
};
fetch('https://api.usedroptrail.com/tracking/{id}/location', 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.usedroptrail.com/tracking/{id}/location",
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([
'latitude' => 123,
'longitude' => 123,
'status' => '<string>',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.usedroptrail.com/tracking/{id}/location"
payload := strings.NewReader("{\n \"latitude\": 123,\n \"longitude\": 123,\n \"status\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.usedroptrail.com/tracking/{id}/location")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 123,\n \"longitude\": 123,\n \"status\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usedroptrail.com/tracking/{id}/location")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"latitude\": 123,\n \"longitude\": 123,\n \"status\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"delivery_id": "<string>",
"status": "<string>",
"location": {
"latitude": 123,
"longitude": 123,
"timestamp": "<string>"
},
"notes": "<string>"
}Tracking
Update Tracking Location
Update the current location of a delivery in transit
POST
/
tracking
/
{id}
/
location
Update Tracking Location
curl --request POST \
--url https://api.usedroptrail.com/tracking/{id}/location \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"latitude": 123,
"longitude": 123,
"status": "<string>",
"notes": "<string>"
}
'import requests
url = "https://api.usedroptrail.com/tracking/{id}/location"
payload = {
"latitude": 123,
"longitude": 123,
"status": "<string>",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({latitude: 123, longitude: 123, status: '<string>', notes: '<string>'})
};
fetch('https://api.usedroptrail.com/tracking/{id}/location', 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.usedroptrail.com/tracking/{id}/location",
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([
'latitude' => 123,
'longitude' => 123,
'status' => '<string>',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.usedroptrail.com/tracking/{id}/location"
payload := strings.NewReader("{\n \"latitude\": 123,\n \"longitude\": 123,\n \"status\": \"<string>\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.usedroptrail.com/tracking/{id}/location")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 123,\n \"longitude\": 123,\n \"status\": \"<string>\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usedroptrail.com/tracking/{id}/location")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"latitude\": 123,\n \"longitude\": 123,\n \"status\": \"<string>\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"delivery_id": "<string>",
"status": "<string>",
"location": {
"latitude": 123,
"longitude": 123,
"timestamp": "<string>"
},
"notes": "<string>"
}Update the current location and status of a delivery that is in progress. This endpoint should be called regularly while a delivery is in transit to provide real-time tracking updates.
Path Parameters
string
required
The unique identifier of the delivery request
Request Body
number
required
Current latitude coordinate of the delivery vehicle
number
required
Current longitude coordinate of the delivery vehicle
string
Updated delivery status (IN_TRANSIT, DELIVERED)
string
Optional notes about the current location or status update
Response
string
The unique identifier of the delivery request
string
Current status of the delivery
object
string
Any provided notes for this update
Example Request
⌘I