curl --request GET \
--url https://{company}.datatruck.io/api/v1/openapi/orders/{pk} \
--header 'Authorization: <api-key>'import requests
url = "https://{company}.datatruck.io/api/v1/openapi/orders/{pk}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{company}.datatruck.io/api/v1/openapi/orders/{pk}', 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://{company}.datatruck.io/api/v1/openapi/orders/{pk}",
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: <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"
"net/http"
"io"
)
func main() {
url := "https://{company}.datatruck.io/api/v1/openapi/orders/{pk}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{company}.datatruck.io/api/v1/openapi/orders/{pk}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{company}.datatruck.io/api/v1/openapi/orders/{pk}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 12345,
"status": "In Progress",
"created_datetime": "2025-02-06T12:00:00Z",
"tags": [
{
"name": "Urgent"
}
],
"stops": [
{
"id": 123,
"order": 123,
"stop_type": "pickup",
"location": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"reference_id": "REF-001",
"proof_of_delivery": "<string>",
"ready_time_start_date": "2023-11-07T05:31:56Z",
"ready_time_end_date": "2023-11-07T05:31:56Z",
"note": "<string>"
}
],
"equipment_type": "Refrigerated",
"equipment_type_child": [
"Chilled Storage"
],
"estimated_mile": "1200.50",
"estimated_time": 10,
"eta_detail": {
"on_time": true,
"eta_datetime": "2023-11-07T05:31:56Z"
},
"trip": {
"id": 123,
"status": "assigned",
"trip_id": "TR-002489-01",
"mile": "574.31",
"empty_mile": "0.00",
"total_load_pay": "148.17",
"carrier__name": "<string>",
"driver__full_name": "<string>",
"team_driver__full_name": "<string>",
"truck__unit_number": "<string>",
"pickup": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"delivery": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"settlement": {
"settlement__status": "<string>",
"settlement__settlement_number": "<string>",
"settlement__is_sent": true
}
},
"trips": [
{
"id": 123,
"status": "assigned",
"trip_id": "TR-002489-01",
"mile": "574.31",
"empty_mile": "0.00",
"total_load_pay": "148.17",
"carrier__name": "<string>",
"driver__full_name": "<string>",
"team_driver__full_name": "<string>",
"truck__unit_number": "<string>",
"pickup": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"delivery": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"settlement": {
"settlement__status": "<string>",
"settlement__settlement_number": "<string>",
"settlement__is_sent": true
}
}
],
"batch_orders": {
"invoice_number": "<string>",
"is_sent": true,
"batch": {
"batch_number": "<string>",
"status": "<string>"
}
},
"assigned_driver_n_truck": {
"driver_full_name": "<string>",
"truck_unit_number": "<string>"
},
"assigned_carrier": "<string>",
"is_flagged": false,
"documents": [
{
"file_type": "rate_confirmation",
"file_link": "2026/10/8/5555ef6d-ade2-4804-80d3-6098a0551837/rate-confirmation.pdf",
"uploaded_by": "John Doe",
"uploaded_at": "2025-02-06T12:00:00Z"
}
],
"load_id": "LD-987654",
"shipment_id": "SHIP-123456",
"load_pay": "5000.00",
"total_miles": "1500.75",
"created_by__full_name": "John Doe",
"total_other_pay": "200.00",
"total_pay": "5200.00",
"per_mile_revenue": "3.25",
"dispatcher__full_name": "Alice Johnson",
"customer__company_name": "ABC Logistics",
"mc_number__company_name": "XYZ Carriers",
"office__office_name": "Dallas Office",
"pickup_appointment_time": "2025-02-06T08:30:00Z",
"delivery_appointment_time": "2025-02-07T15:00:00Z",
"pickup_time": "2025-02-06T09:00:00Z",
"delivery_time": "2025-02-07T16:30:00Z",
"transportation_mode": "Truckload",
"driver_requirements": [
"<string>"
],
"additional_equipments": [
"<string>"
],
"freight_requirements": [
"<string>"
],
"freight_requirements_min_temperature": "2.0",
"freight_requirements_max_temperature": "8.0",
"flagging_reason": null
}Get Load
Fetch details of a specific order by its ID.
curl --request GET \
--url https://{company}.datatruck.io/api/v1/openapi/orders/{pk} \
--header 'Authorization: <api-key>'import requests
url = "https://{company}.datatruck.io/api/v1/openapi/orders/{pk}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{company}.datatruck.io/api/v1/openapi/orders/{pk}', 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://{company}.datatruck.io/api/v1/openapi/orders/{pk}",
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: <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"
"net/http"
"io"
)
func main() {
url := "https://{company}.datatruck.io/api/v1/openapi/orders/{pk}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{company}.datatruck.io/api/v1/openapi/orders/{pk}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{company}.datatruck.io/api/v1/openapi/orders/{pk}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 12345,
"status": "In Progress",
"created_datetime": "2025-02-06T12:00:00Z",
"tags": [
{
"name": "Urgent"
}
],
"stops": [
{
"id": 123,
"order": 123,
"stop_type": "pickup",
"location": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"reference_id": "REF-001",
"proof_of_delivery": "<string>",
"ready_time_start_date": "2023-11-07T05:31:56Z",
"ready_time_end_date": "2023-11-07T05:31:56Z",
"note": "<string>"
}
],
"equipment_type": "Refrigerated",
"equipment_type_child": [
"Chilled Storage"
],
"estimated_mile": "1200.50",
"estimated_time": 10,
"eta_detail": {
"on_time": true,
"eta_datetime": "2023-11-07T05:31:56Z"
},
"trip": {
"id": 123,
"status": "assigned",
"trip_id": "TR-002489-01",
"mile": "574.31",
"empty_mile": "0.00",
"total_load_pay": "148.17",
"carrier__name": "<string>",
"driver__full_name": "<string>",
"team_driver__full_name": "<string>",
"truck__unit_number": "<string>",
"pickup": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"delivery": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"settlement": {
"settlement__status": "<string>",
"settlement__settlement_number": "<string>",
"settlement__is_sent": true
}
},
"trips": [
{
"id": 123,
"status": "assigned",
"trip_id": "TR-002489-01",
"mile": "574.31",
"empty_mile": "0.00",
"total_load_pay": "148.17",
"carrier__name": "<string>",
"driver__full_name": "<string>",
"team_driver__full_name": "<string>",
"truck__unit_number": "<string>",
"pickup": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"delivery": {
"id": 123,
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip_code": "<string>",
"contact_name": "<string>",
"place_name": "<string>",
"latitude": 33.749,
"longitude": -84.388,
"is_active": true
},
"settlement": {
"settlement__status": "<string>",
"settlement__settlement_number": "<string>",
"settlement__is_sent": true
}
}
],
"batch_orders": {
"invoice_number": "<string>",
"is_sent": true,
"batch": {
"batch_number": "<string>",
"status": "<string>"
}
},
"assigned_driver_n_truck": {
"driver_full_name": "<string>",
"truck_unit_number": "<string>"
},
"assigned_carrier": "<string>",
"is_flagged": false,
"documents": [
{
"file_type": "rate_confirmation",
"file_link": "2026/10/8/5555ef6d-ade2-4804-80d3-6098a0551837/rate-confirmation.pdf",
"uploaded_by": "John Doe",
"uploaded_at": "2025-02-06T12:00:00Z"
}
],
"load_id": "LD-987654",
"shipment_id": "SHIP-123456",
"load_pay": "5000.00",
"total_miles": "1500.75",
"created_by__full_name": "John Doe",
"total_other_pay": "200.00",
"total_pay": "5200.00",
"per_mile_revenue": "3.25",
"dispatcher__full_name": "Alice Johnson",
"customer__company_name": "ABC Logistics",
"mc_number__company_name": "XYZ Carriers",
"office__office_name": "Dallas Office",
"pickup_appointment_time": "2025-02-06T08:30:00Z",
"delivery_appointment_time": "2025-02-07T15:00:00Z",
"pickup_time": "2025-02-06T09:00:00Z",
"delivery_time": "2025-02-07T16:30:00Z",
"transportation_mode": "Truckload",
"driver_requirements": [
"<string>"
],
"additional_equipments": [
"<string>"
],
"freight_requirements": [
"<string>"
],
"freight_requirements_min_temperature": "2.0",
"freight_requirements_max_temperature": "8.0",
"flagging_reason": null
}Authorizations
Send your API key with the Token prefix: Authorization: Token <api-key>.
Path Parameters
The unique identifier of the order
Response
Successfully retrieved the order
Unique order ID
12345
Current status of the load
"In Progress"
Order creation timestamp
"2025-02-06T12:00:00Z"
List of tags associated with the order
Show child attributes
Show child attributes
Stops along the order route
Show child attributes
Show child attributes
Equipment type used for transportation
"Refrigerated"
List of child equipment types
Estimated miles for the trip
"1200.50"
Estimated travel time in hours
10
Show child attributes
Show child attributes
The load's latest trip, or null when the load has no trip. Kept for existing clients; see trips.
Show child attributes
Show child attributes
Every trip of the load, newest first. A load moved across several trucks has one trip per move; the first item is the same trip as trip. Empty when the load has no trip.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Whether the order has been flagged for attention.
false
Documents attached to the order, one item per file. Only rate confirmations, bills of lading and proofs of delivery are listed (a type can appear more than once), followed by the commercial invoice when the order has one. Other document types are not returned. Empty when the order has none of these.
Show child attributes
Show child attributes
Load identifier
"LD-987654"
Shipment identifier
"SHIP-123456"
Total payment amount for the load
"5000.00"
Total miles covered for the load
"1500.75"
Full name of the order creator
"John Doe"
Additional payments related to the order
"200.00"
Total payout for the order
"5200.00"
Revenue per mile (optional)
"3.25"
Full name of the dispatcher
"Alice Johnson"
Customer's company name
"ABC Logistics"
Motor carrier company name
"XYZ Carriers"
Office handling the order
"Dallas Office"
Scheduled pickup appointment time
"2025-02-06T08:30:00Z"
Scheduled delivery appointment time
"2025-02-07T15:00:00Z"
Actual pickup time
"2025-02-06T09:00:00Z"
Actual delivery time
"2025-02-07T16:30:00Z"
Mode of transportation
"Truckload"
Driver-specific requirements
Additional equipment required
Freight-specific requirements
Minimum temperature requirement
"2.0"
Maximum temperature requirement
"8.0"
Reason the order was flagged, if applicable.
null