Skip to main content
GET
/
work-orders
Get Work Order List
curl --request GET \
  --url https://{company}.datatruck.io/api/v1/openapi/work-orders/ \
  --header 'Authorization: <api-key>'
{
  "count": 50,
  "next": "/work-orders/?page=2",
  "previous": null,
  "results": [
    {
      "id": 1001,
      "number": "WO-2025-001",
      "status": "Pending",
      "vendor": "ABC Auto Repair",
      "assigned_to": "John Doe",
      "mc_number": "MC-123456",
      "truck": "Truck-45",
      "trailer": "Trailer-22",
      "approved_by": "Jane Smith",
      "custom_payment_method": "Wire Transfer",
      "total_price": "1200.50",
      "paid_amount": "500.00",
      "balance": "700.50",
      "work_order_tasks": [
        {
          "id": 1,
          "number": "TASK-1001",
          "custom_task": "Brake replacement",
          "parts_price": "200.00",
          "parts_quantity": 2,
          "total_parts_price": "400.00",
          "labor_price": "100.00",
          "labor_hours": 2,
          "total_labor_price": "200.00",
          "total_price": "600.00"
        }
      ],
      "tags": [
        {
          "id": 10,
          "name": "Urgent"
        }
      ],
      "work_order_payments": [
        {
          "id": 5,
          "amount": "500.00",
          "note": "Partial payment received",
          "payment_date": "2025-03-10"
        }
      ],
      "scheduled_on_date": "2025-03-10T08:00:00Z",
      "procedure_name": "TRK Accident Damage / Repair"
    }
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

page
integer

Page number for paginated results

Example:

1

status
string

Filter work orders by status

Response

List of work orders retrieved successfully

count
integer

Total number of work orders

Example:

50

next
string | null

URL to the next page of results

Example:

"/work-orders/?page=2"

previous
string | null

URL to the previous page of results

Example:

null

results
object[]