Skip to main content

List Vehicle Meter Entries

GET 

https://secure.fleetio.com/api/v1/vehicles/:id/meter_entries

List a Vehicle's Meter Entries

Request

Path Parameters

    id stringrequired

    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.

Query Parameters

    start_cursor string

    The start cursor for Keyset pagination.

    per_page integer

    Possible values: >= 2 and <= 100

    The number of records per page to return.

    Default value: 50
    filter object

    The fields, operations, and values to filter the records by.

    category object
    includestringrequired
    meterable_type object
    includestringrequired
    meterable_id object
    eqstringrequired
    date object
    oneOf
    eqstringrequired
    created_at object
    oneOf
    ltstringrequired
    updated_at object
    oneOf
    ltstringrequired
    sort object

    The fields and direction to sort the results by.

    idSortAscDescDefaultDesc (string)

    Possible values: [asc, desc]

    Default value: desc
    dateSortAscDesc (string)

    Possible values: [asc, desc]

    created_atSortAscDesc (string)

    Possible values: [asc, desc]

    updated_atSortAscDesc (string)

    Possible values: [asc, desc]

Responses

OK

Schema
    start_cursorstringnullable

    The current start cursor of the records returned.

    next_cursorstringnullable

    The next cursor to retrieve the next page of records.

    per_pageinteger

    The maxumum number of records returned.

    estimated_remaining_countinteger

    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.

  • Array [
  • anyOf
    category object
    includestringrequired
  • ]
  • sorted_by object[]

    The sorts applied to the returned record set.

  • Array [
  • anyOf
    dateSortAscDesc (string)

    Possible values: [asc, desc]

  • ]
  • records object[]
  • Array [
  • idintegerrequired
    auto_voided_atdate-timenullablerequired

    The date and time at which this Meter Entry was automatically voided.

    Example: 2023-03-14T13:46:27-06:00
    categorystringnullablerequired

    A category to describe the function of this Meter Entry.

    Possible values: [starting, ending, nightly, manual]

    meter_typestringrequired

    Indicates whether this meter is a primary or secondary meter.

    Possible values: [primary, secondary]

    meterable_idintegernullablerequired

    The id of the object with which this Meter Entry is associated.

    meterable_typestringnullablerequired

    The type of the object with which this Meter Entry is associated.

    Possible values: [FuelEntry, Issue, PurchaseDetail, ServiceEntry, SubmittedInspectionItem, VehicleAssignment, WorkOrder]

    valuestringrequired

    The current value of the meter.

    vehicle_idintegernullablerequired

    The id of the Vehicle associated with this meter entry, if any.

    voidbooleanrequired

    Indicates whether or not this Meter Entry has been voided.

    Default value: false
    typestringnullablerequired

    Indicates if this Meter Entry was submitted by a GPS provider.

    Possible values: [GpsMeterEntry]

    gps_providerobjectnullablerequired

    The GPS provider that submitted this Meter Entry.

    datedaterequired

    The date on which this Meter Entry was recorded.

    Example: 2023-03-14
  • ]

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 -L 'https://secure.fleetio.com/api/v1/vehicles/:id/meter_entries' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— query
— query
— query
categoryinclude
meterable_typeinclude
meterable_ideq
date
created_at
updated_at
— query
id
date
created_at
updated_at
ResponseClear

Click the Send API Request button above and see the response here!