List jobs
GET /dn/jobs returns a paginated list of delivery and collection jobs with filters for date, status, assignee, and DO number.
curl --request GET \
--url https://app.detrack.com/api/v2/dn/jobs \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.detrack.com/api/v2/dn/jobs"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.detrack.com/api/v2/dn/jobs', 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://app.detrack.com/api/v2/dn/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <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://app.detrack.com/api/v2/dn/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<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://app.detrack.com/api/v2/dn/jobs")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.detrack.com/api/v2/dn/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "5b22055510c92b1a046ece04",
"type": "Delivery",
"do_number": "DO-10001",
"date": "2026-09-15",
"status": "dispatched",
"primary_job_status": "dispatched",
"tracking_status": "Info received",
"tracking_status_code": "info_recv",
"attempt": 1,
"reattempted": null,
"can_reattempt": false,
"detrack_number": "DET2000001",
"tracking_number": "T0",
"order_number": "ORN12345678",
"job_type": "<string>",
"job_sequence": 1,
"job_order": 1,
"tracking_link": "https://dtrk.co/abc123",
"contactless_signature_link": "<string>",
"booking_link": "<string>",
"verification_code": 4821,
"start_date": "2023-12-25",
"completion_date": "2023-12-25",
"job_received_date": "2023-12-25",
"job_age": 123,
"job_time": "<string>",
"time_window": "<string>",
"time_window_from": "09:00",
"time_window_to": "12:00",
"destination_time_window": "<string>",
"job_release_time": "08:00",
"start_time": "<string>",
"end_time": "<string>",
"service_time": 123,
"eta_time": "<string>",
"live_eta": "2023-11-07T05:31:56Z",
"time_zone": "<string>",
"created_at": "2026-09-15T14:04:06.017+08:00",
"updated_at": "2026-09-15T14:04:06.017+08:00",
"address": "Singapore 470140",
"company_name": "<string>",
"address_1": "<string>",
"address_2": "<string>",
"address_3": "<string>",
"postal_code": "470140",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"address_lat": 123,
"address_lng": 123,
"zone": "<string>",
"billing_address": "<string>",
"warehouse_address": "<string>",
"deliver_to_collect_from": "James Li",
"last_name": "<string>",
"phone_number": "65432178",
"sender_phone_number": "<string>",
"other_phone_numbers": "<string>",
"fax_number": "<string>",
"notify_email": "test@example.com",
"instructions": "<string>",
"remarks": "<string>",
"note": "<string>",
"customer": "<string>",
"account_number": "<string>",
"job_owner": "<string>",
"department": "<string>",
"sales_person": "<string>",
"identification_number": "<string>",
"bank_prefix": "<string>",
"invoice_number": "<string>",
"invoice_amount": 123,
"payment_mode": "<string>",
"payment_amount": 123,
"payment_collected": 123,
"job_fee": "<string>",
"job_price": 123,
"insurance_price": 123,
"insurance_coverage": true,
"total_price": 123,
"payer_type": "<string>",
"xero_invoice": {
"sendable": true,
"invoice_id": "<string>",
"invoice_number": "<string>",
"state": "<string>",
"error": "<string>",
"url": "<string>"
},
"assign_to": "Driver 1",
"driver_mobile_number": "<string>",
"group_id": "<string>",
"group_name": "<string>",
"group_code": "<string>",
"contractor_group_name": "<string>",
"contractor_group_ids": [
{
"$oid": "<string>"
}
],
"contractor_groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"depot": "<string>",
"depot_contact": "<string>",
"depot_contact_no": "<string>",
"depot_address": "<string>",
"run_number": "<string>",
"vehicle_type": "<string>",
"priority": 123,
"service_type": "<string>",
"on_demand": true,
"auto_reschedule": true,
"source": "<string>",
"carrier": "<string>",
"door": "<string>",
"items_count": 2,
"weight": 123,
"actual_weight": 123,
"parcel_width": 123,
"parcel_length": 123,
"parcel_height": 123,
"cubic_meters": 123,
"cubic_meter": 123,
"boxes": "<string>",
"cartons": 123,
"pieces": 123,
"envelopes": 123,
"pallets": 123,
"bins": 123,
"trays": 123,
"bundles": 123,
"rolls": 123,
"number_of_shipping_labels": 123,
"actual_crates": 123,
"actual_pallets": 123,
"actual_utilization": 123,
"temperature": 123,
"hold_time": 123,
"serial_number": "<string>",
"attachment_url": "<string>",
"reason": "<string>",
"received_by_sent_by": "<string>",
"pod_at": "2023-11-07T05:31:56Z",
"pod_time": "02:15 PM",
"pod_lat": 123,
"pod_lng": 123,
"pod_address": "<string>",
"signed_at": "2023-11-07T05:31:56Z",
"signature_file_url": "<string>",
"recipient_sender_device_signature_file_url": "<string>",
"recipient_sender_device_signed_by": "<string>",
"recipient_sender_device_pod_at": "2023-11-07T05:31:56Z",
"photo_1_file_url": "<string>",
"photo_1_at": "2023-11-07T05:31:56Z",
"photo_preview_ack_at": "2023-11-07T05:31:56Z",
"photo_preview_ack_lat": 123,
"photo_preview_ack_lng": 123,
"mass_pod": true,
"pod_gps_status": true,
"pod_gps_permission": true,
"geofence_ack_at": "2023-11-07T05:31:56Z",
"geofence_ack_lat": 123,
"geofence_ack_lng": 123,
"arrived_at": "2023-11-07T05:31:56Z",
"arrived_lat": 123,
"arrived_lng": 123,
"arrived_address": "<string>",
"address_tracked_at": "2023-11-07T05:31:56Z",
"texted_at": "2023-11-07T05:31:56Z",
"called_at": "2023-11-07T05:31:56Z",
"head_to_delivery_at": "2023-11-07T05:31:56Z",
"goods_service_rating": 123,
"driver_rating": 123,
"customer_feedback": "<string>",
"pick_up_from": "<string>",
"pick_up_time": "<string>",
"pick_up_address": "<string>",
"pick_up_address_1": "<string>",
"pick_up_address_2": "<string>",
"pick_up_address_3": "<string>",
"pick_up_city": "<string>",
"pick_up_state": "<string>",
"pick_up_country": "<string>",
"pick_up_postal_code": "<string>",
"pick_up_zone": "<string>",
"pick_up_lat": 123,
"pick_up_lng": 123,
"pick_up_assign_to": "<string>",
"pick_up_reason": "<string>",
"last_reason": "<string>",
"pick_up_failed_count": 123,
"deliver_failed_count": 123,
"info_received_at": "2023-11-07T05:31:56Z",
"scheduled_at": "2023-11-07T05:31:56Z",
"head_to_pick_up_at": "2023-11-07T05:31:56Z",
"pick_up_at": "2023-11-07T05:31:56Z",
"at_warehouse_at": "2023-11-07T05:31:56Z",
"out_for_delivery_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"pick_up_pod_lat": 123,
"pick_up_pod_lng": 123,
"pick_up_pod_address": "<string>",
"pick_up_signature_file_url": "<string>",
"pick_up_photo_1_file_url": "<string>",
"pick_up_mass_pod": true,
"pick_up_pod_gps_status": true,
"pick_up_pod_gps_permission": true,
"pick_up_geofence_ack_at": "2023-11-07T05:31:56Z",
"pick_up_geofence_ack_lat": 123,
"pick_up_geofence_ack_lng": 123,
"pick_up_photo_preview_ack_at": "2023-11-07T05:31:56Z",
"pick_up_photo_preview_ack_lat": 123,
"pick_up_photo_preview_ack_lng": 123,
"pick_up_contractor_group": {
"id": "<string>",
"name": "<string>"
},
"delivery_contractor_group": {
"id": "<string>",
"name": "<string>"
},
"pick_up_contractor_group_name": "<string>",
"delivery_contractor_group_name": "<string>",
"items": [
{
"id": "5b22055510c92b1a046ece05",
"sku": "12345678",
"description": "iPad",
"quantity": 10,
"checked": false
}
],
"milestones": [
{
"status": "info_recv",
"assign_to": null,
"reason": null,
"pod_at": "2026-09-15T06:04:06.017Z",
"created_at": "2026-09-15T06:04:06.017Z",
"user_name": "Simon"
}
]
}
],
"links": {
"first": "<string>",
"last": "<string>",
"next": "<string>",
"prev": "<string>"
}
}{
"code": "invalid_key",
"message": "Invalid key"
}{
"code": "forbidden"
}{
"code": "error",
"message": "Error while retrieving data"
}created_at.
For what status, primary_job_status, and tracking_status mean, see Status fields.Authorizations
Your Detrack API key, from Integrations > API Key in the dashboard.
Query Parameters
Page number.
Records per page. The API doesn't cap it, but keep it to 100 or fewer.
Comma-separated fields to sort by. Prefix a field with - for descending, for example -created_at. Allowed: do_number, start_date, date, created_at, assign_to, status, job_sequence, job_time, customer. Other fields are ignored.
Filter by job date (YYYY-MM-DD).
Filter by job type.
Delivery, Collection Filter by assigned driver name. Send it empty to list unassigned jobs.
Filter by status. Separate several with commas, for example dispatched,completed.
Filter by exact DO number.
Free-text search. With date, it matches DO number, recipient name, address, assignee, zone, and item description (partial, case-insensitive) or the exact tracking number; email isn't searched, and status must be a single exact value (or unassigned). When query is set, do_number, assign_to, and sort are ignored, and type and status only apply with date.
curl --request GET \
--url https://app.detrack.com/api/v2/dn/jobs \
--header 'X-API-KEY: <api-key>'import requests
url = "https://app.detrack.com/api/v2/dn/jobs"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://app.detrack.com/api/v2/dn/jobs', 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://app.detrack.com/api/v2/dn/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <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://app.detrack.com/api/v2/dn/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<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://app.detrack.com/api/v2/dn/jobs")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.detrack.com/api/v2/dn/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "5b22055510c92b1a046ece04",
"type": "Delivery",
"do_number": "DO-10001",
"date": "2026-09-15",
"status": "dispatched",
"primary_job_status": "dispatched",
"tracking_status": "Info received",
"tracking_status_code": "info_recv",
"attempt": 1,
"reattempted": null,
"can_reattempt": false,
"detrack_number": "DET2000001",
"tracking_number": "T0",
"order_number": "ORN12345678",
"job_type": "<string>",
"job_sequence": 1,
"job_order": 1,
"tracking_link": "https://dtrk.co/abc123",
"contactless_signature_link": "<string>",
"booking_link": "<string>",
"verification_code": 4821,
"start_date": "2023-12-25",
"completion_date": "2023-12-25",
"job_received_date": "2023-12-25",
"job_age": 123,
"job_time": "<string>",
"time_window": "<string>",
"time_window_from": "09:00",
"time_window_to": "12:00",
"destination_time_window": "<string>",
"job_release_time": "08:00",
"start_time": "<string>",
"end_time": "<string>",
"service_time": 123,
"eta_time": "<string>",
"live_eta": "2023-11-07T05:31:56Z",
"time_zone": "<string>",
"created_at": "2026-09-15T14:04:06.017+08:00",
"updated_at": "2026-09-15T14:04:06.017+08:00",
"address": "Singapore 470140",
"company_name": "<string>",
"address_1": "<string>",
"address_2": "<string>",
"address_3": "<string>",
"postal_code": "470140",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"address_lat": 123,
"address_lng": 123,
"zone": "<string>",
"billing_address": "<string>",
"warehouse_address": "<string>",
"deliver_to_collect_from": "James Li",
"last_name": "<string>",
"phone_number": "65432178",
"sender_phone_number": "<string>",
"other_phone_numbers": "<string>",
"fax_number": "<string>",
"notify_email": "test@example.com",
"instructions": "<string>",
"remarks": "<string>",
"note": "<string>",
"customer": "<string>",
"account_number": "<string>",
"job_owner": "<string>",
"department": "<string>",
"sales_person": "<string>",
"identification_number": "<string>",
"bank_prefix": "<string>",
"invoice_number": "<string>",
"invoice_amount": 123,
"payment_mode": "<string>",
"payment_amount": 123,
"payment_collected": 123,
"job_fee": "<string>",
"job_price": 123,
"insurance_price": 123,
"insurance_coverage": true,
"total_price": 123,
"payer_type": "<string>",
"xero_invoice": {
"sendable": true,
"invoice_id": "<string>",
"invoice_number": "<string>",
"state": "<string>",
"error": "<string>",
"url": "<string>"
},
"assign_to": "Driver 1",
"driver_mobile_number": "<string>",
"group_id": "<string>",
"group_name": "<string>",
"group_code": "<string>",
"contractor_group_name": "<string>",
"contractor_group_ids": [
{
"$oid": "<string>"
}
],
"contractor_groups": [
{
"id": "<string>",
"name": "<string>"
}
],
"depot": "<string>",
"depot_contact": "<string>",
"depot_contact_no": "<string>",
"depot_address": "<string>",
"run_number": "<string>",
"vehicle_type": "<string>",
"priority": 123,
"service_type": "<string>",
"on_demand": true,
"auto_reschedule": true,
"source": "<string>",
"carrier": "<string>",
"door": "<string>",
"items_count": 2,
"weight": 123,
"actual_weight": 123,
"parcel_width": 123,
"parcel_length": 123,
"parcel_height": 123,
"cubic_meters": 123,
"cubic_meter": 123,
"boxes": "<string>",
"cartons": 123,
"pieces": 123,
"envelopes": 123,
"pallets": 123,
"bins": 123,
"trays": 123,
"bundles": 123,
"rolls": 123,
"number_of_shipping_labels": 123,
"actual_crates": 123,
"actual_pallets": 123,
"actual_utilization": 123,
"temperature": 123,
"hold_time": 123,
"serial_number": "<string>",
"attachment_url": "<string>",
"reason": "<string>",
"received_by_sent_by": "<string>",
"pod_at": "2023-11-07T05:31:56Z",
"pod_time": "02:15 PM",
"pod_lat": 123,
"pod_lng": 123,
"pod_address": "<string>",
"signed_at": "2023-11-07T05:31:56Z",
"signature_file_url": "<string>",
"recipient_sender_device_signature_file_url": "<string>",
"recipient_sender_device_signed_by": "<string>",
"recipient_sender_device_pod_at": "2023-11-07T05:31:56Z",
"photo_1_file_url": "<string>",
"photo_1_at": "2023-11-07T05:31:56Z",
"photo_preview_ack_at": "2023-11-07T05:31:56Z",
"photo_preview_ack_lat": 123,
"photo_preview_ack_lng": 123,
"mass_pod": true,
"pod_gps_status": true,
"pod_gps_permission": true,
"geofence_ack_at": "2023-11-07T05:31:56Z",
"geofence_ack_lat": 123,
"geofence_ack_lng": 123,
"arrived_at": "2023-11-07T05:31:56Z",
"arrived_lat": 123,
"arrived_lng": 123,
"arrived_address": "<string>",
"address_tracked_at": "2023-11-07T05:31:56Z",
"texted_at": "2023-11-07T05:31:56Z",
"called_at": "2023-11-07T05:31:56Z",
"head_to_delivery_at": "2023-11-07T05:31:56Z",
"goods_service_rating": 123,
"driver_rating": 123,
"customer_feedback": "<string>",
"pick_up_from": "<string>",
"pick_up_time": "<string>",
"pick_up_address": "<string>",
"pick_up_address_1": "<string>",
"pick_up_address_2": "<string>",
"pick_up_address_3": "<string>",
"pick_up_city": "<string>",
"pick_up_state": "<string>",
"pick_up_country": "<string>",
"pick_up_postal_code": "<string>",
"pick_up_zone": "<string>",
"pick_up_lat": 123,
"pick_up_lng": 123,
"pick_up_assign_to": "<string>",
"pick_up_reason": "<string>",
"last_reason": "<string>",
"pick_up_failed_count": 123,
"deliver_failed_count": 123,
"info_received_at": "2023-11-07T05:31:56Z",
"scheduled_at": "2023-11-07T05:31:56Z",
"head_to_pick_up_at": "2023-11-07T05:31:56Z",
"pick_up_at": "2023-11-07T05:31:56Z",
"at_warehouse_at": "2023-11-07T05:31:56Z",
"out_for_delivery_at": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"pick_up_pod_lat": 123,
"pick_up_pod_lng": 123,
"pick_up_pod_address": "<string>",
"pick_up_signature_file_url": "<string>",
"pick_up_photo_1_file_url": "<string>",
"pick_up_mass_pod": true,
"pick_up_pod_gps_status": true,
"pick_up_pod_gps_permission": true,
"pick_up_geofence_ack_at": "2023-11-07T05:31:56Z",
"pick_up_geofence_ack_lat": 123,
"pick_up_geofence_ack_lng": 123,
"pick_up_photo_preview_ack_at": "2023-11-07T05:31:56Z",
"pick_up_photo_preview_ack_lat": 123,
"pick_up_photo_preview_ack_lng": 123,
"pick_up_contractor_group": {
"id": "<string>",
"name": "<string>"
},
"delivery_contractor_group": {
"id": "<string>",
"name": "<string>"
},
"pick_up_contractor_group_name": "<string>",
"delivery_contractor_group_name": "<string>",
"items": [
{
"id": "5b22055510c92b1a046ece05",
"sku": "12345678",
"description": "iPad",
"quantity": 10,
"checked": false
}
],
"milestones": [
{
"status": "info_recv",
"assign_to": null,
"reason": null,
"pod_at": "2026-09-15T06:04:06.017Z",
"created_at": "2026-09-15T06:04:06.017Z",
"user_name": "Simon"
}
]
}
],
"links": {
"first": "<string>",
"last": "<string>",
"next": "<string>",
"prev": "<string>"
}
}{
"code": "invalid_key",
"message": "Invalid key"
}{
"code": "forbidden"
}{
"code": "error",
"message": "Error while retrieving data"
}