/api/p/v{version}/trips

The Retrieve All Trips API endpoint allows you to retrieve a list of all trips in the Alvys system. This endpoint provides comprehensive data about each trip, facilitating effective management and tracking of trips within the system.

Request Parameters

The following parameter is required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.
tripNumberStringConditionallyThe trip number to filter results. This field is required if the other conditionally required fields are left empty.
idStringConditionallyThe trip id to filter results. This field is required if the other conditionally required fields are left empty.

Example CURL request

Example using Trip ID:

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

Example using Trip Number:

curl --location 'https://integrations.alvys.com/api/p/v{version}/trips?tripNumber={tripNumber}' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Replace {version} with the API version number, {tripId} with the actual trip ID, {tripNumber} with the actual trip number, and YOUR_ACCESS_TOKEN with your actual Bearer token:

Using Trip ID:

curl --location 'https://integrations.alvys.com/api/p/v1/trips?id=000c3a9bf0000000bf000d000e000a0b' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...'

Using Trip Number:

curl --location 'https://integrations.alvys.com/api/p/v1/trips?tripNumber=123456789' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ....'

Response Parameters

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

| Parameter | Type | Required | Description |

idstringYesUnique ID of the trip.
tripNumberstringYesTrip number.
statusstringYesCurrent status of the trip.
loadNumberstringNoAssociated load number.
tenderAsstringNoTendered as Broker or Carrier.
pickupDatestring (datetime)NoPlanned pickup date (UTC).
deliveryDatestring (datetime)NoPlanned delivery date (UTC).
pickedUpAtstring (datetime)NoActual pickup timestamp (UTC).
deliveredAtstring (datetime)NoActual delivery timestamp (UTC).
carrierAssignedAtstring (datetime)NoWhen the carrier was assigned.
releasedAtstring (datetime)NoWhen the trip was released.
releasedBystringNoUser who released the trip.
dispatchedBystringNoUser who dispatched the trip.
dispatcherIdstringNoDispatcher user ID.
carrierSalesAgentIdstringNoCarrier sales agent user ID.
carrierPayOnHoldbooleanNoWhether carrier pay is on hold.
updatedAtstring (datetime)NoWhen the trip was last updated (UTC).
updatedBystringNoUser who last updated the trip.
isDeletedbooleanNoIndicates if the trip is marked as deleted.
totalMileage.distance.valuenumberNoTotal trip distance.
totalMileage.distance.unitOfMeasurestringNoUnit for total mileage.
emptyMileage.distance.valuenumberNoEmpty mileage distance.
emptyMileage.distance.unitOfMeasurestringNoUnit for empty mileage.
loadedMileage.distance.valuenumberNoLoaded mileage distance.
loadedMileage.distance.unitOfMeasurestringNoUnit for loaded mileage.
tripValue.amountnumberNoTotal payable amount for the trip.
tripValue.currencystringNoCurrency of the trip value.
truck.idstringNoID of the assigned truck.
trailer.idstringNoID of the assigned trailer.
trailer.equipmentTypestringNoType of trailer equipment.
trailer.equipmentLength.valuenumberNoLength of the trailer.
trailer.equipmentLength.unitOfMeasurestringNoUnit for trailer length (e.g., Feet).
driver1.accessorialsDetails[]array of objectsNoList of driver1 accessorials.
driver2.accessorialsDetails[]array of objectsNoList of driver2 accessorials.
ownerOperator.accessorialsDetails[]array of objectsNoList of owner-operator accessorials.
carrier.accessorialsDetails[]array of objectsNoList of carrier accessorials.
[*.accessorialsDetails[]].idstringYesUnique ID of the accessorial.
[*.accessorialsDetails[]].typestringYesType of accessorial (e.g., Detention).
[*.accessorialsDetails[]].total.amountnumberYesTotal charge amount.
[*.accessorialsDetails[]].total.currencystringYesCurrency of the total.
[*.accessorialsDetails[]].rate.amountnumberNoRate per unit.
[*.accessorialsDetails[]].rate.currencystringNoCurrency of the rate.
[*.accessorialsDetails[]].rateTypestringNoRate type (Flat, PerHour, etc).
[*.accessorialsDetails[]].uomstringNoUnit of measure (e.g., Hours, Miles).
[*.accessorialsDetails[]].quantitynumberNoQuantity of units billed.
[*.accessorialsDetails[]].isPaidbooleanNoIf present, indicates whether accessorial has been paid.
[*.accessorialsDetails[]].stopIdstringNoID of the stop this accessorial is linked to (if applicable).
[*.accessorialsDetails[]].eCheckNumberstringNoAssociated ECheck number if applicable.
[*.accessorialsDetails[]].createdAtstring (datetime)NoWhen the accessorial was created (UTC).
[*.accessorialsDetails[]].createdBystringNoUser who created the accessorial.
[*.accessorialsDetails[]].updatedAtstring (datetime)NoWhen the accessorial was last updated (UTC).
[*.accessorialsDetails[]].updatedBystringNoUser who last updated the accessorial.
driver1.eChecks[]array of objectsNoList of EChecks for driver1.
driver2.eChecks[]array of objectsNoList of EChecks for driver2.
ownerOperator.eChecks[]array of objectsNoList of EChecks for owner operator.
carrier.eChecks[]array of objectsNoList of EChecks for carrier.
[*.eChecks[]].idstringYesUnique ID of the ECheck.
[*.eChecks[]].checkNumberstringYesECheck number.
[*.eChecks[]].amount.amountnumberYesAmount value of the ECheck.
[*.eChecks[]].amount.currencystringYesCurrency of the ECheck amount.
[*.eChecks[]].fee.amountnumberNoFee value of the ECheck.
[*.eChecks[]].fee.currencystringNoCurrency of the fee.
[*.eChecks[]].typestringNoType of ECheck.
[*.eChecks[]].isPaidbooleanNoIndicates whether the ECheck is paid.
[*.eChecks[]].createdAtstring (datetime)NoWhen the ECheck was created (UTC).

Versioning

The version parameter in the URL path specifies which version of the API you are using. Including the version number ensures that your application interacts with the correct version of the API, providing stability and compatibility as the API evolves. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.

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 fork our Public API Postman Collection directly. 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!