List Fuel Entries
GEThttps://secure.fleetio.com/api/v1/fuel_entries
Returns a list of Fuel Entries belonging to your account.
Request
Responses
- 200
- 401
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
The automatically calculated cost per hour since the last Fuel Entry.
The automatically calculated cost per km since the last Fuel Entry.
The automatically calculated cost per mi since the last Fuel Entry.
The date and time at which this Fuel Entry was recorded.
2023-03-14T13:46:27-06:00
Used to uniquely identify Fuel Entries that are imported from external systems, such as Fleetcor and Wex.
The Fleetio id
of the Fuel Type
associated with this Fuel Entry.
Possible values: >= 1
The name of the Fuel Type
associated with this Fuel Entry.
Running average recorded kilometers per liter (calculated automatically).
The fuel volume amount in liters. This field will only be used if the Vehicle is configured to use liters, otherwise it will be ignored.
Running average recorded liters per hour (calculated automatically).
Running average recorded liters per 100 kilometers (calculated automatically).
Running average recorded miles per UK Gallon (calculated automatically).
Running average recorded miles per US Gallon (calculated automatically).
Used to denote a partial fuel up as opposed to a complete fuel up. Learn more about partial Fuel Entries here.
Used to denote a personal expense.
The unit price for the Vehicle
's volume unit.
This object is dynamically populated by external fuel card integrations.
Optional data field for collecting information such as the invoice number, transaction id, or receipt number, for example.
false
The fuel volume amount in UK gallons. This field will only be used if the Vehicle is configured to use UK Gallons, otherwise it will be ignored.
Running average of UK gallons used per hour. Calculated automatically.
The fuel volume amount in US gallons. This field will only be used if the Vehicle is configured to use US Gallons, otherwise it will be ignored.
Running average of US gallons used per hour. Calculated automatically.
The automatically calculated usage in hours since the most recent Fuel Entry.
The automatically calculated usage in kilometers since the most recent Fuel Entry.
The automatically calculated usage in miles since the most recent Fuel Entry.
The Fleetio id
of the Vehicle associated with this
Fuel Entry.
Possible values: >= 1
The name of the Vehicle associated with this Fuel Entry.
The Fleetio id
of the Vendor associated with this
Fuel Entry.
Possible values: >= 1
The name of the Vendor associated with this Fuel Entry.
*Full details on working with Custom Fields here.
MPG
meter_entry objectnullablerequired
geolocation objectnullablerequired
map_previews objectrequired
attachment_permissions objectnullable
The total amount of the Fuel Entry.
comments object[]required
The number of comments made on this record.
Possible values: >= 0
images object[]
The number of images attached to this record.
Possible values: >= 0
documents object[]
The number of documents attached to this record.
Possible values: >= 0
[
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"cost_per_hr": 0,
"cost_per_km": 0,
"cost_per_mi": 0,
"date": "2023-03-14T13:46:27-06:00",
"external_id": "string",
"fuel_type_id": 0,
"fuel_type_name": "string",
"kpl": 0,
"liters": "string",
"liters_per_hr": 0,
"lp100k": 0,
"mpg_uk": 0,
"mpg_us": 0,
"partial": true,
"personal": true,
"price_per_volume_unit": 0,
"raw_transaction_data": {},
"reference": "string",
"region": "string",
"reset": false,
"uk_gallons": "string",
"uk_gallons_per_hr": 0,
"us_gallons": "string",
"us_gallons_per_hr": 0,
"usage_in_hr": "string",
"usage_in_km": "string",
"usage_in_mi": "string",
"vehicle_id": 0,
"vehicle_name": "string",
"vendor_id": 0,
"vendor_name": "string",
"is_sample": true,
"custom_fields": {},
"fuel_economy_for_current_user": "string",
"fuel_economy_units_for_current_user": "MPG",
"meter_entry": {
"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"
},
"geolocation": {
"gps_device": "string",
"original_vendor": "string",
"exception_distance_in_mi": 0,
"exception_distance_in_km": 0
},
"map_previews": {
"small": "string",
"large": "string",
"small_short": "string",
"large_short": "string"
},
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"total_amount": 0,
"comments": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"commentable_type": "Contact",
"commentable_id": 0,
"user_id": 0,
"comment": "string",
"user_full_name": "string",
"user_image_url": "string",
"rich_content": {},
"html_content": "string",
"with_mentions": true
}
],
"comments_count": 0,
"images": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"imageable_id": 0,
"imageable_type": "ExpenseEntry",
"file_name": "string",
"file_mime_type": "image/jpeg",
"file_size": 0,
"file_url": "string",
"full_url": "string"
}
],
"images_count": 0,
"documents": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"name": "string",
"description": "string",
"documentable_id": 0,
"documentable_type": "ServiceEntry",
"file_name": "string",
"file_mime_type": "string",
"file_size": 0,
"file_url": "string",
"full_file_url": "string"
}
],
"documents_count": 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"
}
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/fuel_entries' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'