---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# List of company vehicle's IFTA trips

**Purpose**: Use this API to fetch a list of the company vehicle's IFTA trip reports. The trip report basically consists of details such as miles travelled in each jurisdiction, fuel purchased, and vehicle's odometer readings. These reports are required for the compliance with the IFTA regulations in multiple jurisdictions in the United States and in Canada. These reports ensure that fuel taxes are fairly distributed among the states and provinces where the vehicles operate. The trip reports are then used to calculate tax liabilities.

> 📘 NOTE
>
> The API response contains fields **calibrated start\_odometer** and **calibrated\_end\_odometer**, that are available as a feature.

```ruby Ruby (OAuth 2.0)
require 'uri'
require 'net/http'

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

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

### ifta\_trip

* **Type**: Object
* **Description**: Contains details about an IFTA trip, including vehicle information, odometer readings, and geographic data.

### id

* **Type**: Integer
* **Description**: Unique identifier for the IFTA trip.

### date

* **Type**: String
* **Description**: The date of the IFTA trip in `YYYY-MM-DD` format.

### jurisdiction

* **Type**: String
* **Description**: The jurisdiction where the trip took place, represented by the jurisdiction code.

### vehicle

* **Type**: Object
* **Description**: Information about the vehicle associated with the IFTA trip.

### id

* **Type**: Integer
* **Description**: Unique identifier for the vehicle.

### number

* **Type**: String
* **Description**: The vehicle's number.

### year

* **Type**: String
* **Description**: The year the vehicle was manufactured.

### make

* **Type**: String
* **Description**: The make 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's units are metric (true) or imperial (false).

### start\_odometer

* **Type**: String
* **Description**: The odometer reading at the start of the trip.

### end\_odometer

* **Type**: String
* **Description**: The odometer reading at the end of the trip.

### calibrated\_start\_odometer

* **Type**: String
* **Description**: The calibrated odometer reading at the start of the trip.

### calibrated\_end\_odometer

* **Type**: String
* **Description**: The calibrated odometer reading at the end of the trip.

### start\_lat

* **Type**: String
* **Description**: The latitude coordinate at the start of the trip.

### start\_lon

* **Type**: String
* **Description**: The longitude coordinate at the start of the trip.

### end\_lat

* **Type**: String
* **Description**: The latitude coordinate at the end of the trip.

### end\_lon

* **Type**: String
* **Description**: The longitude coordinate at the end of the trip.

### distance

* **Type**: String
* **Description**: The total distance traveled during the trip.

### time\_zone

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

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/ifta/trips": {
      "get": {
        "summary": "List of company vehicle's IFTA trips",
        "description": "",
        "operationId": "fetch-a-list-of-companys-ifta-trip-reports",
        "parameters": [
          {
            "name": "jurisdictions",
            "in": "query",
            "description": "Specify the jurisdiction to fetch the trip reports for only the specified jurisdiction.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "vehicle_ids[]",
            "in": "query",
            "description": "Specify either one or multiple vehicle IDs to fetch the list of IFTA trip reports corresponding to the specified vehicles.",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "description": "Specify a date from when you want the IFTA reports to be fetched.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "Specify a date within which the IFTA trip reports must be fetched.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "fuel_type",
            "in": "query",
            "description": "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.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Number of records to return per page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "page_no",
            "in": "query",
            "description": "Current page number.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "X-Time-Zone",
            "in": "header",
            "description": "Specify the timezone for formatting the timestamps.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Metric-Units",
            "in": "header",
            "description": "Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "X-User-Id",
            "in": "header",
            "description": "Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Fetch a list of the company vehicle's IFTA trip reports": {
                    "value": "   {\n  \"ifta_trips\": [\n    {\n      \"ifta_trip\": {\n        \"id\": 42,\n        \"date\": \"2016-10-05\",\n        \"jurisdiction\": \"CA\",\n        \"vehicle\": {\n          \"id\": 4,\n          \"number\": \"Demo Vehicle\",\n          \"year\": \"2016\",\n          \"make\": \"Demo\",\n          \"model\": \"Vehicle\",\n          \"vin\": \"WP0AB2966NS458669\",\n          \"metric_units\": false\n        },\n        \"start_odometer\": 0.6835081,\n        \"end_odometer\": 1.3670162,\n        \"calibrated_start_odometer\": 0.621371,\n        \"calibrated_end_odometer\": 3.106855,\n        \"start_lat\": 2,\n        \"start_lon\": 3,\n        \"end_lat\": 4,\n        \"end_lon\": 5,\n        \"distance\": 0.6835081,\n        \"time_zone\": \"Pacific Time (US & Canada)\"\n      }\n    },\n    {\n      \"ifta_trip\": {\n        \"id\": 25,\n        \"date\": \"2016-08-01\",\n        \"jurisdiction\": \"NJ\",\n        \"vehicle\": {\n          \"id\": 4,\n          \"number\": \"Demo Vehicle\",\n          \"year\": \"2016\",\n          \"make\": \"Demo\",\n          \"model\": \"Vehicle\",\n          \"vin\": \"WP0AB2966NS458669\",\n          \"metric_units\": false\n        },\n        \"start_odometer\": 2613.59205907,\n        \"end_odometer\": 2719.80921781,\n        \"calibrated_start_odometer\": 2614.108714,\n        \"calibrated_end_odometer\": 2720.124387,\n        \"start_lat\": 2,\n        \"start_lon\": 3,\n        \"end_lat\": 4,\n        \"end_lon\": 5,\n        \"distance\": 104.676158659999,\n        \"time_zone\": \"Pacific Time (US & Canada)\"\n      }\n    }\n  ],\n  \"pagination\": {\n    \"per_page\": 25,\n    \"page_no\": 1,\n    \"total\": 2\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "ifta_trips": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ifta_trip": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 42,
                                "default": 0
                              },
                              "date": {
                                "type": "string",
                                "example": "2016-10-05"
                              },
                              "jurisdiction": {
                                "type": "string",
                                "example": "CA"
                              },
                              "vehicle": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "example": 4,
                                    "default": 0
                                  },
                                  "number": {
                                    "type": "string",
                                    "example": "Demo Vehicle"
                                  },
                                  "year": {
                                    "type": "string",
                                    "example": "2016"
                                  },
                                  "make": {
                                    "type": "string",
                                    "example": "Demo"
                                  },
                                  "model": {
                                    "type": "string",
                                    "example": "Vehicle"
                                  },
                                  "vin": {
                                    "type": "string",
                                    "example": "WP0AB2966NS458669"
                                  },
                                  "metric_units": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  }
                                }
                              },
                              "start_odometer": {
                                "type": "number",
                                "example": 0.6835081,
                                "default": 0
                              },
                              "end_odometer": {
                                "type": "number",
                                "example": 1.3670162,
                                "default": 0
                              },
                              "calibrated_start_odometer": {
                                "type": "number",
                                "example": 0.621371,
                                "default": 0
                              },
                              "calibrated_end_odometer": {
                                "type": "number",
                                "example": 3.106855,
                                "default": 0
                              },
                              "start_lat": {
                                "type": "integer",
                                "example": 2,
                                "default": 0
                              },
                              "start_lon": {
                                "type": "integer",
                                "example": 3,
                                "default": 0
                              },
                              "end_lat": {
                                "type": "integer",
                                "example": 4,
                                "default": 0
                              },
                              "end_lon": {
                                "type": "integer",
                                "example": 5,
                                "default": 0
                              },
                              "distance": {
                                "type": "number",
                                "example": 0.6835081,
                                "default": 0
                              },
                              "time_zone": {
                                "type": "string",
                                "example": "Pacific Time (US & Canada)"
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "per_page": {
                          "type": "integer",
                          "example": 25,
                          "default": 0
                        },
                        "page_no": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "total": {
                          "type": "integer",
                          "example": 2,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Date duration": {
                    "value": "{\n  \"error_message\": \"date duration cannot be greater than 3 months\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_message": {
                      "type": "string",
                      "example": "date duration cannot be greater than 3 months"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:66c31ce3d28d9700445891ba"
}
```