1.0OAS 3.0

The Driver REST Service is included within the REVEAL Customer Meta Data API suite. Integrated customers and partners can leverage this API to create, update, and delete drivers within a REVEAL account to synchronize records between back-office systems.

This API will use the following unique identifier(s): Driver Number. Standard REST verbs are applied: GET, POST, PUT, DELETE.

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

Driver API

Operations for creating, retrieving, updating, and deleting drivers within a REVEAL account, including key fob assignments and logbook settings.

Retrieve all drivers in the account.

Retrieve Driver data by calling for all drivers within an account. Optionally filter by key fob id or driver id; a filtered call returns a single driver. The returned response is restricted to the REVEAL account’s data plan.

get
https://api.us.vzconnect.com/cmd/v1/drivers

Query Parameters

keyfobidstring

Optional key fob id in hexadecimal format (8, 12 or 16 characters). When supplied, only the driver assigned to that key fob is returned. Takes precedence over driverId if both are supplied. A key fob id that is invalid or not assigned to a driver does not return an empty list; the request fails.

Example:23456789

driverIdinteger(int32)

Optional driver id. When supplied (and keyfobid is not), only the driver with that id is returned. A driver id that is invalid or not found does not return an empty list; the request fails.

Example:1

Response

application/json

Successfully retrieved the list of drivers.

A driver together with related API links.

Driverobjectrequired

A driver record within a REVEAL account.

Show Child Parameters
Linksobjectrequired

Always returned. Href values are empty strings when the driver has no Driver Number.

Show Child Parameters
 
application/json

Create a new driver.

Create a driver record within the REVEAL account. Successful calls return a 201 code with the object details that were posted to the account.

post
https://api.us.vzconnect.com/cmd/v1/drivers

Body

application/json

Driver object containing the details of the new driver to create.

DriverWrite

Driver payload used to create (POST) a driver record.

DriverNumberstringrequired

The Driver Number, the unique identifier used to reference the driver within the API.

Example:100096

EmailAddressstring | null

The email address for the driver. Must be unique. If several addresses are supplied, only the first is used, limited to 64 characters.

Example:user@example.com

FirstNamestring

The first name of the driver.

Example:Chris

LastNamestring

The last name of the driver.

Example:Abernathy

EnableMobileAccessboolean

True indicates the driver will have access to mobile applications. Default is false.

Default:false

Example:false

PhoneNumberstring | null

The phone number for the driver.

Example:5551234567

Response

application/json

Driver successfully created.

Driver payload used to create (POST) a driver record.

DriverNumberstringrequired

The Driver Number, the unique identifier used to reference the driver within the API.

Example:100096

EmailAddressstring | null

The email address for the driver. Must be unique. If several addresses are supplied, only the first is used, limited to 64 characters.

Example:user@example.com

FirstNamestring

The first name of the driver.

Example:Chris

LastNamestring

The last name of the driver.

Example:Abernathy

EnableMobileAccessboolean

True indicates the driver will have access to mobile applications. Default is false.

Default:false

Example:false

PhoneNumberstring | null

The phone number for the driver.

Example:5551234567

DriverIdinteger

Echoed from the request; always 0 on create.

Example:0

 
application/json

Retrieve a specific driver by driver number.

Retrieve a specific driver by Driver Number.

get
https://api.us.vzconnect.com/cmd/v1/drivers/{driverNumber}

Path Parameters

driverNumberstringrequired

The Driver Number, the unique identifier used to reference the driver within the API.

Example:100096

Response

application/json

Successfully retrieved the driver details.

DriverResource

A driver together with related API links.

Driverobjectrequired

A driver record within a REVEAL account.

Show Child Parameters
Linksobjectrequired

Always returned. Href values are empty strings when the driver has no Driver Number.

Show Child Parameters
 
application/json