Rejected Tasks Report
Task rejection records with reason, moment, and driver details.
GET
/apidev/v1/reports/gt/rejected-tasksPermissionAPICLI_RPTGT_RECHAZOTAREA
Rate Limit10 req/min
Cache300s
Max Range31 days
Request
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
startdate | string | Yes | — | ISO 8601 start date-time (e.g. 2026-03-01T00:00:00). |
enddate | string | Yes | — | ISO 8601 end date-time. Max range 31 days from startdate. |
devices | string | No | — | Comma-separated device IDs. Max 500. |
drivers | string | No | — | Comma-separated driver IDs. Max 500. |
rejection_moments | string | No | — | Comma-separated moment codes. Max 10. Values: not_accepted, accepted, timeout, nack. |
rejection_reason_ids | string | No | — | Comma-separated rejection reason IDs. Max 100. |
limit | integer | No | 25 | Number of records per page (1–100). |
offset | integer | No | 0 | Number of records to skip for pagination. |
Code Examples
- cURL
- JavaScript
- Python
curl -s -H "Authorization: Bearer $TOKEN" \
-H "X-API-Key: $APIKEY" \
-H "tenant: $TENANT" \
"https://$TENANT/apidev/v1/reports/gt/rejected-tasks?startdate=2026-03-01T00:00:00&enddate=2026-03-15T23:59:59&limit=25"
const res = await fetch(
`https://${TENANT}/apidev/v1/reports/gt/rejected-tasks?startdate=2026-03-01T00:00:00&enddate=2026-03-15T23:59:59&limit=25`,
{
headers: {
'Authorization': `Bearer ${TOKEN}`,
'X-API-Key': APIKEY,
'tenant': TENANT,
},
}
);
const data = await res.json();
import requests
response = requests.get(
f"https://{TENANT}/apidev/v1/reports/gt/rejected-tasks",
headers={"Authorization": f"Bearer {TOKEN}", "X-API-Key": APIKEY, "tenant": TENANT},
params={"startdate": "2026-03-01T00:00:00", "enddate": "2026-03-15T23:59:59", "limit": 25},
)
data = response.json()
Response
Response Fields
| Field | Type | Description |
|---|---|---|
rejection_date | string | null | Rejection timestamp. |
task_number | string | null | Task number. |
device_name | string | Vehicle name. |
driver_name | string | Driver name. |
rejection_reason | string | Rejection reason text. |
not_accepted_message | string | Driver's rejection message. |
rejection_moment | string | Moment code. |
rejection_moment_text | string | Moment description. |
Example Response
{
"success": true,
"data": [
{
"rejection_date": "2026-03-05T08:22:00",
"task_number": "104820580001",
"device_name": "Truck A-101",
"driver_name": "Carlos Martinez",
"rejection_reason": "Route too far",
"not_accepted_message": "Cannot reach in time",
"rejection_moment": "not_accepted",
"rejection_moment_text": "Not accepted by driver"
}
],
"meta": {
"total": 1,
"limit": 25,
"offset": 0
}
}
Errors
| Code | HTTP | Description |
|---|---|---|
BAD_REQUEST | 400 | Missing required headers. |
VALIDATION_ERROR | 400 | Invalid params: missing dates, range > 31 days, invalid enum values. |
UNAUTHORIZED | 401 | Invalid or expired JWT / API Key. |
FORBIDDEN | 403 | User lacks required permission. |
RATE_LIMITED | 429 | Exceeded 10 req/min. |
INTERNAL_ERROR | 500 | Unexpected server error. |