Order Tasks Controller
List tasks for an order
get/orders/{orderId}/tasks
Path parameters
orderIdnumber required
Query parameters
assignedTonumber
Example:5
Filter by assigned user ID
taskStatusIdnumber
Example:1
Filter by task status ID
isOverdueboolean
Example:true
Filter overdue tasks only
isCompletedboolean
Filter completed tasks when true, non-completed when false. Defaults to false when taskStatusId is not provided.
priority'low' | 'medium' | 'high'
Filter by priority
searchstring
Example:follow up
Search in title and description
sortBy'title' | 'createdAt' | 'dueDate' | 'priority' | 'updatedAt'
Example:createdAt
Field to sort by
sortType'ASC' | 'DESC'
Example:DESC
Sort direction
pagenumber required
Page number
sizenumber required
Example:10
Page size
Response
Tasks retrieved successfully
Example response
{
"totalItems": 25,
"items": [
{
"id": 1,
"orderId": 1001,
"title": "Follow up with customer",
"description": "Call customer about documents",
"status": {
"id": 1,
"status": "To Do",
"backgroundColor": "#6B7280",
"textColor": "#FFFFFF",
"borderColor": "#4B5563"
},
"priority": "medium",
"assignedToUser": {
"id": 5,
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"createdByUser": {
"id": 5,
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"media": [
{
"id": 1,
"filename": "document.pdf",
"url": "https://s3.amazonaws.com/bucket/uploads/tasks/uuid.pdf",
"contentType": "application/pdf",
"size": 1024
}
]
}
],
"size": 10
}Changes
No recorded changes to this endpoint across all 1 revision of this API.