This API returns the Driver’s overall details along with the current status. The API requires Account ID and Driver ID as input parameter.
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Access token which was generated earlier
Body Params application/json
{
"acctId": "string",
"driverId": "string"
}
Request samples
curl --location --request POST '/devices/driver-overview' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"acctId": "string",
"driverId": "string"
}'
Responses
array of:
User current status-> 1: Off Duty, 2: Sleeper, 3: Driving, 4: On Duty (Not Driving)
Minute, – Shift Hour Left
If vahicle is unassigned to any driver - N/A , if driver type is main driver then -(Main) +LicenseId of driver otherwise (Co)+LicenseId of driver
violation
array [object {7}]
optionalID of HOS_VIOLATION_RECORD table
1:Rule A, 2:Rule B, 3:Rule C, 4:Rule D
Date with format of yyyyMMdd. (ex) '20150909'
Violation start time. Unit is minute
Violation end time. Unit is minute
0:original triggered; 1: Auto generate
Violation count. Number of violations
Date with format of yyyyMMdd. (ex) “20150909”.
Minute, Driving Hour Left
[
{
"breakRequired": 0,
"status": 0,
"shiftLimit": "string",
"vehicle": "string",
"violation": [
{
"id": 0,
"userId": "string",
"type": 0,
"shortDate": 0,
"startTime": 0,
"endTime": 0,
"flag": 0
}
],
"driverId": "string",
"driverPhone": "string",
"cycleLimit": 0,
"violationNum": 0,
"shortDate": 0,
"driverName": "string",
"driverEmail": "string",
"drivingLimit": 0
}
]
Modified at 2025-02-28 08:12:14