IFTAMonthlySummaries
- This method returns IFTA Monthly Summaries (Mileage by vehicle and jurisdiction by month).
-
Returns the following required IFTA data:
- sourceId
- vehicle
- jurisdiction
- distance
- month
Use Case
- Use to generate IFTA monthly reporting summary (miles per state/jurisdiction per vehicle).
Request URL
Use an HTTP GET request to obtain IFTA Monthly Summaries:
[GET] https://secure.trackyourtruck.com/WebApi/api/v2.2/GetIFTAMonthlySummaries
Request Header
The request header should contain the API Access Token obtained from the authentication process. Get Access Token.
| Header Name | Description |
|---|---|
| Authorization | Access Token obtained from the 1st step's authentication process. |
Request Parameters
The Request should contain the following parameters:
| Parameter Name | Description | Value Format | Example |
|---|---|---|---|
| from | Beginning month for your query* | yyyy-mm | 2026-05 |
| to | Ending month for your query* | yyyy-mm | 2026-05 |
| PageNumber (Optional) | Page number to return. Default: 1 | numeric | 1 |
| PageSize (Optional) | Number of records per page. Default: configured server value (100). Max: 1000 | numeric | 100 |
Request Example
Below is the IFTAMonthlySummaries request API examples:
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization","Bearer YOUR_API_TOKEN");
var queryParams = new Dictionary<string, string>
{
{ "from", "2026-05" },
{ "to", "2026-05" },
{ "PageNumber", "1" },
{ "PageSize", "100" }
};
var queryString = string.Join("&", queryParams.Select(x => $"{x.Key}={Uri.EscapeDataString(x.Value)}"));
var response = await client.GetAsync($"https://secure.trackyourtruck.com/WebApi/api/v2.2/GetIFTAMonthlySummaries?{queryString}");
var responseString = await response.Content.ReadAsStringAsync();
// responseString will contain the response in JSON format
$.ajax({
beforeSend: function(xhrObj){
xhrObj.setRequestHeader("Authorization","Bearer YOUR_API_TOKEN");
},
type: "GET",
url: "https://secure.trackyourtruck.com/WebApi/api/v2.2/GetIFTAMonthlySummaries",
data: {
from: "2026-05",
to: "2026-05",
PageNumber: 1,
PageSize: 100
},
dataType: "json",
success: function(data){
// data object will contain the result as a JSON object
}
});
Sample Response
A successful request will return the following JSON result:
{
"StatusCode": "200",
"Message": "OK",
"pagination": {
"PageNumber": 1,
"PageSize": 100,
"TotalRecords": 1250,
"TotalPages": 13,
"HasMore": true
},
"Results": [
{
"sourceId": "29980",
"vehicle": "Vehicle 123",
"jurisdiction": "TX",
"distance": 152.75,
"month": "2026-02"
},
{
"sourceId": "29980",
"vehicle": "Vehicle 123",
"jurisdiction": "OK",
"distance": 89.10,
"month": "2025-12"
}
]
}
Test
Test the GetIFTAMonthlySummaries using your AccessToken by entering it below:
Clicking the test button will send a request to the TYT API and display the result below.