1.0OAS 3.0

The LogBook API provides LogBook and compliance-related information to 3rd party systems for partnership opportunities and customer solutions. It enhances Time Card Reporting, Fleet Maintenance, Fleet Management, Routing, and Dispatching systems with a driver’s LogBook information. The Compliance API is offered as a RESTful web service and uses the standard REST verb GET. The unique identifier used within this API method set is the Driver Number.

Note: The current version does not support devices tracking Non-Powered Assets. The returned response is restricted to the Reveal account’s data plan; if the information being queried is outside of the data plan, a 400 Bad Request response is returned.

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

Logbook API

Operations for retrieving a driver’s current duty status, duty history for a 24-hour period starting at a date and time you choose (within the last 6 months) and remaining hours-of-service time within a REVEAL account.

Retrieve remaining driving time for a driver.

Returns Hours of Service (HOS) for a driver against the ruleset or cycle. The integrated user must provide a valid Driver Number. The response includes the driver’s last status date and time along with the number of driving hours left for today and the on-duty hours left in the rule cycle. The values are based on the driver’s most recent status and are refreshed every time a driver’s status is changed. If the driver has no status within the last 6 months, the response is still 200 but contains only the _links object.

get
https://api.us.vzconnect.com/logbook/v1/driver/{drivernumber}/remainingtime

Path Parameters

drivernumberstringrequired

Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.

Example:c_3379569

Response

application/json

Successfully retrieved remaining time data for the driver. When the driver has no status within the last 6 months, only the _links object is returned (with just the remainingtime link).

RemainingTime

Hours of Service (HOS) for a driver against the ruleset or cycle. When the driver has no status within the last 6 months, only _links.remainingtime is returned and all other properties are absent.

DriverNumberstring

Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.

Example:c_3379569

FirstNamestring

The first name of the driver as recorded within the REVEAL vehicle profile.

Example:Driver First Name

LastNamestring

The last name of the driver as recorded within the REVEAL vehicle profile.

Example:Driver Last Name

VehicleNumberstring | null

Vehicle Number is the unique identifier for Vehicles created within REVEAL. Null when no vehicle is associated with the last status.

Example:34343423

VehicleNamestring | null

The Vehicle Name as recorded within the REVEAL vehicle profile. Null when no vehicle is associated with the last status.

Example:Vehicle85

RuleCycleinteger

Shows the last Rule Cycle for the Driver (number of days).

Example:8

HoursAgainstRuleSetobject

Driving time left for today and on-duty time left in the rule cycle, in hours. Values default to 0 when the information is not available.

Show Child Parameters
LastStatusstring

The driver’s last status received from the app, either entered by the driver through the LogBook App or proposed by an admin within the REVEAL account. Returned as the status name: OffDuty, Driving (on duty and driving, set automatically when the vehicle is driven), OnDutyNotDriving (logging Hours of Service but not driving), SleeperBerth (in the sleeper cabin, not driving) and, in rare cases, NoStatus or Diagnostic.

Example:OnDutyNotDriving

LastStatusDateTimeUTCstring(date-time)

The timestamp of the status change. Taken from the device time and sent to REVEAL as a UTC time. The remaining time can be calculated considering the last status time and date.

Example:2019-08-07T06:48:02.88

HoursRemainingSinceLastStatusobject

Time remaining since the last status, expressed in minutes (not hours). Daily Driving Minutes: the time this driver has left to drive today, at the point the status change was struck. Daily On Duty Minutes: the time this driver has left on duty today, at the point the status change was struck. Values default to 0 when the information is not available.

Show Child Parameters
_linksobject | null

Supplemental API links available for additional reference. The remainingtime link is always returned; driver, vehicle and logbooksettings are returned only when the driver has a status in the last 6 months.

Show Child Parameters
 
application/json

Retrieve the current duty status for a driver.

Retrieves the current LogBook status for a specific driver. The current LogBook status can be obtained by providing an existing driver number within the REVEAL account. If the driver has no status within the last 6 months, the response is still 200 but contains only the _links object.

get
https://api.us.vzconnect.com/logbook/v1/driver/{drivernumber}/statuscurrent

Path Parameters

drivernumberstringrequired

Driver Number is the unique identifier for Drivers created within REVEAL. This is the same identifier provided in the GET request call in order to return the desired LogBook information. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.

Example:99

Response

application/json

Successfully retrieved the driver’s current duty status. When the driver has no status within the last 6 months, only the _links object is returned (with just the current link).

LogbookStatus

Current LogBook status for a driver. When the driver has no status within the last 6 months, only _links.current is returned and all other properties are absent.

Statusstring

The driver’s duty status, either entered by the driver through the LogBook App or proposed by an admin within the REVEAL account. Returned as the status name: OffDuty, Driving (on duty and driving, set automatically when the vehicle is driven), OnDutyNotDriving (logging Hours of Service but not driving), SleeperBerth (in the sleeper cabin, not driving) and, in rare cases, NoStatus or Diagnostic.

Example:OnDutyNotDriving

SubStatusstring

