This API version is deprecated
Please use the latest version for continued support and access to new features. View latest API documentation
Vehicle API
Create vehicle.
Adds a new vehicle to the Travis system.
Endpoint
POST - https://api.travisroadservices.com/v1/vehicles
Copy
Request body
Fields
| Field | Type | Required | Description |
|---|---|---|---|
licensePlate
|
string | Yes | License plate of the vehicle, communicated to service partners to identify the vehicle. |
fleetNumber
|
string | No | Fleet number for filtering or display within the customer fleet. |
vehicleType
|
integer | No | Vehicle type ID (e.g. truck, semi-trailer), retrieved via the vehicle types API. |
isDefaultVehicle
|
boolean | No | Indicates whether this is the default vehicle for single-driver users. |
vehicleDepot
|
string (iri-reference) | No | Vehicle depot to which this vehicle is assigned for invoicing purposes. |
fuelCard
|
string (iri-reference) | No | Fuel card linked to this vehicle for payment processing. |
Example
Response body
Response 201
VehicleResource resource created
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