{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/flight-availabilities-search-get-flight-availabilities-query-schema.json", "title": "GetFlightAvailabilitiesQuery", "description": "GetFlightAvailabilitiesQuery schema from Flight Availibilities Search", "properties": { "originDestinations": { "title": "originDestinations", "description": "Origins and Destinations must be properly ordered in time (chronological order in accordance with the timezone of each location) to describe the journey consistently. Dates and times must not be past nor more than 365 days in the future, according to provider settings.Number of Origins and Destinations must not exceed the limit defined in provider settings.", "type": "array", "minItems": 1, "maxItems": 6, "items": { "allOf": [ { "type": "object", "properties": { "id": { "type": "string", "example": 1 }, "originLocationCode": { "description": "Origin location, such as a city or an airport. Currently, only the locations defined in [IATA](http://www.iata.org/publications/Pages/code-search.aspx) are supported.", "type": "string", "example": "PAR" }, "destinationLocationCode": { "description": "Destination location, such as a city or an airport. Currently, only the locations defined in [IATA](http://www.iata.org/publications/Pages/code-search.aspx) are supported.", "type": "string", "example": "NYC" }, "includedConnectionPoints": { "type": "array", "description": "List of included connections points. When an includedViaPoints option is specified, all FlightOffer returned must at least go via this Connecting Point. Currently, only the locations defined in IATA are supported. Used only by the AMADEUS provider", "minItems": 1, "maxItems": 2, "items": { "title": "code", "type": "string" }, "example": [ "MRS" ] }, "excludedConnectionPoints": { "type": "array", "description": "List of excluded connections points. Any FlightOffer with these connections points will be present in response. Currently, only the locations defined in IATA are supported. Used only by the AMADEUS provider", "minItems": 1, "maxItems": 3, "items": { "title": "code", "type": "string" }, "example": [ "MRS" ] } } }, { "type": "object", "properties": { "departureDateTime": { "description": "Approximate date and time of departure, specified as a local date.", "$ref": "#/definitions/DateTimeType" }, "arrivalDateTime": { "description": "Approximate date and time of arrival, specified as a local date.", "$ref": "#/definitions/DateTimeType" } } } ] } }, "travelers": { "title": "travelers", "description": "List of travelers composing the travel", "type": "array", "minItems": 1, "maxItems": 18, "items": { "type": "object", "properties": { "id": { "type": "string", "example": 1 }, "travelerType": { "$ref": "#/definitions/TravelerType" }, "associatedAdultId": { "type": "string", "description": "if type=\"HELD_INFANT\", corresponds to the adult travelers's id who will share the seat", "example": "12345" } }, "required": [ "id", "travelerType" ] } }, "sources": { "title": "sources", "description": "Allows enable one or more sources. If present in the list, these sources will be called by the system. \nGDS : Full service carriers", "type": "array", "minItems": 1, "items": { "description": "source of the flight offer", "type": "string", "enum": [ "GDS" ], "example": "GDS" }, "example": [ "GDS" ] }, "searchCriteria": { "allOf": [ { "type": "object", "properties": { "excludeAllotments": { "description": "This option allows to exclude the isAllotment flag associated to a booking class in the search response when it exist.", "type": "boolean", "example": false }, "flightFilters": { "title": "FlightFilters", "$ref": "#/definitions/FlightFiltersLight" } } }, { "type": "object", "properties": { "includeClosedContent": { "type": "boolean", "description": "If true, closed booking classes, departed flights and cancelled flights will also be included in the response.", "example": false }, "class": { "type": "string", "description": "The code of the booking class", "example": "A" } } } ] } }, "required": [ "originDestinations", "travelers", "sources" ], "example": { "originDestinations": [ { "id": "1", "originLocationCode": "BOS", "destinationLocationCode": "MAD", "departureDateTime": { "date": "202-11-14", "time": "21:15:00" } } ], "travelers": [ { "id": "1", "travelerType": "ADULT" } ], "sources": [ "GDS" ] }, "type": "object" }