Retrieve Vehicle
GEThttps://secure.fleetio.com/api/v1/vehicles/:id
Retrieve the details of an existing Vehicle.
Request
Path Parameters
The Fleetio ID of the relevant Vehicle.
You may also look up Vehicles by their VIN, license plate, or other external ID. See the guide on External Vehicle Ids for information on how to set this up.
Responses
- 200
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
The iso8601 date and time at which the vehicle was archived, for an archived vehicle.
2023-03-14T13:46:27-06:00
The name of the Fuel Type
associated with this vehicle.
Possible values: [us_gallons
, uk_gallons
, liters
]
The name of the Group
associated with this vehicle, for vehicles associated with a group.
This vehicle's name.
Possible values: [Owned
, Leased
, Rented
, Customer
]
Possible values: [imperial
, metric
]
This vehicles Vehicle Type
id.
The name of the Vehicle Type
associated with this Vehicle.
Indicates whether this Vehicle record is Sample Data.
The id of the Vehicle Status
of this vehicle.
The name of the Vehicle Status
associated with this Vehicle.
The hex color code of the Vehicle Status
associated with this Vehicle.
The measurement unit used for the Vehicle's primary, or secondary (if applicable), meter.
Possible values: [km
, hr
, mi
]
The current value of the primary meter for this Vehicle.
The date and time at which the primary meter was last updated.
2023-03-14T13:46:27-06:00
The average number of units of the primary meter used per day.
The measurement unit used for the Vehicle's primary, or secondary (if applicable), meter.
Possible values: [km
, hr
, mi
]
The current value of the secondary meter for this Vehicle.
The date and time at which the secondary meter was last updated.
2023-03-14T13:46:27-06:00
The average number of units of the secondary meter used per day.
The meter value at which this Vehicle was put into service.
The date on which this Vehicle was put into service.
2023-03-14T13:46:27-06:00
The meter value at which this Vehicle was or will be retired.
The date on which this Vehicle was or will be retired.
2023-03-14T13:46:27-06:00
The estimated number of months this Vehicle will be in service.
The estimated number of miles before which this Vehicle will be replaced.
The estimated resale price of this Vehicle in cents.
The number of Fuel Entries
associated with this Vehicle.
Possible values: >= 0
The number of Service Entries
associated with this Vehicle.
Possible values: >= 0
The number of Service Reminders
associated with this Vehicle.
Possible values: >= 0
The number of Vehicle Renewal Reminders
associated with this Vehicle.
Possible values: >= 0
The number of Comments
associated with this Vehicle.
Possible values: >= 0
The number of documents attached to this Vehicle.
Possible values: >= 0
The number of images attached to this Vehicle.
Possible values: >= 0
The number of Issues
this Vehicle is associated with.
Possible values: >= 0
The number of Work Orders
this Vehicle is associated with.
Possible values: >= 0
labels object[]
The ancestry of the Group associated with this Vehicle.
The color of this Vehicle.
The license plate number of this Vehicle.
The Vehicle Identification Number of this Vehicle.
This Vehicle's model year.
The name of this Vehicle's manufacturer.
The name of the model of this Vehicle.
The trim level of this Vehicle.
The month in which this Vehicle's registration expires.
Possible values: >= 0
and <= 12
The state, province, or territory in which this Vehicle is registered.
The URL of a small-sized version of the default image for this Vehicle.
Any External IDs associated with this Vehicle.
Whether this Vehicle has Auto Integrate enabled for it.
Assetable type for Vehicle is always Vehicle
for vehicles.
Possible values: [Vehicle
]
*Full details on working with Custom Fields here.
The id of the Axle Configuration
of this vehicle.
The name of the primary meter for this Vehicle.
The name of the secondary meter for this Vehicle.
The account number for this Vehicle's loan, if applicable.
The date and time at which this Vehicle's loan ends.
2023-03-14T13:46:27-06:00
The interest rate for this Vehicle's loan.
Notes about this Vehicle's loan.
The date and time at which this Vehicle's loan began.
Formatted according to ISO-8601 in User
's local time.
2023-03-14T13:46:27-06:00
Possible values: >= 1
The name of the Vendor
for this Vehicle's loan.
The number of inspection schedules this Vehicle is associated with.
Possible values: >= 0
The URL of the default image for this Vehicle.
The URL of a medium-sized version of the default image for this Vehicle.
The URL of a large-sized version of the default image for this Vehicle.
specs object
driver object
current_location_entry objectnullable
{
"id": 0,
"account_id": 0,
"archived_at": "2023-03-14T13:46:27-06:00",
"fuel_type_id": 0,
"fuel_type_name": "string",
"fuel_volume_units": "us_gallons",
"group_id": 0,
"group_name": "string",
"name": "string",
"ownership": "Owned",
"current_location_entry_id": 0,
"system_of_measurement": "imperial",
"vehicle_type_id": 0,
"vehicle_type_name": "string",
"is_sample": true,
"vehicle_status_id": 0,
"vehicle_status_name": "string",
"vehicle_status_color": "string",
"primary_meter_unit": "km",
"primary_meter_value": "string",
"primary_meter_date": "2023-03-14T13:46:27-06:00",
"primary_meter_usage_per_day": "string",
"secondary_meter_unit": "km",
"secondary_meter_value": "string",
"secondary_meter_date": "2023-03-14T13:46:27-06:00",
"secondary_meter_usage_per_day": "string",
"in_service_meter_value": "string",
"in_service_date": "2023-03-14T13:46:27-06:00",
"out_of_service_meter_value": "string",
"out_of_service_date": "2023-03-14T13:46:27-06:00",
"estimated_service_months": 0,
"estimated_replacement_mileage": "string",
"estimated_resale_price_cents": 0,
"fuel_entries_count": 0,
"service_entries_count": 0,
"service_reminders_count": 0,
"vehicle_renewal_reminders_count": 0,
"comments_count": 0,
"documents_count": 0,
"images_count": 0,
"issues_count": 0,
"work_orders_count": 0,
"labels": [
{
"id": 0,
"name": "string"
}
],
"group_ancestry": "string",
"color": "string",
"license_plate": "string",
"vin": "string",
"year": "string",
"make": "string",
"model": "string",
"trim": "string",
"registration_expiration_month": 0,
"registration_state": "string",
"default_image_url_small": "string",
"external_ids": {},
"ai_enabled": true,
"assetable_type": "Vehicle",
"custom_fields": {},
"axle_config_id": 0,
"meter_name": "string",
"secondary_meter_name": "string",
"loan_account_number": "string",
"loan_ended_at": "2023-03-14T13:46:27-06:00",
"loan_interest_rate": 0,
"loan_notes": "string",
"loan_started_at": "2023-03-14T13:46:27-06:00",
"loan_vendor_id": 0,
"loan_vendor_name": "string",
"inspection_schedules_count": 0,
"default_image_url": "string",
"default_image_url_medium": "string",
"default_image_url_large": "string",
"specs": {
"id": 0,
"vehicle_id": 0,
"account_id": 0,
"body_type": "string",
"body_subtype": "string",
"drive_type": "string",
"brake_system": "string",
"msrp_cents": 0,
"fuel_tank_capacity": 0,
"fuel_tank_2_capacity": 0,
"front_track_width": 0,
"ground_clearance": 0,
"height": 0,
"length": 0,
"rear_track_width": 0,
"width": 0,
"wheelbase": 0,
"front_tire_psi": "string",
"rear_tire_psi": "string",
"base_towing_capacity": "string",
"curb_weight": 0,
"gross_vehicle_weight_rating": 0,
"bed_length": "string",
"max_payload": "string",
"rear_axle_type": "string",
"front_tire_type": "string",
"front_wheel_diameter": "string",
"rear_tire_type": "string",
"rear_wheel_diameter": "string",
"epa_city": 0,
"epa_highway": 0,
"epa_combined": 0,
"engine_description": "string",
"engine_brand": "string",
"engine_aspiration": "string",
"engine_block_type": "string",
"engine_bore": "string",
"engine_cam_type": "string",
"engine_compression": "string",
"engine_cylinders": 0,
"engine_displacement": "string",
"fuel_induction": "string",
"fuel_quality": "string",
"max_hp": "string",
"max_torque": "string",
"oil_capacity": "string",
"redline_rpm": "string",
"engine_stroke": "string",
"engine_valves": 0,
"transmission_description": "string",
"transmission_brand": "string",
"transmission_type": "string",
"transmission_gears": 0,
"cargo_volume": 0,
"interior_volume": 0,
"passenger_volume": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"duty_type": "string",
"weight_class": "string",
"engine_bore_with_units": "string",
"wheelbase_with_units": "string",
"msrp": "string"
},
"driver": {
"id": 0,
"first_name": "string",
"last_name": "string",
"full_name": "string",
"default_image_url": "string"
},
"current_location_entry": {
"id": 0,
"locatable_type": "string",
"locatable_id": 0,
"date": "2024-07-29T15:51:28.071Z",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"contact_id": 0,
"address": "string",
"is_current": true,
"item_type": "string",
"item_id": 0,
"location": "string",
"address_components": {
"street_number": "string",
"street": "string",
"city": "string",
"region": "string",
"region_short": "string",
"country": "string",
"country_short": "string",
"postal_code": "string"
},
"geolocation": {
"latitude": 0,
"longitude": 0
}
}
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Insufficient permission to perform this operation
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
The requested resource could not be located
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64". You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
- curl
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L 'https://secure.fleetio.com/api/v1/vehicles/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'