Offers
When a city pair next departs
Returns the earliest upcoming departure for the given city pair inside the sales horizon (45 days), as an ISO 8601 datetime carrying the departure city's UTC offset, or null when nothing is scheduled. It is derived from the routes' recurrence rules, not from a full offer-engine pass, so it is cheap to ask on every render; use it to decide which date to ask /schedule for when the coming week is empty.
GET
https://api.prexsell.com/v2/offers/next-departureQuery Parameters
departureCitySlugstringrequiredSlug of the departure city.
Minimum string length:
1arrivalCitySlugstringrequiredSlug of the arrival city.
Minimum string length:
1
Response 200
application/jsonThe pair's next departure.
dataobjectrequired
Response 404
application/jsonStandard error response body.
errorsobject[]required