/api/p/v{version}/trips/search

The Search Trips API endpoint allows users to search for trips within the Alvys system based on various criteria such as trip number, status, load number, and date ranges for pickup and delivery.

This endpoint provides detailed information about each trip that matches the search criteria, enabling efficient management and retrieval of trip records.

Request Body Parameters

The following parameters are required in the request body:

ParameterTypeRequiredDescription
pageIntegerNoThe page number to retrieve.
pageSizeIntegerYesThe number of items per page. Must be greater than 0.
statusArray of StringsConditionallyThe status of the trip. Must be one or more of the allowed values: "Open", "Reserved", "Covered", "Dispatched", "InTransit", "Delivered", "Invoiced", "Completed", "Quoted", "Released", "TONU", "Cancelled", "Queued", "Financed", "Paid", "InReview". Required if no other conditional filters are provided.
loadNumbersArray of StringsConditionallyThe load number(s) associated with the trips. This field is required if the other conditionally required fields are left empty.
tripNumbersArray of StringsConditionallyThe trip number(s) to search for. This field is required if items matching the other conditionally required fields are left empty.
pickupDateRangeObjectNoThe range of pickup dates to filter by.
pickupDateRange.startString (Date-Time)NoThe start date of the pickup range.
pickupDateRange.endString (Date-Time)NoThe end date of the pickup range.
deliveryDateRangeObjectNoThe range of delivery dates to filter by.
deliveryDateRange.startString (Date-Time)NoThe start date of the delivery range.
deliveryDateRange.endString (Date-Time)NoThe end date of the delivery range.
updatedAtRangeObjectNoThe range of update timestamps to filter by.
updatedAtRange.startString (Date-Time)NoThe start date of the updatedAt range.
updatedAtRange.endString (Date-Time)NoThe end date of the updatedAt range.
updatedByStringConditionallyThe user who last updated the trips. This field is required if the other conditionally required fields are left empty.
includeDeletedBooleanNoWhen set to true, the response will include both active and deleted trips (with "IsDeleted": true for deleted items). If false or omitted, only active records are returned and no IsDeleted flags are included.

Example CURL request

Use the Current API version The load number and make sure to replace the Authorization header value associated with your actual Bearer token for the request:

curl --location 'https://integrations.alvys.com/api/p/v1/trips/search' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...' \
--header 'Content-Type: application/json' \
--data '{
"page": 0,
"pageSize": 100,
"status": [
"Covered"
],
"updatedBy" : "0d00f000-1b85-4ed8-000-6a000d1111db",
"updatedAtRange": {
"start": "2024-09-09T13:09:30.788Z",
"end": "2024-10-19T13:09:30.788Z"
},
"loadNumbers": [
"123456789"
],
"tripNumbers": [
"123456789"
],
"pickupDateRange": {
"start": "2025-07-23T10:45:56.477Z",
"end": "2025-07-23T10:45:56.477Z"
},
"deliveryDateRange": {
"start": "2025-07-23T10:45:56.477Z",
"end": "2025-07-23T10:45:56.477Z"
}
}'

Response Body Parameters

The following parameters are required in the request body:

