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.

get
https://api.us.vzconnect.com/da/v1/driverstatuses/{driverNumber}

Path Parameters

driverNumberstringrequired

The unique driver number to retrieve the status for.

Response

application/json

Successfully retrieved the driver’s current status.

DriverStatus

A driver’s current status as tracked within the REVEAL account.

Codestring

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

Example:Clock In

Descriptionstring

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

Example:Working Time

DriverNumberstring

The unique Driver Number the status is associated with.

Example:710

DriverStatusTypestring

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

StatusChangeDateUtcstring(date-time)

The date and time the status was applied to the referenced Driver Number.

Example:2016-12-22T09:29:36.513

 
application/json

DriverStatusRequest

object

The payload used to apply a status to a driver.

Codestringrequired

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

Example:Clock In

DriverNumberstringrequired

The unique Driver Number the status is being applied to.

Example:100096

StatusChangeDateUtcstring(date-time)

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

Example

DriverStatus

object

A driver’s current status as tracked within the REVEAL account.

Codestring

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

Example:Clock In

Descriptionstring

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

Example:Working Time

DriverNumberstring

The unique Driver Number the status is associated with.

Example:710

DriverStatusTypestring

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

StatusChangeDateUtcstring(date-time)

The date and time the status was applied to the referenced Driver Number.

Example:2016-12-22T09:29:36.513

Example

ErrorResponse

object

Generic error response. The documentation does not define an explicit error body schema.

Messagestring

A human-readable description of the error.

Example

DriverStatusType

string

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