Driver Status API
Operations for retrieving a driver’s current clock-in or clock-out status and recording driver status changes within a REVEAL account.
Create a driver status record.
Manages a driver’s statuses throughout the day, enabling REVEAL users to compare a driver’s statuses against vehicle activity (and, where work order integration is enabled, against work orders and work order statuses). The Driver Status API cannot be used to apply statuses to a particular driver until the Driver Status Options API has first been used to configure the applicable driver statuses available within an account.
At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports to show punch in and out data. Integration users can send additional driver statuses available within REVEAL, but only Punch In and Out statuses will be shown within the UI.
The status becomes the driver’s current status only if its date is later than the date of the current status. An earlier-dated status is stored in the history and the current status is unchanged.
Body
application/json
Body
Driver status details including driver number and clock-in/out information.
DriverStatusRequest
The payload used to apply a status to a driver.
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock In
The unique Driver Number the status is being applied to.
Example:100096
The date and time the status was applied to the referenced Driver Number. If omitted, the current UTC time is used.
Example:2016-12-21T19:29:36.513
Response
Response
Driver status accepted. No content is returned.
Get driver status by driver number.
Retrieves a specified driver’s current status. The returned response is restricted to the REVEAL account’s data plan; if the driver’s current status is outside of the data plan, a 404 Not Found response is returned.
Path Parameters
The unique driver number to retrieve the status for.
Response
application/json
Response
Successfully retrieved the driver’s current status.
DriverStatus
A driver’s current status as tracked within the REVEAL account.
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock In
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:Working Time
The unique Driver Number the status is associated with.
Example:710
The DriverStatusType the request content must map to. At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports to show punch in and out data. Integration users can send additional driver statuses available within REVEAL, but only Punch In and Out statuses will be shown within the UI. When a POST is made successfully, the enumerator value that the Driver Status Type is mapped to will display as shown in the samples.
Allowed values:NotSetNonePunchInPunchOutLunchStartLunchEndBreakStartBreakEnd
Example:PunchIn
The date and time the status was applied to the referenced Driver Number.
Example:2016-12-22T09:29:36.513
DriverStatusRequest
objectThe payload used to apply a status to a driver.
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock In
The unique Driver Number the status is being applied to.
Example:100096
The date and time the status was applied to the referenced Driver Number. If omitted, the current UTC time is used.
Example:2016-12-21T19:29:36.513
DriverStatus
objectA driver’s current status as tracked within the REVEAL account.
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock In
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:Working Time
The unique Driver Number the status is associated with.
Example:710
The DriverStatusType the request content must map to. At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports to show punch in and out data. Integration users can send additional driver statuses available within REVEAL, but only Punch In and Out statuses will be shown within the UI. When a POST is made successfully, the enumerator value that the Driver Status Type is mapped to will display as shown in the samples.
Allowed values:NotSetNonePunchInPunchOutLunchStartLunchEndBreakStartBreakEnd
Example:PunchIn
The date and time the status was applied to the referenced Driver Number.
Example:2016-12-22T09:29:36.513