1.0OAS 3.0

The Driver Status Options REST Service is included within the REVEAL Driver Activity API suite. Integrated customers and partners can leverage this API to list and create the driver statuses available within a REVEAL account.

This API will use the following unique identifier(s): Code, which is unique within a REVEAL account. Standard REST verbs are applied: GET, POST.

API Base URL
  • Server 1:https://api.us.vzconnect.com

Driver Status Options API

Operations for retrieving the driver status options configured for a REVEAL account and creating new ones.

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.

get
https://api.us.vzconnect.com/da/v1/driverstatusoptions

Response

application/json

Successfully retrieved the list of available driver status options.

An available driver status option configured within the REVEAL account.

Descriptionstring

A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.

Example:Working Time

Codestring

The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.

Example:Clock In

DriverStatusTypestring

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

CreatedDateUtcstring(date-time)

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

 
application/json

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.

post
https://api.us.vzconnect.com/da/v1/driverstatusoptions

Body

application/json

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.

Codestringrequired

The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.

Example:Clock Out

Descriptionstring

A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.

Example:None Working Time

DriverStatusTypestringrequired

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

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”).

Descriptionstring

A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.

Example:None Working Time

Codestring

The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.

Example:Clock Out

DriverStatusTypestring

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

CreatedDateUtcstring(date-time)

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

 
application/json

DriverStatusOptionResponse

object

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”).

Descriptionstring

A string field provided by the integration user to provide context for the Driver Status Type Code to be referenced.

Example:None Working Time

Codestring

The Driver Status Type Code string value that will be displayed as reference within REVEAL where available.

Example:Clock Out

DriverStatusTypestring

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

CreatedDateUtcstring(date-time)

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

Example