Search toll transactions

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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
PageIntegerYesThe 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.SubsidiaryIdStringNoThe subsidiary ID associated with the transaction.
Items.TransactionIdStringNoThe external transaction ID from the toll provider.
Items.TransponderIdStringNoThe transponder ID associated with the transaction.
Items.SourceStringYesThe toll provider (e.g., PrePass, BestPass, IPass).
Items.AgencyStringYesThe tolling agency that issued the transaction.
Items.UnitIdStringNoThe Alvys unit ID associated with the transaction.
Items.UnitNumberStringNoThe unit number associated with the transaction.
Items.LicenseStateStringNoThe state where the vehicle is licensed.
Items.LicensePlateStringNoThe license plate of the vehicle.
Items.PrePaidBooleanYesIndicates whether the toll was prepaid.
Items.ServiceStringNoThe toll road or service (e.g., Texas Toll Roads, PA Turnpike).
Items.CostCenterStringNoThe cost center associated with the transaction.
Items.EntryLaneStringNoThe lane used at entry.
Items.EntryPlazaIdStringNoThe identifier of the entry plaza.
Items.EntryPlazaNameStringNoThe name of the entry plaza.
Items.EntryTimeString (Date-Time)NoThe date and time of entry.
Items.ExitLaneStringNoThe lane used at exit.
Items.ExitPlazaIdStringNoThe identifier of the exit plaza.
Items.ExitPlazaNameStringNoThe name of the exit plaza.
Items.ExitTimeString (Date-Time)NoThe date and time of exit.
Items.FormattedLocationStringNoThe formatted location of the toll transaction.
Items.AmountObjectYesThe toll amount.
Items.Amount.AmountNumberYesThe monetary value of the toll.
Items.Amount.CurrencyIntegerYesThe currency identifier of the toll amount.
Items.RunningBalanceObjectNoThe running account balance after the transaction.
Items.RunningBalance.AmountNumberNoThe monetary value of the running balance.
Items.RunningBalance.CurrencyIntegerNoThe currency identifier of the running balance.
Items.FeeObjectNoThe fee charged for the transaction.
Items.Fee.AmountNumberNoThe monetary value of the fee.
Items.Fee.CurrencyIntegerNoThe currency identifier of the fee.
Items.PostedAtString (Date-Time)NoThe date and time when the transaction was posted.
Items.TransactionDateString (Date-Time)YesThe date and time when the toll transaction occurred.

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 specifying the API version in the URL path and providing the necessary request body. 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.

Path Params
string
required
Defaults to 1.0
Body Params
int32
required
int32
required
string | null
UnitIds
array of strings | null
UnitIds
DateRange
object | null
Headers
string
enum
Defaults to application/json
Allowed:
string
enum
Defaults to application/json-patch+json
Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json