List Charging Entries
Returns a list of Charging 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.
created_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string requiredended_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string requiredstarted_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt string requiredlte string requiredgt string requiredgte string requiredvehicle_id object
eq string requiredvendor_id object
eq 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.
- created_at string
Possible values: [
asc
,desc
] - ended_at string
Possible values: [
asc
,desc
] - started_at string
Possible values: [
asc
,desc
] - updated_at string
Possible values: [
asc
,desc
] - id string
Possible values: [
asc
,desc
]Default value:
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
created_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringended_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringstarted_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringupdated_at object
oneOf- MOD1
- MOD2
- MOD3
- MOD4
lt stringlte stringgt stringgte stringvehicle_id object
oneOf- MOD1
- MOD2
include stringeq stringvendor_id object
oneOf- MOD1
- MOD2
include stringeq stringsorted_by object[]
The sorts applied to the returned record set.
anyOf- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
created_at stringPossible values: [
asc
,desc
]ended_at stringPossible values: [
asc
,desc
]id stringPossible values: [
asc
,desc
]started_at stringPossible values: [
asc
,desc
]updated_at stringPossible values: [
asc
,desc
]records Charging Entry[]
additional_fees_cents integerThe amount, in cents, of any fees applied to the Charging Entry.
approved_at date-timeThe time a Charging Entry was approved.
approved_by_id integerThe ID associated with the User who approved this Charging Entry.
cost_per_hr stringThe automatically calculated cost per hour since the last Charging Entry.
cost_per_km stringThe automatically calculated cost per kilometer since the last Charging Entry.
cost_per_mi stringThe automatically calculated cost per mile since the last Charging Entry.
discount_cents integerThe amount, in cents, of any discounts applied to the Charging Entry, must be a negative number.
duration_seconds integerThe duration, in seconds, between the Charging Entry start and end events. If started_at and ended_at are provided, it will automatically calculate the duration_seconds using those attributes.
ended_at date-timeThe date and time at which the Charging Entry ended.
geolocation object
gps_device stringoriginal_vendor stringexception_distance_in_mi numberexception_distance_in_km numberkm_per_kwh stringThe automatically calculated kilometers per kilowatt hour since the last Charging Entry.
mi_per_kwh stringThe automatically calculated miles per kilowatt hour since the last Charging Entry.
personal booleanDefault value:
false
Indicates whether this Charging Entry was for personal use. This field is
false
if not provided.price_per_kwh_cents stringThe unit price per kilowatt hour for the Charging Entry.
reference stringOptional data field for collecting information such as the invoice number, transaction id, or receipt number, for example.
started_at date-timeThe date and time at which this Charging Entry started.
status stringPossible values: [
in_progress
,target_reached
,ready_for_review
,manually_completed
,approved
,auto_approved
,unknown
]Default value:
manually_completed
The status of the Charging Entry. This field is "manually_completed" if not provided.
total_amount_cents integerThe total cost, in cents, of the Charging Entry.
total_kwh stringThe total kilowatt hours of the Charging Entry.
usage_in_hr stringThe automatically calculated usage in hours since the most recent Charging Entry.
usage_in_km stringThe automatically calculated usage in kilometers since the most recent Charging Entry.
usage_in_mi stringThe automatically calculated usage in miles since the most recent Charging Entry.
vehicle_id integerPossible values:
>= 1
The Fleetio
id
of the Vehicle associated with this Charging Entry.vendor_id integerPossible values:
>= 1
The Fleetio
id
of the Vendor associated with this Charging Entry.comments_count integerThe number of comments on this Charging Entry.
documents_count integerThe number of documents added to this Charging Entry.
images_count integerThe number of images added to this Charging Entry.
{
"start_cursor": "string",
"next_cursor": "string",
"per_page": 0,
"estimated_remaining_count": 0,
"filtered_by": [
{
"created_at": {
"lt": "string"
}
},
{
"ended_at": {
"lt": "string"
}
},
{
"started_at": {
"lt": "string"
}
},
{
"updated_at": {
"lt": "string"
}
},
{
"vehicle_id": {
"include": "string"
}
},
{
"vendor_id": {
"include": "string"
}
}
],
"sorted_by": [
{
"created_at": "asc"
},
{
"ended_at": "asc"
},
{
"id": "asc"
},
{
"started_at": "asc"
},
{
"updated_at": "asc"
}
],
"records": [
{
"additional_fees_cents": 0,
"approved_at": "2024-12-19",
"approved_by_id": 0,
"cost_per_hr": "string",
"cost_per_km": "string",
"cost_per_mi": "string",
"discount_cents": 0,
"duration_seconds": 0,
"ended_at": "2023-03-14T13:46:27-06:00",
"geolocation": {
"gps_device": "string",
"original_vendor": "string",
"exception_distance_in_mi": 0,
"exception_distance_in_km": 0
},
"km_per_kwh": "string",
"mi_per_kwh": "string",
"personal": false,
"price_per_kwh_cents": "string",
"reference": "string",
"started_at": "2023-03-14T13:46:27-06:00",
"status": "manually_completed",
"total_amount_cents": 0,
"total_kwh": "string",
"usage_in_hr": "string",
"usage_in_km": "string",
"usage_in_mi": "string",
"vehicle_id": 0,
"vendor_id": 0,
"comments_count": 0,
"documents_count": 0,
"images_count": 0
}
]
}
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"
}