The Search Toll Transactions API endpoint allows you to search for toll transactions within the Alvys TMS system based on various criteria such as transponder ID, unit IDs, and date range.

This endpoint provides detailed information about each toll transaction that matches the search criteria, facilitating efficient management and retrieval of toll transaction records.

The Search Toll Transactions API endpoint allows you to search for toll transactions within the Alvys system based on various criteria such as transponder ID, unit IDs, and date range. This endpoint provides detailed information about each toll transaction that matches the search criteria, facilitating efficient management and retrieval of toll transaction records.

Request Parameters

The following parameter is required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.

Request Body

The following fields are required in the request body to filter the search results:

ParameterTypeRequiredDescription
pageIntegerNoThe page number to retrieve.
pageSizeIntegerYesThe number of results per page.
PageSize must be greater than 0.
transponderIdStringConditionallyThe transponder ID used for the toll transactions. This field is required if the other conditionally required fields are left empty.
unitIdsArray of StringsConditionallyA list of unit IDs to filter by. This field is required if the other conditionally required fields are left empty.
dateRangeObjectConditionallyThe date range for the toll transactions. This field is required if the other conditionally required fields are left empty.
dateRange.startString (Date-Time)ConditionallyThe start date of the transaction range. This field is required if the other conditionally required fields are left empty.
dateRange.endString (Date-Time)ConditionallyThe end date of the transaction range. This field is required if the other conditionally required fields are left empty.

Example CURL request

Use the Current API version number and make sure to replace the Authorization header value with your actual Bearer token for the request:

curl --location 'https://integrations.alvys.com/api/p/v1/tolls/search' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...' \
--header 'Content-Type: application/json' \
--data '{
  "page": 0,
  "pageSize": 100,
  "transponderId": "",
  "unitIds": [
      "TR25123456789"
  ],
  "dateRange": {
      "start": "2021-07-23T14:48:05.234Z",
      "end": "2024-07-23T14:48:05.234Z"
  }
}'

Response Parameters

The following table lists the parameters included in the response for toll transaction search requests:

ParameterTypeRequiredDescription
pageIntegerYesThe current page number of the results.
pageSizeIntegerYesThe number of results per page.
totalIntegerYesThe total number of matching toll transactions.
itemsArray of ObjectsYesThe list of toll transaction records matching the criteria.
items.idStringYesThe unique identifier of the toll transaction.
items.truckNumStringNoThe truck number associated with the transaction.
items.vinNumberStringNoThe Vehicle Identification Number.
items.yearIntegerNoThe year of the vehicle.
items.makeStringNoThe make of the vehicle.
items.modelStringNoThe model of the vehicle.
items.licenseNumStringNoThe license number of the vehicle.
items.licenseStateStringNoThe state where the vehicle is licensed.
items.plateExpirationDateString (Date)NoThe expiration date of the license plate.
items.licenseExpirationDateString (Date)NoThe expiration date of the vehicle's license.
items.statusStringNoThe status of the toll transaction.
items.subsidiaryIdStringNoThe subsidiary ID associated with the vehicle.
items.numberOfAxlesIntegerNoThe number of axles on the vehicle.
items.fleetObjectNoThe fleet information associated with the vehicle.
items.fleet.idStringNoThe unique identifier of the fleet.
items.fleet.nameStringNoThe name of the fleet.
items.fleet.invoiceNumberPrefixStringNoThe invoice number prefix for the fleet.
items.grossWeightObjectNoThe gross weight of the vehicle.
items.grossWeight.valueIntegerNoThe value of the gross weight.
items.grossWeight.unitOfMeasureStringNoThe unit of measure for the gross weight (e.g., Kilograms).
items.emptyWeightObjectNoThe empty weight of the vehicle.
items.emptyWeight.valueIntegerNoThe value of the empty weight.
items.emptyWeight.unitOfMeasureStringNoThe unit of measure for the empty weight (e.g., Kilograms).
items.colorStringNoThe color of the vehicle.
items.fuelTypeStringNoThe type of fuel used by the vehicle.
items.fuelCardsArrayNoA list of fuel cards associated with the vehicle.
items.fuelCards.idStringNoThe unique identifier of the fuel card.
items.fuelCards.cardNumberStringNoThe card number of the fuel card.
items.fuelCards.providerStringNoThe provider of the fuel card.
items.fuelCards.deductFuelBooleanNoIndicates whether fuel is deducted.
items.fuelCards.applyFuelDiscountBooleanNoIndicates whether a fuel discount is applied.
items.fuelCards.deductFromIdStringNoThe ID of the entity from which the fuel is deducted.
items.fuelCards.deductFromNameStringNoThe name of the entity from which the fuel is deducted.
items.fuelCards.deductFromSubsidiaryStringNoThe subsidiary from which the fuel is deducted.
items.fuelCards.deductFromContractorTypeStringNoThe contractor type from which the fuel is deducted.
items.insuranceCompanyStringNoThe insurance company associated with the vehicle.
items.insurancePolicyNumberStringNoThe insurance policy number.
items.insuranceExpirationDateString (Date)NoThe expiration date of the insurance policy.
items.inspectionExpirationDateString (Date)NoThe expiration date of the vehicle inspection.
items.notesArrayNoAn optional list of notes related to the vehicle.
items.notes.idStringNoThe unique identifier of the note.
items.notes.descriptionStringNoThe description of the note.
items.notes.noteTypeStringNoThe type of the note.
items.notes.timeString (Date-Time)NoThe time the note was created.
items.notes.userStringNoThe user who created the note.
items.createdAtString (Date-Time)YesThe date and time when the toll transaction was created.

Example Response

On the right side, you can see examples of different error codes by clicking "Example" and selecting the response code.


Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section.

This page is interactive, allowing you to try a request by providing the driver ID in the URL path. As you fill out the parameters, the Curl command on the right side of the page will be automatically updated. Alternatively, you can directly edit the Curl command. Make sure to authorize yourself before trying a request.

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