Skip to main content
POST
Search trips
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:

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:

Response Body Parameters

The following parameters are required in the request body:

⚠️ Important Note on Rates and RatesV2 Fields

Both the legacy Rates[] and the new RatesV2[] fields are currently returned in the Trips API response under Driver1, Driver2, and OwnerOperator.
  • The legacy Rates[] field remains available for backward compatibility but is no longer populated for new trips created after migration to Driver Settlement.
  • For trips that existed prior to migration, Rates[] may still contain historical data; however, it can be out of sync with RatesV2[] if additional rate changes were made after migration.
  • Integrations that continue to read data from Rates[] will receive empty or outdated arrays.
  • To ensure accurate and complete pay information, integrations should rely solely on RatesV2[] going forward.
Each rate type (e.g., TripValuePercentageRate, PerTripRate, MinimumPayRate, etc.) within RatesV2[] is provided as a structured object with detailed breakdowns via optional LineItems[].

⚠️ Important Note on the Carrier object

  • Carrier.Id is returned whenever a carrier is recorded on the trip.
  • If the trip is tendered to a subsidiary that is set up as a carrier, and your company does not use the legacy carrier selection behavior, the Carrier object contains only Id. CarrierInvoiceNumber, Rate, Linehaul, Accessorials, AccessorialsDetails, TotalPayable and EChecks are omitted. Pay data for these trips is not available in the Trips API.
  • To recognize this case, check that Carrier.Linehaul is absent. Do not read an absent amount as zero.
  • Rate, Linehaul, Accessorials and TotalPayable are optional (nullable). A client that validates responses against the OpenAPI schema must accept a Carrier object that has only Id.
  • Carrier.Id is the carrier stored on the trip. It can differ from the carrierId sent to the assign endpoint. For example, when the driver is a company-owned driver, the subsidiary’s carrier is assigned instead.
  • Carrier.Id can be present on a trip that is not assigned. Use CarrierAssignedAt to find out whether a carrier is assigned.
  • Trips for other subsidiaries, and for companies that use the legacy behavior, return the full Carrier object as before.

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.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

Page
integer<int32>
required
PageSize
integer<int32>
required
IncludeDeleted
boolean
required
Status
string[] | null
LoadNumbers
string[] | null
TripNumbers
string[] | null
PickupDateRange
object | null
DeliveryDateRange
object | null
UpdatedAtRange
object | null
UpdatedBy
string | null
DriverId
string | null
TrailerId
string | null
TruckId
string | null

Response

OK

Page
integer<int32>
required
PageSize
integer<int32>
required
Total
integer<int64>
required
Items
object[]
required
Facets
object | null