The sub status applied to the main status in the LogBook App. Returned as the sub status name. Driving: DrivingNoSubStatus. OnDutyNotDriving: OnDutyNotDrivingNoSubStatus, OnDutyNotDrivingYardMoves, OnDutyNotDrivingFueling, OnDutyNotDrivingInspection, OnDutyNotDrivingLoad, OnDutyNotDrivingUnload, OnDutyNotDrivingFerryCrossing, OnDutyNotDrivingUnregulatedDrivingStart, OnDutyNotDrivingUnregulatedDrivingStop. OffDuty: OffDutyNoSubStatus, OffDutySplitBreak1, OffDutySplitBreak2, OffDutyDailyReset, OffDutyWeeklyReset, OffDuty30MinBreak, OffDutyPersonal, OffDutyPrivacy, OffDutyWaitingTime. SleeperBerth: SleeperBerthNoSubStatus, SleeperBerthSplitBreak1, SleeperBerthSplitBreak2, SleeperBerthDailyReset, SleeperBerthWeeklyReset, SleeperBerth30MinBreak. NoSubStatus is returned when no sub status applies.

Example:OffDuty30MinBreak

StatusDateTimeUTCstring(date-time)

The timestamp of the status change. Taken from the device time and sent to REVEAL as a UTC time.

Example:2017-06-20T19:35:24.46

StatusDurationSecondsinteger

Length of time (in seconds) the current status has been in effect, as stored when the status was last updated.

Example:88

UpdateDatetTimeUTCstring(date-time)

The timestamp value for when the updated Status was received by REVEAL.

Example:2017-06-20T19:35:24.45

TrailerNumberarray[string]

Reference identifier(s) associated with the trailer entered within the LogBook App. A stored value is split on spaces, so an individual reference cannot contain a space.

Example:["999999"]

ShippingReferencearray[string]

Reference number/identifier(s) associated with shipping stops for a particular vehicle entered in the LogBook app. A stored value is split on spaces, so an individual reference cannot contain a space.

Example:["8888888"]

Remarkstring | null

Additional comments related to the status update that is entered within the LogBook App. Null when no remark was entered.

Example:null

Addressobject | null

The address related to the location entered within the LogBook app for when the status was updated or changed. Contains the global standards for address components. May be null when no address is available.

Show Child Parameters
ModifiedBystring | null

The individual who most recently modified the LogBook Status, in the form ‘Last updated by ’. Null when the status has not been modified or the modifying user cannot be resolved.

Example:Last updated by Test User

DriverNumberstring

Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.

Example:99

FirstNamestring

The first name of the driver as recorded within the REVEAL vehicle profile.

Example:Driver First Name

LastNamestring

The last name of the driver as recorded within the REVEAL vehicle profile.

Example:Driver Last Name

VehicleNumberstring | null

Vehicle Number is the unique identifier for Vehicles created within REVEAL. Null when no vehicle is associated with the status.

Example:85

VehicleNamestring | null

The Vehicle Name as recorded within the REVEAL vehicle profile. Null when no vehicle is associated with the status.

Example:Vehicle 85

TimeRemainingSinceLastStatusobject

Time Remaining Since Last Status, in minutes. Daily Driving Minutes: the time this driver has left to drive today, at the point the status change was struck, before they get a violation. Daily On Duty Minutes: the time this driver has left on duty today, at the point the status change was struck. Values default to 0 when the information is not available.

Show Child Parameters
TimeUsedSinceLastResetobject

Time Used Since Last Reset, in minutes. Daily Driving Minutes: the total time the driver has driven today since the last daily reset. Daily On Duty Minutes: the total on-duty time since the last daily reset. Values default to 0 when the information is not available.

Show Child Parameters
_linksobject | null

Supplemental API links available for additional reference. The current link is always returned; driver, vehicle and logbooksettings are returned only when the driver has a status in the last 6 months.

Show Child Parameters
 
application/json

Retrieve duty status history for a driver.

Retrieves a driver’s duty status, vehicle and driver information for a 24-hour period. The user must provide a valid Driver Number along with a Start Date and Time. The response includes the LogBook status entries from the start date and time value entered up to 24 hours later, in chronological order, together with a count and links. Hourly and violation records are not included. The Start Date and Time must be within 6 months of the current date of the request being made. If there are no entries for the period, the response is still 200 with a Count of 0 and only the _links object.

get
https://api.us.vzconnect.com/logbook/v1/driver/{drivernumber}/statushistory

Query Parameters

startDateTimeUtcstring(date-time)required

The start date and time (UTC) of the 24-hour period to retrieve, for example 2017-06-20T19:35:24. Must be within 6 months of the current date of the request. If the value is missing, cannot be parsed as a date and time, or is older than 6 months, a 400 error is returned.

Example:2017-06-20T19:35:24.46

Path Parameters

drivernumberstringrequired

Driver Number is the unique identifier for Drivers created within REVEAL. If the provided Driver Number does not exist within the REVEAL account, a 404 error is returned.

Example:99

Response

application/json

Successfully retrieved the driver’s duty status history.

LogbookStatusHistoryResponse

LogBook status history for a driver over a 24-hour period.

Countinteger

The number of status entries returned in _embedded.HosStatuses.

Example:1

_linksobject

Supplemental API links available for additional reference.

Show Child Parameters
_embeddedobject

The status entries for the period. Omitted when no entries exist for the period.

Show Child Parameters
 
application/json