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