Vehicle API - V2
List vehicle types.
Returns a list of all available vehicle types, including name, icon, compatible combinations, and services.
Endpoint
GET - https://api.travisroadservices.com/v2/vehicle_types
Copy
Query params
| Parameter | Type | Description |
|---|---|---|
category
|
string | Filters vehicle types by category. Possible values: towing, towed. |
service
|
string | Filters vehicle types by service. Possible values: truckwash, parking, tankcleaning, repair, truckcharging. |
canCombineWithVehicleType
|
string | Filters vehicle types that can be combined with the given vehicle type ID. |
page
|
string | The collection page number |
itemsPerPage
|
string | The number of items per page |
Request body
No request bodyResponse body
Response 200
VehicleTypeResource collection
Fields
| Field | Type | Description |
|---|---|---|
id
|
int | Unique identifier of the vehicle type (integer). |
name
|
string | Human-readable name of the vehicle type. |
icon
|
string | URL of the vehicle type icon. May be null if no icon is assigned. |
category
|
string | Functional category of the vehicle type. |
canCombineWith
|
array | IDs of compatible combinations available for this vehicle type. |
services
|
array | List of services that can be performed for this vehicle type. |
Example