Vehicle API - V2
Get vehicle type.
Returns detailed information about a vehicle type including name, icon, compatible combinations, and services.
Endpoint
GET - https://api.travisroadservices.com/v2/vehicle_types/{id}
Copy
Path params
| Parameter | Type | Description |
|---|---|---|
id
|
string | Unique identifier of the vehicle type. |
Request body
No request bodyResponse body
Response 200
VehicleTypeResource resource
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 tokenResponse 403
No response body - You don't have access to this API resourceResponse 404
Not found
Fields
| Field | Type | Description |
|---|---|---|
title
|
string | A short, human-readable summary of the problem. |
detail
|
string | A human-readable explanation specific to this occurrence of the problem. |
status
|
number | The HTTP status code applicable to this problem. |
instance
|
string | A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. |
type
|
string | A URI reference that identifies the problem type |
Example