Vehicle API - V2

List vehicle types.

Returns a list of all available vehicle types, including name, icon, compatible combinations, and services.


Open Swagger Specification

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 body

Response 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

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