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.
tripNumberStringNoThe number associated with the trip.
statusStringNoThe current status of the trip.
loadNumberStringNoThe load number associated with the trip.
stopsArray of ObjectsNoThe list of stops in the trip.
stops.idStringNoThe unique identifier of the stop.
stops.addressObjectNoInformation about the stop's address.
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.coordinatesObjectNoInformation about the stop's geographical coordinates.
stops.coordinates.latitudeStringNoThe latitude of the stop's location.
stops.coordinates.longitudeStringNoThe longitude of the stop's location.
stops.stopTypeStringNoThe type of the stop (e.g., Pickup, Delivery).
stops.scheduleTypeStringNoThe schedule type for the stop.
stops.loadingTypeStringNoThe type of loading at the stop.
stops.arrivedAtString (DateTime)NoThe timestamp for when the stop was arrived at.
stops.departedAtString (DateTime)NoThe timestamp for when the stop was departed from.
stops.referencesArray of ObjectsNoA list of references related to the stop.
stops.references.idStringNoThe unique identifier of the reference.
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 of the reference (e.g., Internal, Public).
totalMileageObjectNoInformation about the total mileage of the trip.
totalMileage.distanceObjectNoThe distance details for total mileage.
totalMileage.distance.valueNumberNoThe value of the total distance.
totalMileage.distance.unitOfMeasureStringNoThe unit of measure for the distance (e.g., Miles).
emptyMileageObjectNoInformation about the empty mileage of the trip.
loadedMileageObjectNoInformation about the loaded mileage of the trip.
pickupDateString (DateTime)NoThe scheduled pickup date of the trip.
deliveryDateString (DateTime)NoThe scheduled delivery date of the trip.
pickedUpAtString (DateTime)NoThe actual timestamp for when the load was picked up.
deliveredAtString (DateTime)NoThe actual timestamp for when the load was delivered.
carrierAssignedAtString (DateTime)NoThe timestamp for when the carrier was assigned to the trip.
tripValueObjectNoInformation about the value of the trip.
tripValue.amountNumberNoThe numeric value of the trip.
tripValue.currencyStringNoThe currency for the trip value.
truckObjectNoInformation about the truck assigned to the trip.
truck.idStringNoThe unique identifier of the truck.
truck.fleetObjectNoInformation about the fleet associated with the truck.
trailerObjectNoInformation about the trailer used in the trip.
trailer.idStringNoThe unique identifier of the trailer.
trailer.equipmentTypeStringNoThe type of equipment used for the trailer.
trailer.equipmentLengthObjectNoInformation about the trailer's length.
trailer.equipmentLength.valueNumberNoThe numeric value of the trailer's length.
trailer.equipmentLength.unitOfMeasureStringNoThe unit of measure for the trailer's length (e.g., Feet).
driver1ObjectNoInformation about the first driver assigned to the trip.
driver1.idStringNoThe unique identifier of the first driver.
driver1.contractorTypeStringNoThe contractor type of the first driver.
driver1.ratesArray of ObjectsNoInformation about the rates applied to the first driver.
driver2ObjectNoInformation about the second driver assigned to the trip.
releasedByStringNoThe user who released the trip.
dispatchedByStringNoThe user who executed the action to dispatch the trip.
dispatcherIdStringNoThe user assigned as the dispatcher responsible for managing the load.
carrierObjectNoInformation about the carrier assigned to the trip.
carrier.idStringNoThe unique identifier of the carrier.
carrier.carrierInvoiceNumberStringNoThe invoice number for the carrier.
carrier.rateObjectNoInformation about the rate for the carrier.
carrier.rate.amountNumberNoThe numeric value of the carrier rate.
carrier.rate.currencyStringNoThe currency of the carrier rate.
updatedAtString (DateTime)NoThe timestamp for when the trip was last updated.
updatedByStringNoThe user who last updated the trip.

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!