Availibility
Return list of Flight Availabilities based on posted searching criteria.
post/shopping/availability/flight-availabilities
Request
- Base URLhttps://test.api.amadeus.com/v1
- Authnone declared. Required headers: X-HTTP-Method-Override
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-HTTP-Method-Overridestring required
the HTTP method to apply
Request body
Example request
{
"originDestinations": [
{
"id": "1",
"originLocationCode": "BOS",
"destinationLocationCode": "MAD",
"departureDateTime": {
"date": "2023-11-14",
"time": "21:15:00"
}
}
],
"travelers": [
{
"id": "1",
"travelerType": "ADULT"
}
],
"sources": [
"GDS"
]
}Response
Successful Operation
Example response
{
"meta": {
"count": 1
},
"data": [
{
"type": "flight-availability",
"id": "1",
"originDestinationId": "1",
"source": "GDS",
"instantTicketingRequired": false,
"paymentCardRequired": false,
"duration": "PT10H35M",
"segments": [
{
"id": "1",
"numberOfStops": 0,
"blacklistedInEU": false,
"departure": {
"iataCode": "BOS",
"terminal": "E",
"at": "2023-11-14T20:25:00"
},
"arrival": {
"iataCode": "LHR",
"terminal": "4",
"at": "2023-11-15T08:05:00"
},
"carrierCode": "6X",
"number": "214",
"aircraft": {
"code": "772"
},
"availabilityClasses": [
{
"numberOfBookableSeats": 9,
"class": "F"
},
{
"numberOfBookableSeats": 9,
"class": "J"
},
{
"numberOfBookableSeats": 9,
"class": "I"
},
{
"numberOfBookableSeats": 9,
"class": "W"
},
{
"numberOfBookableSeats": 9,
"class": "Y"
},
{
"numberOfBookableSeats": 9,
"class": "B"
},
{
"numberOfBookableSeats": 9,
"class": "H"
},
{
"numberOfBookableSeats": 9,
"class": "K"
},
{
"numberOfBookableSeats": 9,
"class": "M"
},
{
"numberOfBookableSeats": 9,
"class": "G"
},
{
"numberOfBookableSeats": 9,
"class": "X"
}
]
},
{
"id": "2",
"numberOfStops": 0,
"blacklistedInEU": false,
"departure": {
"iataCode": "LHR",
"at": "2023-11-15T10:30:00"
},
"arrival": {
"iataCode": "MAD",
"at": "2023-11-15T13:00:00"
},
"carrierCode": "6X",
"number": "9931",
"aircraft": {
"code": "320"
},
"availabilityClasses": [
{
"numberOfBookableSeats": 9,
"class": "J"
},
{
"numberOfBookableSeats": 9,
"class": "I"
},
{
"numberOfBookableSeats": 9,
"class": "Y"
}
]
}
]
}
],
"dictionaries": {
"locations": {
"MAD": {
"cityCode": "MAD",
"countryCode": "ES"
},
"LHR": {
"cityCode": "LON",
"countryCode": "GB"
},
"BOS": {
"cityCode": "BOS",
"countryCode": "US"
}
}
}
}Changes
No recorded changes to this operation across all 4 revisions of this API.