Fetch a mileage summary of all the company vehicles

Purpose: Use this endpoint to fetch a mileage summary of the all the company's vehicles. This allows you to view, consolidate, and summarise the fuel and mileage data for each vehicle in a fleet that operates across multiple jurisdictions. The summary report simplifies the tax filing process, thereby ensuring accurate and fair distribution of fuel taxes among the jurisdictions where the vehicle was driven.

require 'uri'
require 'net/http'

url = URI('https://api.gomotive.com/v1/ifta/summary')

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"

response = http.request(request)
puts response.read_body

Response Parameters

jurisdiction

  • Type: String
  • Description: The jurisdiction (state or province) where the IFTA trip occurred.

id

  • Type: Integer
  • Description: The unique identifier for the vehicle associated with the IFTA trip.

number

  • Type: String
  • Description: The number assigned to the vehicle.

year

  • Type: String
  • Description: The year of the vehicle's manufacture.

make

  • Type: String
  • Description: The manufacturer of the vehicle.

model

  • Type: String
  • Description: The model of the vehicle.

vin

  • Type: String
  • Description: The Vehicle Identification Number (VIN) of the vehicle.

metric_units

  • Type: Boolean
  • Description: Indicates whether the vehicle uses metric units for measurements (e.g., kilometers, liters).

distance

  • Type: String
  • Description: The distance traveled during the IFTA trip, measured in the units specified by metric_units.

time_zone

  • Type: String
  • Description: The time zone in which the IFTA trip occurred.

Language
Credentials
Header
Click Try It! to start a request and see the response here!