Offers
Get schedule for a city pair over a bounded forward window
Returns a dated timetable of individual departures for the given city pair, over a forward window of days calendar days starting at (and including) date. days defaults to 1, so a request carrying only date returns that single day exactly as before, and is capped at 14 — a longer window is rejected by validation, never truncated. Each row includes departure/arrival datetime (wall-clock, timezone-aware), company, route name, travel time, and price; the datetime is what attributes a row to its own day. Sorted by departure time ascending across the whole window. Paginated with take/skip over the whole window.
https://api.prexsell.com/v2/offers/scheduleQuery Parameters
departureCitySlugstringrequiredURL-friendly slug of the departure city.
Minimum string length:
1arrivalCitySlugstringrequiredURL-friendly slug of the arrival city.
Minimum string length:
1datestring<date>requiredFirst day of the window, in ISO YYYY-MM-DD format. With the default
days=1this is the only day returned.daysintegerdefault:1Length of the forward window in calendar days, starting at and including
date(1–14). Defaults to 1, which returns that single date. Rows across the window are returned as one list sorted by departure time ascending; each row's departureDateTime carries its own day.Required range:
1 <= x <= 14passengersintegerdefault:1Number of passengers (1–10).
Required range:
1 <= x <= 10currencyenum<string>default:UAHCurrency code for prices.
Available options:
UAH,PLN,CZK,EUR,USDlanguageenum<string>default:UKLanguage code for city name translations.
Available options:
UK,PL,CS,EN,RUtakeintegerdefault:50Maximum number of departures to return (1–100).
Required range:
1 <= x <= 100skipinteger | nulldefault:0Number of departures to skip for offset pagination.
Required range:
x >= 0
Response 200
application/jsonSchedule of departures for the given city pair and date.
dataobjectrequired
Response 404
application/jsonStandard error response body.
errorsobject[]required