List Delivery Requests
curl --request GET \
--url https://api.usedroptrail.com/delivery-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usedroptrail.com/delivery-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usedroptrail.com/delivery-requests', 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/delivery-requests",
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: Bearer <token>"
],
]);
$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.usedroptrail.com/delivery-requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.usedroptrail.com/delivery-requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usedroptrail.com/delivery-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"status": "<string>",
"from_location": "<string>",
"to_location": "<string>",
"estimated_weight": 123,
"package_count": 123,
"created_at": "<string>",
"estimated_price": 123
}
],
"pagination": {
"total": 123,
"pages": 123,
"current_page": 123,
"per_page": 123
}
}Delivery Requests
List Delivery Requests
Retrieve a list of delivery requests
GET
/
delivery-requests
List Delivery Requests
curl --request GET \
--url https://api.usedroptrail.com/delivery-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usedroptrail.com/delivery-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usedroptrail.com/delivery-requests', 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/delivery-requests",
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: Bearer <token>"
],
]);
$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.usedroptrail.com/delivery-requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.usedroptrail.com/delivery-requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usedroptrail.com/delivery-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"status": "<string>",
"from_location": "<string>",
"to_location": "<string>",
"estimated_weight": 123,
"package_count": 123,
"created_at": "<string>",
"estimated_price": 123
}
],
"pagination": {
"total": 123,
"pages": 123,
"current_page": 123,
"per_page": 123
}
}Get a paginated list of delivery requests associated with your account.
Query Parameters
integer
Page number for pagination (default: 1)
integer
Number of records per page (default: 20, max: 100)
string
Filter by delivery status (PENDING, ACCEPTED, IN_TRANSIT, DELIVERED, CANCELLED)
string
Filter requests created on or after this date (ISO 8601)
string
Filter requests created before this date (ISO 8601)
Response
array
List of delivery request objects
Show properties
Show properties
string
The unique identifier for the delivery request
string
Current status of the delivery request
string
Full pickup location address
string
Full delivery destination address
number
Estimated weight of the package in kilograms
integer
Number of packages in the delivery
string
ISO 8601 timestamp when the request was created
number
Estimated delivery price in USD
object
Example Response
⌘I