Skip to main content
POST
https://api.usedroptrail.com
/
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>"
}
'
{
  "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

id
string
required
The unique identifier of the delivery request

Request Body

latitude
number
required
Current latitude coordinate of the delivery vehicle
longitude
number
required
Current longitude coordinate of the delivery vehicle
status
string
Updated delivery status (IN_TRANSIT, DELIVERED)
notes
string
Optional notes about the current location or status update

Response

delivery_id
string
The unique identifier of the delivery request
status
string
Current status of the delivery
location
object
Current location details
notes
string
Any provided notes for this update

Example Request