ParameterTypeRequiredDescription
pageintegerNoThe current page of the response.
pageSizeintegerYesThe number of items per page.
totalintegerYesThe total number of items matching the criteria.
items[].idstringYesThe unique identifier of the trip.
items[].tripNumberstringYesThe number associated with the trip.
items[].statusstringNoThe current status of the trip. Will always be one of the allowed values: "Open", "Reserved", "Covered", "Dispatched", "InTransit", "Delivered", "Invoiced", "Completed", "Quoted", "Released", "TONU", "Cancelled", "Queued", "Financed", "Paid", "InReview".
items[].loadNumberstringNoThe load number associated with the trip.
items[].tenderAsstringNoRole under which the trip was tendered.
items[].stops[]array of objectsNoThe list of stops associated with the trip.
items[].stops[].idstringNoThe unique identifier of the stop.
items[].stops[].address.streetstringNoThe street address of the stop.
items[].stops[].address.citystringNoThe city of the stop.
items[].stops[].address.statestringNoThe state of the stop.
items[].stops[].address.zipCodestringNoThe ZIP code of the stop.
items[].stops[].coordinates.latitudestringNoThe latitude of the stop location.
items[].stops[].coordinates.longitudestringNoThe longitude of the stop location.
items[].stops[].statusstringNoThe current status of the stop.
items[].stops[].stopTypestringNoThe type of stop (e.g., Pickup, Delivery).
items[].stops[].scheduleTypestringNoThe schedule type of the stop. If APPT, see appointmentDate; if FCFS, see stopWindow.*.
items[].stops[].appointmentDatestring (datetime)NoAppointment date/time for the stop. Only populated when scheduleType = APPT.
items[].stops[].stopWindow.beginstring (datetime)NoWindow begin time for the stop. Only populated when scheduleType = FCFS.
items[].stops[].stopWindow.endstring (datetime)NoWindow end time for the stop. Only populated when scheduleType = FCFS.
items[].stops[].loadingTypestringNoThe loading type at the stop.
items[].stops[].arrivedAtstring (datetime)NoWhen the stop was arrived at (UTC).
items[].stops[].departedAtstring (datetime)NoWhen the stop was departed from (UTC).
items[].stops[].references[]array of objectsNoA list of references associated with the stop.
items[].stops[].references[].idstringNoThe unique identifier of the reference.
items[].stops[].references[].referenceIdstringNoThe external reference ID.
items[].stops[].references[].namestringNoThe name of the reference.
items[].stops[].references[].valuestringNoThe value of the reference.
items[].stops[].references[].typestringNoThe type of reference (e.g., Text, Date).
items[].stops[].references[].accessstringNoThe access level (e.g., Internal, Public).
items[].stops[].references[].originstringNoOrigin of the reference field (e.g., Manual, Integration).
items[].stops[].companyIdstringNoThe unique identifier of the company associated with the stop.
items[].totalMileage.distance.valuenumberNoTotal mileage value.
items[].totalMileage.distance.unitOfMeasurestringNoUnit of measure for total mileage (e.g., Miles).
items[].totalMileage.sourcestringNoSource of total mileage.
items[].totalMileage.profileIdstringNoID of mileage profile used.
items[].totalMileage.profileNamestringNoName of mileage profile used.
items[].emptyMileage.distance.valuenumberNoEmpty mileage value.
items[].loadedMileage.distance.valuenumberNoLoaded mileage value.
items[].pickupDatestring (datetime)NoScheduled pickup date.
items[].deliveryDatestring (datetime)NoScheduled delivery date.
items[].pickedUpAtstring (datetime)NoActual pickup timestamp.
items[].deliveredAtstring (datetime)NoActual delivery timestamp.
items[].carrierAssignedAtstring (datetime)NoCarrier assignment timestamp.
items[].releasedAtstring (datetime)NoTimestamp when the trip was marked as released.
items[].tripValue.amountnumberNoTotal trip value.
items[].tripValue.currencystringNoCurrency for trip value.
items[].truck.idstringNoID of the truck.
items[].trailer.idstringNoID of the trailer.
items[].trailer.equipmentTypestringNoEquipment type of trailer.
items[].trailer.equipmentLength.valuenumberNoTrailer length.
items[].trailer.equipmentLength.unitOfMeasurestringNoUnit for trailer length (e.g., Feet).
items[].driver1.accessorialsDetails[]array of objectsNoList of driver1 accessorials.
items[].driver2.accessorialsDetails[]array of objectsNoList of driver2 accessorials.
items[].ownerOperator.accessorialsDetails[]array of objectsNoList of owner-operator accessorials.
items[].carrier.accessorialsDetails[]array of objectsNoList of carrier accessorials.
items[].*.accessorialsDetails[].idstringNoUnique ID of the accessorial.
items[].*.accessorialsDetails[].typestringNoType of accessorial (e.g., Detention).
items[].*.accessorialsDetails[].total.amountnumberNoTotal charge amount.
items[].*.accessorialsDetails[].total.currencystringNoCurrency of the total.
items[].*.accessorialsDetails[].rate.amountnumberNoRate per unit.
items[].*.accessorialsDetails[].rate.currencystringNoCurrency of the rate.
items[].*.accessorialsDetails[].rateTypestringNoRate type (Flat, PerHour, etc).
items[].*.accessorialsDetails[].uomstringNoUnit of measure (e.g., Hours, Miles).
items[].*.accessorialsDetails[].quantitynumberNoQuantity of units billed.
items[].*.accessorialsDetails[].isPaidbooleanNoIf present, indicates whether accessorial has been paid.
items[].*.accessorialsDetails[].stopIdstringNoID of the stop this accessorial is linked to (if applicable).
items[].*.accessorialsDetails[].eCheckNumberstringNoAssociated ECheck number if applicable.
items[].*.accessorialsDetails[].createdAtstring (datetime)NoWhen the accessorial was created (UTC).
items[].*.accessorialsDetails[].createdBystringNoUser who created the accessorial.
items[].*.accessorialsDetails[].updatedAtstring (datetime)NoWhen the accessorial was last updated (UTC).
items[].*.accessorialsDetails[].updatedBystringNoUser who last updated the accessorial.
items[].*.eChecks[]array of objectsNoList of EChecks issued to driver1, driver2, or ownerOperator.
items[].*.eChecks[].idstringNoUnique ID of the ECheck.
items[].*.eChecks[].checkNumberstringNoECheck number.
items[].*.eChecks[].amount.amountnumberNoAmount value of the ECheck.
items[].*.eChecks[].amount.currencystringNoCurrency of the ECheck amount.
items[].*.eChecks[].fee.amountnumberNoFee value of the ECheck.
items[].*.eChecks[].fee.currencystringNoCurrency of the fee.
items[].*.eChecks[].typestringNoType of ECheck.
items[].*.eChecks[].isPaidbooleanNoIndicates whether the ECheck is paid.
items[].*.eChecks[].createdAtstring (datetime)NoWhen the ECheck was created (UTC).
items[].carrier.linehaul.amountnumberNoCarrier linehaul amount.
items[].carrier.linehaul.currencystringNoCurrency of linehaul.
items[].carrier.accessorials.amountnumberNoTotal accessorials amount for carrier.
items[].carrier.accessorials.currencystringNoCurrency for carrier accessorials.
items[].carrier.totalPayable.amountnumberNoTotal amount payable to carrier.
items[].carrier.totalPayable.currencystringNoCurrency for total payable amount.
items[].carrier.carrierInvoiceNumberstringNoInvoice number from the carrier.
items[].carrier.idstringNoUnique ID of the carrier.
items[].releasedBystringNoUser who released the trip.
items[].dispatchedBystringNoUser who dispatched the trip.
items[].dispatcherIdstringNoID of the dispatcher.
items[].carrierSalesAgentIdstringNoID of the carrier sales agent.
items[].carrierPayOnHoldbooleanNoIndicates if carrier payment is on hold.
items[].updatedAtstring (datetime)NoTimestamp when the trip was last updated.
items[].updatedBystringNoUser who last updated the trip.
items[].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!