List Vehicle Meter Entries
GEThttps://secure.fleetio.com/api/v1/vehicles/:id/meter_entries
List a Vehicle's Meter Entries
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
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
The date and time at which this Meter Entry was automatically voided. Formatted according to ISO-8601 in
User
's local time.
2023-03-14T13:46:27-06:00
A category to describe the function of this Meter Entry.
Possible values: [starting
, ending
, nightly
, manual
]
Indicates whether or not this Meter is a secondary Meter.
Possible values: [secondary
]
Possible values: >= 1
The type of the object with which this Meter Entry is associated.
Possible values: [FuelEntry
, Issue
, PurchaseDetail
, ServiceEntry
, SubmittedInspectionItem
, VehicleAssignment
, WorkOrder
]
The current value of the meter.
Possible values: >= 1
Indicates whether or not this Meter Entry has been voided.
false
Possible values: [GpsMeterEntry
]
The date on which this Meter Entry was recorded. Formatted according to ISO-8601.
2023-03-14
[
{
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
}
]
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"
}
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/meter_entries' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'