This API version is deprecated

Please use the latest version for continued support and access to new features. View latest API documentation

Vehicle API

List vehicles.

Retrieves the collection of VehicleResource resources.


Open Swagger Specification

Endpoint

    GET - https://api.travisroadservices.com/v1/vehicles
    Copy
  

Query params

Parameter Type Description
licensePlate string Filters vehicles by license plate.
fleetNumber string Filters vehicles by fleet number.
page string The collection page number
itemsPerPage string The number of items per page

Request body

No request body

Response body

Response 200

VehicleResource collection

Fields

Field Type Description
id integer Unique identifier of the vehicle.
licensePlate string License plate of the vehicle, communicated to service partners to identify the vehicle.
fleetNumber string Fleet number for filtering or display within the customer fleet.
vehicleType integer Vehicle type ID (e.g. truck, semi-trailer), retrieved via the vehicle types API.
isDefaultVehicle boolean Indicates whether this is the default vehicle for single-driver users.
vehicleDepot object Vehicle depot to which this vehicle is assigned for invoicing purposes.
id string
import object Import record associated with this vehicle if created via bulk import.
id string (uuid) Unique identifier of the import.

Example

Response 401

No response body - No bearer token set verify if your token is added as bearer token

Response 403

No response body - You don't have access to this API resource