7. GetFlightDateOptions

Version 6.1 by Giorgi Mdivnishvili on 2024/08/28 13:18

Method Description

You can use the given method to check if there are flights from the selected city to the desired country.

For this, you need to pass the parameters listed below when making the request. You can find the corresponding city codes using this method - GetDepartureCities.

EndpointURL - [GET]

Request Parameters

Request Body

none

Response example success with data

{
   "availableDates": [
        {
           "departureDate": "2024-10-01T00:00:00.000",
           "remainingTickets": 27
        },
        {
           "departureDate": "2024-10-02T00:00:00.000",
           "remainingTickets": 41
        },
        {
           "departureDate": "2024-10-03T00:00:00.000",
           "remainingTickets": 50
        },
        {
           "departureDate": "2024-10-04T00:00:00.000",
           "remainingTickets": 47
        },
        {
           "departureDate": "2024-10-05T00:00:00.000",
           "remainingTickets": 46
        },
        {
           "departureDate": "2024-10-06T00:00:00.000",
           "remainingTickets": 36
        },
        {
           "departureDate": "2024-10-07T00:00:00.000",
           "remainingTickets": 40
        },
        {
           "departureDate": "2024-10-08T00:00:00.000",
           "remainingTickets": 30
        },
        {
           "departureDate": "2024-10-09T00:00:00.000",
           "remainingTickets": 38
        },
        {
           "departureDate": "2024-10-10T00:00:00.000",
           "remainingTickets": 44
        },
        {
           "departureDate": "2024-10-11T00:00:00.000",
           "remainingTickets": 48
        },
        {
           "departureDate": "2024-10-12T00:00:00.000",
           "remainingTickets": 50
        },
        {
           "departureDate": "2024-10-13T00:00:00.000",
           "remainingTickets": 50
        },
        {
           "departureDate": "2024-10-14T00:00:00.000",
           "remainingTickets": 46
        },
        {
           "departureDate": "2024-10-15T00:00:00.000",
           "remainingTickets": 46
        },
        {
           "departureDate": "2024-10-16T00:00:00.000",
           "remainingTickets": 50
        },
        {
           "departureDate": "2024-10-17T00:00:00.000",
           "remainingTickets": 46
        },
        {
           "departureDate": "2024-10-18T00:00:00.000",
           "remainingTickets": 37
        },
        {
           "departureDate": "2024-10-19T00:00:00.000",
           "remainingTickets": 28
        },
        {
           "departureDate": "2024-10-20T00:00:00.000",
           "remainingTickets": 42
        },
        {
           "departureDate": "2024-10-21T00:00:00.000",
           "remainingTickets": 42
        },
        {
           "departureDate": "2024-10-22T00:00:00.000",
           "remainingTickets": 15
        },
        {
           "departureDate": "2024-10-23T00:00:00.000",
           "remainingTickets": 37
        },
        {
           "departureDate": "2024-10-24T00:00:00.000",
           "remainingTickets": 30
        },
        {
           "departureDate": "2024-10-25T00:00:00.000",
           "remainingTickets": 8
        },
        {
           "departureDate": "2024-10-26T00:00:00.000",
           "remainingTickets": 26
        },
        {
           "departureDate": "2024-10-27T00:00:00.000",
           "remainingTickets": 83
        },
        {
           "departureDate": "2024-10-28T00:00:00.000",
           "remainingTickets": 45
        },
        {
           "departureDate": "2024-10-29T00:00:00.000",
           "remainingTickets": 52
        },
        {
           "departureDate": "2024-10-30T00:00:00.000",
           "remainingTickets": 29
        },
        {
           "departureDate": "2024-10-31T00:00:00.000",
           "remainingTickets": 46
        }
    ],
   "remainingTicketLimit": 9
}

Response example success with data

{
   "availableDates": [],
   "remainingTicketLimit": 9
}

Schema

Success

GetFlightDateOptionsResponse{
availableDates    [
nullable: true
FlightBlockAvailability{
departureDate    string($date-time)
remainingTickets    integer($int32)
}]
remainingTicketLimit    integer($int32)
}

URL Parameters

ParameterexampleDescription
CityUIDf0ba6324-f337-405c-8cc7-23d62cf664e8Example of Uid of the Departure City Almaty
CountryCodeAEExample of the Direction
Year2024Identificator of the year, for this example 2024
Month10Number of month, for this example November

Response parameters

FieldexampleDescription
departureDate"departureDate": "2024-10-01T00:00:00.000",Flights info for this date, it means there is a available flight
remainingTickets"remainingTickets": 27available tickets number