This API version is deprecated
Please use the latest version for continued support and access to new features. View latest API documentation
Vehicle API
Get vehicle.
Retrieves a VehicleResource resource.
Endpoint
GET - https://api.travisroadservices.com/v1/vehicles/{id}
Copy
Path params
| Parameter | Type | Description |
|---|---|---|
id
|
string | VehicleResource identifier |
Request body
No request bodyResponse body
Response 200
VehicleResource resource
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. |
fuelCard
|
object | Fuel card linked to this vehicle for payment processing. |
id
|
integer | |
cardNumber
|
string | |
isMainCard
|
boolean | |
status
|
string |
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