Unified Trip Search
Search for available trips across both driver-created trips and company trips. Returns a unified list with trip type discriminators.Endpoint
GET
/api/trips/search/unifiedQuery Parameters
Origin city or location name to filter trips
Destination city or location name to filter trips
Start of date range for trip departure (ISO 8601 format)
End of date range for trip departure (ISO 8601 format)
Minimum price filter
Maximum price filter
Minimum number of available seats required
Filter by trip type:
driver- Only driver-created tripscompany- Only company tripsall- Both types (default)
Response
Array of trip results. Each trip includes a
tripType discriminator field.Total number of trips found
Number of driver trips in results
Number of company trips in results
Legacy Search Trips
Search for driver trips only (legacy endpoint). For unified search including company trips, use the Unified Trip Search endpoint above.Endpoint
GET
/api/trips/searchQuery Parameters
Origin location filter
Destination location filter
Start date for search range
End date for search range
Minimum price filter
Maximum price filter
Response
Indicates search success
Result message
Search results container
For new integrations, use the Unified Trip Search endpoint (
/api/trips/search/unified) to search across both driver and company trips.