List Fuel Entries
Returns a list of Fuel Entries belonging to your account.
Query Parameters
- start_cursor string
The start cursor for Keyset pagination.
- per_page integer
Possible values:
>= 2
and<= 100
Default value:
50
The number of records per page to return.
- filter object
The fields, operations, and values to filter the records by.
external_id object
oneOf- MOD1
- MOD2
like string requiredeq string requiredvehicle_id object
eq string requiredvendor_id object
eq string requireddate object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string requiredcreated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string requiredupdated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string required
- sort object
The fields and direction to sort the results by.
- id string
Possible values: [
asc
,desc
]Default value:
desc
- date string
Possible values: [
asc
,desc
] - created_at string
Possible values: [
asc
,desc
] - updated_at string
Possible values: [
asc
,desc
]
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- start_cursor string
The current start cursor of the records returned.
- next_cursor string
The next cursor to retrieve the next page of records.
- per_page integer
The maxumum number of records returned.
- estimated_remaining_count integer
The number of remaining records including the returned records, up to a maximum of 500.
filtered_by object[]
The filters applied to the returned record set.
anyOf- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
external_id object
oneOf- MOD1
- MOD2
like stringeq stringvehicle_id object
eq stringvendor_id object
eq stringdate object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringcreated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringupdated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringsorted_by object[]
The sorts applied to the returned record set.
anyOf- MOD1
- MOD2
- MOD3
- MOD4
date stringPossible values: [
asc
,desc
]created_at stringPossible values: [
asc
,desc
]updated_at stringPossible values: [
asc
,desc
]id stringPossible values: [
asc
,desc
]records object[]
id integerexternal_id stringUsed to uniquely identify Fuel Entries that are imported from external systems, such as Fleetcor and Wex.
fuel_type_id integerPossible values:
>= 1
The Fleetio
id
of theFuel Type
associated with this Fuel Entry.vehicle_id integerPossible values:
>= 1
The Fleetio
id
of the Vehicle associated with this Fuel Entry.partial booleanUsed to denote a partial fuel up as opposed to a complete fuel up. Learn more about partial Fuel Entries here.
personal booleanUsed to denote a personal expense.
reference stringOptional data field for collecting information such as the invoice number, transaction id, or receipt number, for example.
region stringreset booleanDefault value:
false
images_count integerThe count of Images associated with this Fuel Entry.
documents_count integerThe count of Documents associated with this Fuel Entry.
comments_count integerThe count of Comments associated with this Fuel Entry.
watchers_count integerThe count of Watchers associated with this Fuel Entry.
is_sample booleandate date-timeThe date and time at which this Fuel Entry was recorded.
created_at date-timeThe date and time this Fuel Entry was created.
updated_at date-timeThe date and time this Fuel Entry was last updated.
cost_per_hr stringThe automatically calculated cost per hour since the last Fuel Entry.
cost_per_km stringThe automatically calculated cost per km since the last Fuel Entry.
cost_per_mi stringThe automatically calculated cost per mi since the last Fuel Entry.
kpl stringRunning average recorded kilometers per liter (calculated automatically).
uk_gallons stringThe 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.
uk_gallons_per_hr stringRunning average of UK gallons used per hour. Calculated automatically.
us_gallons stringThe 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.
us_gallons_per_hr stringRunning average of US gallons used per hour. Calculated automatically.
liters stringThe fuel volume amount in liters. This field will only be used if the Vehicle is configured to use liters, otherwise it will be ignored.
liters_per_hr stringRunning average recorded liters per hour (calculated automatically).
lp100k stringRunning average recorded liters per 100 kilometers (calculated automatically).
mpg_uk stringRunning average recorded miles per UK Gallon (calculated automatically).
mpg_us stringRunning average recorded miles per US Gallon (calculated automatically).
price_per_volume_unit stringThe unit price for the
Vehicle
's volume unit.usage_in_hr stringThe automatically calculated usage in hours since the most recent Fuel Entry.
usage_in_km stringThe automatically calculated usage in kilometers since the most recent Fuel Entry.
usage_in_mi stringThe automatically calculated usage in miles since the most recent Fuel Entry.
total_amount_cents integerThe total amount of the Fuel Entry in cents.
attachment_permissions object
read_photos booleanIndicates whether the user has read permission for photos.
manage_photos booleanIndicates whether the user has permission to manage (eg. upload, delete) photos.
read_documents booleanIndicates whether the user has read permission for documents.
manage_documents booleanIndicates whether the user has permission to manage (eg. upload, delete) documents.
custom_fields object*Full details on working with Custom Fields here.
vehicle object
A Vehicle
id integername stringThis vehicle's name.
color stringThe color of this Vehicle.
license_plate stringThe license plate number of this Vehicle.
vin stringThe Vehicle Identification Number of this Vehicle.
year stringThis Vehicle's model year.
make stringThe name of this Vehicle's manufacturer.
model stringThe name of the model of this Vehicle.
trim stringThe trim level of this Vehicle.
registration_expiration_month integerPossible values:
<= 12
The month in which this Vehicle's registration expires.
registration_state stringThe state, province, or territory in which this Vehicle is registered.
default_image_url_small stringThe URL of a small-sized version of the default image for this Vehicle.
meter_entry object
A Meter Entry
id integercreated_at date-timeupdated_at date-timeauto_voided_at date-timeThe date and time at which this Meter Entry was automatically voided. Formatted according to ISO-8601 in
User
's local time.category stringPossible values: [
starting
,ending
,nightly
,manual
]A category to describe the function of this Meter Entry.
meter_type stringPossible values: [
secondary
]Indicates whether or not this Meter is a secondary Meter.
meterable_id NullableIdPossible values:
>= 1
meterable_type stringPossible values: [
FuelEntry
,Issue
,PurchaseDetail
,ServiceEntry
,SubmittedInspectionItem
,VehicleAssignment
,WorkOrder
]The type of the object with which this Meter Entry is associated.
value stringThe current value of the meter.
vehicle_id NullableIdPossible values:
>= 1
void booleanDefault value:
false
Indicates whether or not this Meter Entry has been voided.
type stringPossible values: [
GpsMeterEntry
]date dateThe date on which this Meter Entry was recorded. Formatted according to ISO-8601.
vendor object
A Vendor
name stringThe name of the Vendor.
phone stringThe phone number of the Vendor.
city stringThe city of the Vendor.
region stringThe region, state, province, or territory of the Vendor.
postal_code stringThe postal code or ZIP code of the Vendor.
country stringThe country of the Vendor.
external_id stringThe external identifier of the Vendor.
{
"start_cursor": "string",
"next_cursor": "string",
"per_page": 0,
"estimated_remaining_count": 0,
"filtered_by": [
{
"external_id": {
"like": "string"
}
},
{
"vehicle_id": {
"eq": "string"
}
},
{
"vendor_id": {
"eq": "string"
}
},
{
"date": {
"lt": "string"
}
},
{
"created_at": {
"lt": "string"
}
},
{
"updated_at": {
"lt": "string"
}
}
],
"sorted_by": [
{
"date": "asc"
},
{
"created_at": "asc"
},
{
"updated_at": "asc"
},
{
"id": "asc"
}
],
"records": [
{
"id": 0,
"external_id": "string",
"fuel_type_id": 0,
"vehicle_id": 0,
"vendor_id": 0,
"partial": true,
"personal": true,
"reference": "string",
"region": "string",
"reset": false,
"images_count": 0,
"documents_count": 0,
"comments_count": 0,
"watchers_count": 0,
"is_sample": true,
"date": "2023-03-14T13:46:27-06:00",
"created_at": "2024-11-08",
"updated_at": "2024-11-08",
"cost_per_hr": "1.1",
"cost_per_km": "1.1",
"cost_per_mi": "1.1",
"kpl": "1.1",
"uk_gallons": "string",
"uk_gallons_per_hr": "1.1",
"us_gallons": "string",
"us_gallons_per_hr": "1.1",
"liters": "string",
"liters_per_hr": "1.1",
"lp100k": "1.1",
"mpg_uk": "1.1",
"mpg_us": "1.1",
"price_per_volume_unit": "string",
"usage_in_hr": "string",
"usage_in_km": "string",
"usage_in_mi": "string",
"total_amount_cents": 0,
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"custom_fields": {},
"vehicle": {
"id": 0,
"name": "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"
},
"meter_entry": {
"id": 0,
"created_at": "2024-11-08",
"updated_at": "2024-11-08",
"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"
},
"vendor": {
"name": "string",
"phone": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"external_id": "string"
}
}
]
}
The format or parameters of the request was invalid
- application/json
- Schema
- Example (from schema)
Schema
errors object
typeitems string
{
"errors": {}
}
Request could not be authenticated
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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"
}