The GET Toll Transaction by ID API endpoint allows you to retrieve detailed information about a specific toll transaction using its unique ID. This endpoint provides comprehensive data about the toll transaction, facilitating effective tracking and management within the Alvys TMS system.

The Retrieve Toll Transaction by ID API endpoint allows you to retrieve detailed information about a specific toll transaction using its unique ID. This endpoint provides comprehensive data about the toll transaction, facilitating effective tracking and management within the Alvys system.

Request Parameters

The following parameters are required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.
idStringYesThe unique identifier of the toll transaction.

Example CURL request

curl --location 'https://integrations.alvys.com/api/p/v{version}/tolls/{id}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace {version} with the API version number, {id} with the actual toll ID, and YOUR_ACCESS_TOKEN with your actual Bearer token:

curl --location 'https://integrations.alvys.com/api/p/v1/tolls/00c8d000-00c0-0000-ba60-000e0f0e0ae0' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ....'

Response Parameters

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

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