v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List of company vehicle's IFTA trips

get/v1/ifta/trips

Query parameters

jurisdictionsstring[]

Specify the jurisdiction to fetch the trip reports for only the specified jurisdiction.

vehicle_ids[]integer[]

Specify either one or multiple vehicle IDs to fetch the list of IFTA trip reports corresponding to the specified vehicles.

start_datestring date

Specify a date from when you want the IFTA reports to be fetched.

end_datestring date

Specify a date within which the IFTA trip reports must be fetched.

fuel_typestring

Specify the vehicle fuel type for which you want to view the IFTA reports. Acceptable values are Diesel, Gasoline, Propane, LNG, CNG, Ethanol, Methanol, E85, M85, A55, Biodiesel, and Others.

per_pageinteger

Number of records to return per page.

page_nointeger

Current page number.

Headers

X-Time-Zonestring

Specify the timezone for formatting the timestamps.

X-Metric-Unitsboolean

Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units

X-User-Idinteger

Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.

Response

200

Example response

{
  "ifta_trips": [
    {
      "ifta_trip": {
        "id": 42,
        "date": "2016-10-05",
        "jurisdiction": "CA",
        "vehicle": {
          "id": 4,
          "number": "Demo Vehicle",
          "year": "2016",
          "make": "Demo",
          "model": "Vehicle",
          "vin": "WP0AB2966NS458669"
        },
        "start_odometer": 0.6835081,
        "end_odometer": 1.3670162,
        "calibrated_start_odometer": 0.621371,
        "calibrated_end_odometer": 3.106855,
        "start_lat": 2,
        "start_lon": 3,
        "end_lat": 4,
        "end_lon": 5,
        "distance": 0.6835081,
        "time_zone": "Pacific Time (US & Canada)"
      }
    }
  ],
  "pagination": {
    "per_page": 25,
    "page_no": 1,
    "total": 2
  }
}