/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:

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the trip.
tripNumberstringYesThe number associated with the trip.
statusstringNoThe current status of the trip.
loadNumberstringNoThe load number associated with the trip.
tenderAsstringNoRole under which the trip was tendered.
stops[]array of objectsNoThe list of stops associated with the trip.
stops[].idstringNoThe unique identifier of the stop.
stops[].address.streetstringNoThe street address of the stop.
stops[].address.citystringNoThe city of the stop.
stops[].address.statestringNoThe state of the stop.
stops[].address.zipCodestringNoThe ZIP code of the stop.
stops[].coordinates.latitudestringNoThe latitude of the stop location.
stops[].coordinates.longitudestringNoThe longitude of the stop location.
stops[].statusstringNoThe current status of the stop.
stops[].stopTypestringNoThe type of stop (e.g., Pickup, Delivery).
stops[].scheduleTypestringNoThe schedule type of the stop. If APPT, see appointmentDate; if FCFS, see stopWindow.*.
stops[].appointmentDatestring (datetime)NoAppointment date/time for the stop. Only populated when scheduleType = APPT.
stops[].stopWindow.beginstring (datetime)NoWindow begin time for the stop. Only populated when scheduleType = FCFS.
stops[].stopWindow.endstring (datetime)NoWindow end time for the stop. Only populated when scheduleType = FCFS.
stops[].loadingTypestringNoThe loading type at the stop.
stops[].arrivedAtstring (datetime)NoWhen the stop was arrived at (UTC).
stops[].departedAtstring (datetime)NoWhen the stop was departed from (UTC).
stops[].references[]array of objectsNoA list of references associated with the stop.
stops[].references[].idstringNoThe unique identifier of the reference.
stops[].references[].referenceIdstringNoThe external reference ID.
stops[].references[].namestringNoThe name of the reference.
stops[].references[].valuestringNoThe value of the reference.
stops[].references[].typestringNoThe type of reference (e.g., Text, Date).
stops[].references[].accessstringNoThe access level (e.g., Internal, Public).
stops[].references[].originstringNoOrigin of the reference field (e.g., Manual, Integration).
stops[].companyIdstringNoThe unique identifier of the company associated with the stop.
totalMileage.distance.valuenumberNoTotal mileage value.
totalMileage.distance.unitOfMeasurestringNoUnit of measure for total mileage (e.g., Miles).
totalMileage.sourcestringNoSource of total mileage.
totalMileage.profileIdstringNoID of mileage profile used.
totalMileage.profileNamestringNoName of mileage profile used.
emptyMileage.distance.valuenumberNoEmpty mileage value.
emptyMileage.distance.unitOfMeasurestringNoUnit of measure for empty mileage.
loadedMileage.distance.valuenumberNoLoaded mileage value.
loadedMileage.distance.unitOfMeasurestringNoUnit of measure for loaded mileage.
pickupDatestring (datetime)NoScheduled pickup date.
deliveryDatestring (datetime)NoScheduled delivery date.
pickedUpAtstring (datetime)NoActual pickup timestamp.
deliveredAtstring (datetime)NoActual delivery timestamp.
carrierAssignedAtstring (datetime)NoCarrier assignment timestamp.
releasedAtstring (datetime)NoTimestamp when the trip was marked as released.
tripValue.amountnumberNoTotal trip value.
tripValue.currencystringNoCurrency for trip value.
truck.idstringNoID of the truck.
truck.fleet.idstringNoFleet ID of the truck.
truck.fleet.namestringNoFleet name of the truck.
truck.fleet.invoiceNumberPrefixstringNoInvoice number prefix for the truck fleet.
trailer.idstringNoID of the trailer.
trailer.equipmentTypestringNoEquipment type of trailer.
trailer.equipmentLength.valuenumberNoTrailer length.
trailer.equipmentLength.unitOfMeasurestringNoUnit for trailer length (e.g., Feet).
trailer.fleet.idstringNoFleet ID of the trailer.
trailer.fleet.namestringNoFleet name of the trailer.
trailer.fleet.invoiceNumberPrefixstringNoInvoice number prefix for the trailer fleet.
driver1.idstringNoUnique ID of driver 1.
driver1.contractorTypestringNoContractor type of driver 1.
driver1.rates[]array of objectsNoRates applied to driver 1 (rate, extraStops, rateType, perDiemRateType, freeUnit, source).
driver1.fleet.idstringNoFleet ID of driver 1.
driver1.fleet.namestringNoFleet name of driver 1.
driver1.fleet.invoiceNumberPrefixstringNoInvoice number prefix for driver 1 fleet.
driver1.accessorialsDetails[]array of objectsNoList of driver1 accessorials.
driver1.eChecks[]array of objectsNoList of EChecks for driver1.
driver2.idstringNoUnique ID of driver 2.
driver2.contractorTypestringNoContractor type of driver 2.
driver2.rates[]array of objectsNoRates applied to driver 2.
driver2.fleet.idstringNoFleet ID of driver 2.
driver2.fleet.namestringNoFleet name of driver 2.
driver2.fleet.invoiceNumberPrefixstringNoInvoice number prefix for driver 2 fleet.
driver2.accessorialsDetails[]array of objectsNoList of driver2 accessorials.
driver2.eChecks[]array of objectsNoList of EChecks for driver2.
ownerOperator.idstringNoUnique ID of the owner-operator.
ownerOperator.accessorialsDetails[]array of objectsNoList of owner-operator accessorials.
ownerOperator.eChecks[]array of objectsNoList of EChecks for the owner-operator.
carrier.idstringNoUnique ID of the carrier.
carrier.carrierInvoiceNumberstringNoInvoice number from the carrier.
carrier.linehaul.amountnumberNoCarrier linehaul amount.
carrier.linehaul.currencystringNoCurrency of linehaul.
carrier.accessorials.amountnumberNoTotal accessorials amount for carrier.
carrier.accessorials.currencystringNoCurrency for carrier accessorials.
carrier.totalPayable.amountnumberNoTotal amount payable to carrier.
carrier.totalPayable.currencystringNoCurrency for total payable amount.
carrier.accessorialsDetails[]array of objectsNoList of carrier accessorials.
carrier.eChecks[]array of objectsNoList of carrier EChecks.
*.accessorialsDetails[].idstringNoUnique ID of the accessorial.
*.accessorialsDetails[].typestringNoType of accessorial (e.g., Detention).
*.accessorialsDetails[].total.amountnumberNoTotal charge amount.
*.accessorialsDetails[].total.currencystringNoCurrency 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.
*.eChecks[].idstringNoUnique ID of the ECheck.
*.eChecks[].checkNumberstringNoECheck number.
*.eChecks[].amount.amountnumberNoAmount value of the ECheck.
*.eChecks[].amount.currencystringNoCurrency 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).
releasedBystringNoUser who released the trip.
dispatchedBystringNoUser who dispatched the trip.
dispatcherIdstringNoID of the dispatcher.
carrierSalesAgentIdstringNoID of the carrier sales agent.
carrierPayOnHoldbooleanNoIndicates if carrier payment is on hold.
updatedAtstring (datetime)NoTimestamp when the trip was last updated.
updatedBystringNoUser who last updated the trip.
isDeletedbooleanNoIndicates if trip is deleted (true) or active (false). Only shown when IncludeDeleted: true.

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!