Tasks API

Task management for order workflows. Create tasks, assign to users, track completion, and maintain audit history.

Endpoints

MethodEndpointDescription
POST/api/v1/tasksCreate task
GET/api/v1/tasksList tasks
GET/api/v1/tasks/{id}Get task
PUT/api/v1/tasks/{id}Update task
DELETE/api/v1/tasks/{id}Delete task
POST/api/v1/tasks/{id}/completeMark complete
GET/api/v1/tasks/{id}/historyGet history

Task Statuses

StatusDescription
pendingTask created, not started
in_progressWork in progress
completedTask finished
cancelledTask cancelled

Database Schema

Tasks Table

FieldTypeDescription
idINT (PK)Task ID
order_idVARCHARRelated order ID
titleVARCHARTask title
descriptionTEXTTask details
statusENUMpending, in_progress, completed, cancelled
assigned_toINT (FK)Assignee user ID
assigned_byINT (FK)Assigner user ID
deadlineDATETIMEDue date
completed_atDATETIMECompletion timestamp
created_atDATETIMECreated timestamp
updated_atDATETIMEUpdated timestamp
Request
GET /api/v1/status
Response