Vehicle API - V2
Get vehicles
Returns a list of all vehicles, including basic details such as vehicle type and license plate. Optional data such as fleet number and VIN may also be included.
Endpoint
GET - https://api.travisroadservices.com/v2/vehicles
Copy
Query params
| Parameter | Type | Description |
|---|---|---|
search
|
string | Search for vehicle based on the type name, license plate, fleet number or vehicle depot name |
licensePlate
|
string | Search for vehicle based on the license plate |
fleetNumber
|
string | Search for vehicle based on the fleet number |
vehicleTypes[]
|
string | Search for vehicle based on the vehicle type, the available vehicle types can be retrieved by the vehicle type API |
vehicleDepots[]
|
string | Search for vehicle based on the vehicle depot id, the available vehicle depot id's can be fetched from the vehicle depot API |
canCombineWithVehicleType
|
string | Search for vehicle based on the possible combination with a vehicle type id |
service
|
string | Search for vehicle based on the service |
vehicleCategory
|
string | Search for vehicle based on the category (towing/towed) |
isReadyToWash
|
string | Search for vehicle based on the wash status |
exists[vehicleDepot]
|
string | Search for vehicle based on the criteria if they are connected to a vehicle depot |
fuelCards[]
|
string | Search for vehicle based on the fuel card id |
insideWashFrequencyStatus[]
|
string | Search for vehicles based on the inside wash frequency status. |
outsideWashFrequencyStatus[]
|
string | Search for vehicles based on the outside wash frequency status. |
order[id]
|
string | Sort the results based on the vehicle id |
order[vehicleDepotName]
|
string | Sort the results based on the vehicle depot name |
order[licensePlate]
|
string | Sort the results based on the license plate |
order[fleetNumber]
|
string | Sort the results based on the fleet number |
order[createdAt]
|
string | Sort the results based on the created date |
page
|
string | The collection page number |
itemsPerPage
|
string | The number of items per page |
Request body
No request bodyResponse body
Response 200