Retrieve a specific vehicle by vehicle number.

Retrieve a single vehicle specified by its Vehicle Number.

get
https://api.us.vzconnect.com/cmd/v1/vehicles/{vehiclenumber}

Path Parameters

vehiclenumberstringrequired

The Vehicle Number; the unique identifier used to reference the vehicle within the API.

Example:33901

Response

application/json

Successfully retrieved the vehicle details.

Vehicle

A vehicle record as returned by the GET Vehicle methods.

Namestring | null

The Vehicle Name as recorded within the REVEAL vehicle profile.

Example:FD 0339

VehicleNumberstring

The Vehicle Number is the unique identifier used to reference the vehicle within the API. It is not mandatory within the REVEAL account but is required for the API.

Example:33901

RegistrationNumberstring | null

Registration Number is not required within the REVEAL vehicle profile. When provided it must be unique within an account.

Example:null

VINstring | null

Vehicle Identification Number, the unique serial code provided by the automotive manufacturer for the vehicle.

Example:null

Makestring | null

The vehicle manufacturer’s brand.

Example:FORD

Yearinteger | null

The year the vehicle was manufactured.

Example:2010

Modelstring | null

The type of vehicle by the manufacturer.

Example:ECONOLINE

TankCapacitynumber | null(double)

Tank Capacity provided and referenced in liters. Not required, but a key element when using Fuel Card features.

Example:113.562353673961

HighwayMPGnumber | null(double)

Estimated Highway MPG provided by the customer, referenced in liters. Not required, but a key element when using Fuel Card features.

Example:6.72042

CityMPGnumber | null(double)

Estimated City MPG provided by the customer, referenced in liters. Not required, but a key element when using Fuel Card features.

Example:11.76073

VehicleSizeinteger

Vehicle Size classification. 0: Light Duty, 1: Medium Duty, 2: Heavy Duty, 3: Super Heavy Duty. Defaults to Light Duty.

Allowed values:123

Default:0

Example:0

HasNavigationDeviceboolean

Indicates whether the vehicle has a Garmin navigation device installed.

Example:true

FuelTypeinteger

The Fuel Type of the vehicle. 0: Not set, 1: Unleaded, 2: Diesel, 3: Electric.

Allowed values:123

Example:1

HasTachographboolean

Indicates whether the vehicle has a tachograph device installed.

Example:false

VehicleIdinteger

An integer primary key uniquely identifying each record in the table.

Example:1

FleetItemIdstring(uuid)

The unique identifier of the fleet item (vehicle). This is the preferred identifier moving forward and will eventually replace VehicleId.

Example:81b66e37-3ceb-46a8-96ca-ce31d8d1e070

 
application/json

Update a vehicle's details.

Update a vehicle’s profile details. The vehicle must already be assigned a unique Vehicle Number in order to update via the API. PUT methods do not return an object; the response is limited to standard HTTP status codes.

This is a partial update: fields marked as nullable in the request schema that are omitted or null are left unchanged. If VehicleNumber is provided, the vehicle’s Vehicle Number is changed to that value. HasNavigationDevice cannot be updated through this method.

put
https://api.us.vzconnect.com/cmd/v1/vehicles/{vehiclenumber}

Path Parameters

vehiclenumberstringrequired

The Vehicle Number; the unique identifier used to reference the vehicle within the API.

Example:890001

Body

application/json

Vehicle attributes to update.

VehicleUpdateRequest

Request body to update a vehicle’s profile details.

Namestring | null

The Vehicle Name as recorded within the REVEAL vehicle profile.

Example:Vehicle 1

VehicleNumberstring | null

The Vehicle Number; the unique identifier used to reference the vehicle within the API.

Example:890001

RegistrationNumberstring | null

Registration Number. When provided it must be unique within an account.

Example:44046

VINstring | null

Vehicle Identification Number.

Example:null

Makestring | null

The vehicle manufacturer’s brand.

Example:null

Yearinteger | null

The year the vehicle was manufactured.

Example:null

Modelstring | null

The type of vehicle by the manufacturer.

Example:null

TankCapacitynumber | null(double)

Tank Capacity in liters.

Example:null

HighwayMPGnumber | null(double)

Estimated Highway MPG in liters.

Example:null

CityMPGnumber | null(double)

Estimated City MPG in liters.

Example:null

VehicleSizeinteger | null

Vehicle Size classification. 0: Light Duty, 1: Medium Duty, 2: Heavy Duty, 3: Super Heavy Duty.

Allowed values:123

Example:0

FuelTypeinteger

The Fuel Type of the vehicle. 0: Not set, 1: Unleaded, 2: Diesel, 3: Electric.

Allowed values:123

Example:1

Response

application/json

Vehicle successfully updated.

 
application/json

Update a vehicle's hours of use.

Update a vehicle’s current hours of use as of a given date. The As Of date must be less than 30 days in the past. The request body should include Minutes of Use and the As Of date/timestamp.

put
https://api.us.vzconnect.com/cmd/v1/vehicles/{vehiclenumber}/hoursofuse

Path Parameters

vehiclenumberstringrequired

The Vehicle Number; the unique identifier used to reference the vehicle within the API.

Example:890001

Body

application/json

Hours of use data including MinutesOfUse and AsOf timestamp.

HoursOfUseUpdateRequest

Request body to update a vehicle’s hours of use as of a given date.

MinutesOfUseinteger

The minutes of use for the vehicle.

Example:6050

AsOfstring(date-time)required

The As Of date and timestamp for the hours of use. Must be less than 30 days in the past.

Example:2016-09-09T00:00:00

Response

application/json

Hours of use successfully updated.

 
application/json

Update a vehicle's odometer reading.

Update a vehicle’s current odometer, or odometer as of a given date. The As Of date must be less than 30 days in the past. The request body should include the Odometer (in kilometers) and the As Of date/timestamp.

put
https://api.us.vzconnect.com/cmd/v1/vehicles/{vehiclenumber}/odometer

Path Parameters

vehiclenumberstringrequired

The Vehicle Number; the unique identifier used to reference the vehicle within the API.

Example:890001

Body

application/json

Odometer data including the reading value and AsOf timestamp.

OdometerUpdateRequest

Request body to update a vehicle’s odometer as of a given date.

Odometernumber(double)

The odometer value, referenced in kilometers.

Example:47569

AsOfstring(date-time)required

The As Of date and timestamp for the odometer reading. Must be less than 30 days in the past.

Example:2016-09-01T00:00:00

Response

application/json

Odometer reading successfully updated.

 
application/json

Retrieve the primary group for a vehicle.

Retrieve the primary group associated with the given Vehicle Number.

get
https://api.us.vzconnect.com/cmd/v1/vehicles/{vehiclenumber}/primarygroup

Path Parameters

vehiclenumberstringrequired

The Vehicle Number; the unique identifier used to reference the vehicle within the API.

Example:890001

Response

application/json

Successfully retrieved the vehicle’s primary group.

VehiclePrimaryGroup

A vehicle’s primary group, as returned by the GET primary group method.

VehicleNumberstring

The Vehicle Number used in the request.

Example:890001

PrimaryGroupNamestring

The name of the vehicle’s primary group.

Example:North Region

PrimaryGroupIdstring

The Group ID of the vehicle’s primary group; the unique identifier assigned when creating and modifying groups within REVEAL’s Admin section.

Example:12345

 
application/json