cURL
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" } ] }
Retrieve a list of work orders with related tasks, payments, and tags.
Page number for paginated results
1
Filter work orders by status
List of work orders retrieved successfully
Total number of work orders
50
URL to the next page of results
"/work-orders/?page=2"
URL to the previous page of results
null
Show child attributes