List available driver status options.
Retrieves all available Driver Statuses previously created for a REVEAL account. All options are returned regardless of when they were created.
Response
application/json
Response
Successfully retrieved the list of available driver status options.
An available driver status option configured within the REVEAL account.
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:Working Time
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock In
The DriverStatusType the request content must map to. Each option maps to the following enumerator value: NotSet = 0, None = 1, PunchIn = 2, PunchOut = 4, LunchStart = 8, LunchEnd = 16, BreakStart = 32, BreakEnd = 64, All = 127. At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports. Integration users can send additional driver statuses, 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 is returned.
Allowed values:NotSetNonePunchInPunchOutLunchStartLunchEndBreakStartBreakEndAll
Example:PunchOut
The date the Driver Status Type Code was created within the REVEAL account and made available for use to apply to a driver status activity.
Example:2016-12-21T19:29:36.513Z
Create a new driver status option.
Creates driver statuses within a REVEAL account. Users cannot manage driver status options through the REVEAL UI, and therefore all new driver statuses must be created from this API before applying them to a driver’s activity.
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.
Body
application/json
Body
The Code, optional Description and DriverStatusType of the driver status option to create.
DriverStatusOptionRequest
The payload used to create a driver status option within a REVEAL account.
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock Out
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:None Working Time
The DriverStatusType the request content must map to. Each option maps to the following enumerator value: NotSet = 0, None = 1, PunchIn = 2, PunchOut = 4, LunchStart = 8, LunchEnd = 16, BreakStart = 32, BreakEnd = 64, All = 127. At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports. Integration users can send additional driver statuses, 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 is returned.
Allowed values:NotSetNonePunchInPunchOutLunchStartLunchEndBreakStartBreakEndAll
Example:PunchOut
Response
application/json
Response
Driver status option successfully created.
DriverStatusOptionResponse
The response returned when a driver status option is created. Note: in the sample response the DriverStatusType is returned as the numeric enumerator value in string form (e.g. PunchOut maps to “4”).
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:None Working Time
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock Out
The enumerator value that the Driver Status Type is mapped to, returned as a numeric string. Mapping: NotSet = 0, None = 1, PunchIn = 2, PunchOut = 4, LunchStart = 8, LunchEnd = 16, BreakStart = 32, BreakEnd = 64, All = 127.
Allowed values:01248163264127
Example:4
The date the Driver Status Type Code was created within the REVEAL account and made available for use to apply to a driver status activity.
Example:2016-12-21T19:32:14.8774588Z
DriverStatusOptionResponse
objectThe response returned when a driver status option is created. Note: in the sample response the DriverStatusType is returned as the numeric enumerator value in string form (e.g. PunchOut maps to “4”).
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:None Working Time
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock Out
The enumerator value that the Driver Status Type is mapped to, returned as a numeric string. Mapping: NotSet = 0, None = 1, PunchIn = 2, PunchOut = 4, LunchStart = 8, LunchEnd = 16, BreakStart = 32, BreakEnd = 64, All = 127.
Allowed values:01248163264127
Example:4
The date the Driver Status Type Code was created within the REVEAL account and made available for use to apply to a driver status activity.
Example:2016-12-21T19:32:14.8774588Z
ErrorResponse
objectError response returned with a 400 or 500 status.
A human-readable description of the error.
DriverStatusOptionRequest
objectThe payload used to create a driver status option within a REVEAL account.
The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.
Example:Clock Out
A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.
Example:None Working Time
The DriverStatusType the request content must map to. Each option maps to the following enumerator value: NotSet = 0, None = 1, PunchIn = 2, PunchOut = 4, LunchStart = 8, LunchEnd = 16, BreakStart = 32, BreakEnd = 64, All = 127. At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports. Integration users can send additional driver statuses, 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 is returned.
Allowed values:NotSetNonePunchInPunchOutLunchStartLunchEndBreakStartBreakEndAll
Example:PunchOut