Task statistics
tookan_get_task_statsTask counts per status (e.g. successful vs failed), optionally for one task type, one team and a date range. Task status codes: 0 assigned, 1 started, 2 successful, 3 failed, 4 in progress/arrived, 6 unassigned, 7 accepted/acknowledged, 8 declined, 9 cancelled, 10 deleted. POST /v2/user_task_stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | No | Only tasks of this team. | |
| end_date | No | End date, YYYY-MM-DD. | |
| job_type | No | Task type: 0 = pickup, 1 = delivery, 2 = appointment, 3 = field workforce (FOS). | |
| job_status | No | Only these statuses, e.g. [2, 3]. | |
| start_date | No | Start date, YYYY-MM-DD. |