amadeus.flightofferssearch
Module amadeus.flightofferssearch
Definitions
ballerinax/amadeus.flightofferssearch Ballerina library
Overview
Amadeus is a global travel technology company. Its Flight Offers Search API returns priced flight offers for a route, date and set of travellers. The connector lets applications search by origin, destination and date, or send a full request for multi-city trips and advanced criteria.
This connector supports version 2.9.1 of the Flight Offers Search API.
Key features
- Search flight offers by origin, destination, dates and number of travellers
- Filter offers by travel class, airlines, non-stop flights, currency and maximum price
- Run advanced and multi-city searches with a full search request body
- Authenticate with the OAuth 2.0 client credentials grant, with tokens fetched and refreshed automatically
Setup guide
To use the Amadeus Flight Offers Search connector you need an API key and an API secret for the Amadeus Flight Offers Search API.
Note: Amadeus decommissioned its Self-Service APIs portal on 17 July 2026 and disabled the API keys issued through it, including those for the
https://test.api.amadeus.comtest environment that the connector uses by default. The Amadeus for Developers portal now serves Amadeus Enterprise APIs only, so new credentials are available only to Amadeus Enterprise customers.
-
Obtain access to the Flight Offers Search API through an Amadeus Enterprise agreement, using the Amadeus for Developers portal.
-
Get the API key and API secret issued for your application, along with the API and token URLs of your environment.
-
The connector uses the API key and API secret as the client ID and client secret of the OAuth 2.0 client credentials grant. When you create the client, pass the API URL as the
serviceUrland the token URL asauth.tokenUrl.
Quickstart
To use the amadeus.flightofferssearch connector in your Ballerina application, update the .bal file as follows:
Step 1: Import the module
import ballerinax/amadeus.flightofferssearch;
Step 2: Instantiate a new connector
Create a Config.toml file with your credentials:
clientId = "<api-key>" clientSecret = "<api-secret>"
Then create a flightofferssearch:Client using them:
configurable string clientId = ?; configurable string clientSecret = ?; final flightofferssearch:Client amadeus = check new ({auth: {clientId, clientSecret}});
Step 3: Invoke the connector operation
Search for flight offers on a route:
public function main() returns error? { flightofferssearch:FlightOffersResponse _ = check amadeus->getFlightOffers( originLocationCode = "MAD", destinationLocationCode = "ATH", departureDate = "2026-12-01", adults = 1); }
Step 4: Run the Ballerina application
bal run
Examples
The Amadeus Flight Offers Search connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
-
Cheapest flight search - Search for offers on a route and date, pick the lowest total price and print its itinerary.
-
Multi-city trip quote - Request quotes for a three-leg trip with a single search request and compare the offers.
Clients
amadeus.flightofferssearch: Client
Searches for and prices flight offers with the Amadeus Flight Offers Search API.
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://test.api.amadeus.com/v2/shopping" - URL of the target service
getFlightOffers
function getFlightOffers(map<string|string[]> headers, *GetFlightOffersQueries queries) returns FlightOffersResponse|errorReturn list of Flight Offers based on searching criteria.
Parameters
- queries *GetFlightOffersQueries - Queries to be sent with the request
Return Type
- FlightOffersResponse|error - Successful Operation
searchFlightOffers
function searchFlightOffers(GetFlightOffersQuery payload, SearchFlightOffersHeaders headers) returns FlightOffersSearchResponse|errorReturn list of Flight Offers based on posted searching criteria.
Parameters
- payload GetFlightOffersQuery - list of criteria to retrieve a list of flight offers
- headers SearchFlightOffersHeaders (default {}) - Headers to be sent with the request
Return Type
- FlightOffersSearchResponse|error - Successful Operation
Records
amadeus.flightofferssearch: AdditionalInformation
Fields
- brandedFares? boolean - If true, returns the fare family name for each flight-offer which supports fare family
- chargeableCheckedBags? boolean - If true, returns the price of the first additional bag when the airline is an "Amadeus Ancillary Services" member
amadeus.flightofferssearch: AdditionalService
Fields
- amount? string -
- 'type? AdditionalServiceType - additional service type
amadeus.flightofferssearch: AdditionalServicesRequest
Additional services requested for the segment, such as chargeable checked bags, seats or other services
Fields
- chargeableCheckedBags? ChargeableCheckedBags - Details of chargeable checked bags
- chargeableSeatNumber? string - DEPRECATED - use the chargeableSeat attribute - seat number
- otherServices? ServiceName[] - Other services to add
- chargeableSeat? ChargeableSeat - Details of chargeable seat
amadeus.flightofferssearch: AircraftEntry
Fields
- string... - Rest field
amadeus.flightofferssearch: AircraftEquipment
information related to the aircraft
Fields
- code? string - IATA aircraft code (http://www.flugzeuginfo.net/table_accodes_iata_en.php)
amadeus.flightofferssearch: AllotmentDetails
Details of the allotment the booking class belongs to
Fields
- tourName? string - The tour name agreed for this specific allotment
- tourReference? string - The tour reference agreed for this specific allotment
amadeus.flightofferssearch: BaggageAllowance
baggageAllowance
Fields
- quantity? int - Total number of units
- weight? int - Weight of the baggage allowance
- weightUnit? string - Code to qualify unit as pounds or kilos
amadeus.flightofferssearch: CabinRestriction
Fields
- originDestinationIds? string[] - The list of originDestination identifiers for which the cabinRestriction applies
- cabin? TravelClass - quality of service offered in the cabin where the seat is located in this flight. Economy, premium economy, business or first class
amadeus.flightofferssearch: CarrierEntry
Fields
- string... - Rest field
amadeus.flightofferssearch: CarrierRestrictions
Restriction towards carriers
Fields
- includedCarrierCodes? string[] - This option ensures that the system will only consider these airlines
- excludedCarrierCodes? string[] - This option ensures that the system will only consider these airlines
- blacklistedInEUAllowed boolean(default false) - This flag enable/disable filtering of blacklisted airline by EU. The list of the banned airlines is published in the Official Journal of the European Union, where they are included as annexes A and B to the Commission Regulation. The blacklist of an airline can concern all its flights or some specific aircraft types pertaining to the airline
amadeus.flightofferssearch: ChargeableCheckedBags
Details of chargeable checked bags
Fields
- Fields Included from *BaggageAllowance
- id? string - Id of the chargeable bag
amadeus.flightofferssearch: ChargeableSeat
Details of chargeable seat
Fields
- number? string - seat number
- id? string - Id of the chargeable seat
amadeus.flightofferssearch: Co2Emission
Fields
- weight? int - Weight of Co2 emitted for the concerned segment
- cabin? TravelClass - quality of service offered in the cabin where the seat is located in this flight. Economy, premium economy, business or first class
- weightUnit? string - Code to qualify unit as pounds or kilos
amadeus.flightofferssearch: CollectionLinks
Fields
- next? string -
- previous? string -
- last? string -
- self? string -
- up? string -
- first? string -
amadeus.flightofferssearch: CollectionMeta
Fields
- count? int -
- oneWayCombinations? OneWayCombinations[] -
amadeus.flightofferssearch: CollectionMetaLink
Fields
- count? int -
- links? CollectionLinks -
amadeus.flightofferssearch: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth OAuth2ClientCredentialsGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 30) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
amadeus.flightofferssearch: ConnectionRestriction
Restriction towards number of connections
Fields
- nonStopPreferred? boolean - When this option is requested, recommendations made of Non-Stop flights only are favoured by the search, on the whole itinerary, with a weight of 75%
- maxNumberOfConnections? decimal - The maximal number of connections for each itinerary. Value can be 0, 1 or 2
- technicalStopsAllowed? boolean - This option allows the single segment to have one or more intermediate stops (technical stops)
- airportChangeAllowed? boolean - Allow to change airport during connection
amadeus.flightofferssearch: CurrencyEntry
Fields
- string... - Rest field
amadeus.flightofferssearch: DateTimeRange
Fields
- Fields Included from *DateTimeType
- dateWindow? string - Either 1, 2 or 3 extra days around the local date (IxD for +/- x days - Ex: I3D), Either 1 to 3 days after the local date (PxD for +x days - Ex: P3D), or 1 to 3 days before the local date (MxD for -x days - Ex: M3D) Can not be combined with "originRadius" or "destinationRadius"
- timeWindow? string - 1 to 12 hours around (both +and -) the local time. Possibly limited by the number of extra days when specified, i.e. in some situations, it may not be used to exceed the maximum date range. [1-12]H format, e.g. 6H Can not be combined with "originRadius" or "destinationRadius"
amadeus.flightofferssearch: DateTimeType
Fields
- time? string - Local time. hh:mm:ss format, e.g 10:30:00
amadeus.flightofferssearch: Dictionaries
Fields
- aircraft? AircraftEntry -
- locations? LocationEntry -
- carriers? CarrierEntry -
- currencies? CurrencyEntry -
amadeus.flightofferssearch: ExtendedCabinRestriction
Fields
- Fields Included from *CabinRestriction
- originDestinationIds string[]
- cabin TravelClass
- anydata...
- coverage? Coverage - part of the trip covered by the travel class restriction (ALL_SEGMENTS if ommited)
amadeus.flightofferssearch: ExtendedPrice
price information
Fields
- additionalServices? AdditionalService[] - Prices of the additional services
- margin? string - BOOK step ONLY - The price margin percentage (plus or minus) that the booking can tolerate. When set to 0, then no price magin is tolerated
- grandTotal? string - Total amount paid by the user (including fees and selected additional services)
- billingCurrency? string - Currency of the payment. It may be different than the requested currency
- Fields Included from *Price
amadeus.flightofferssearch: ExtendedPricingOptions
fare filter options
Fields
- includedCheckedBagsOnly? boolean - If true, returns the flight-offers with included checked bags only
- noRestrictionFare? boolean - If true, returns the flight-offers with no restriction fares only
- noPenaltyFare? boolean - If true, returns the flight-offers with no penalty fares only
- refundableFare? boolean - If true, returns the flight-offers with refundable fares only
amadeus.flightofferssearch: FareDetailsBySegment
Fare details of the segment
Fields
- isAllotment? boolean - True if the corresponding booking class is in an allotment
- additionalServices? AdditionalServicesRequest - Additional services requested for the segment, such as chargeable checked bags, seats or other services
- includedCheckedBags? BaggageAllowance - baggageAllowance
- fareBasis? string - Fare basis specifying the rules of a fare. Usually, though not always, is composed of the booking class code followed by a set of letters and digits representing other characteristics of the ticket, such as refundability, minimum stay requirements, discounts or special promotional elements
- segmentId string - Id of the segment
- cabin? TravelClass - quality of service offered in the cabin where the seat is located in this flight. Economy, premium economy, business or first class
- 'class? string - The code of the booking class, a.k.a. class of service or Reservations/Booking Designator (RBD)
- sliceDiceIndicator? SliceDiceIndicator - slice and Dice indicator, such as Local Availability, Sub OnD(Origin and Destination) 1 Availability and Sub OnD 2 Availability
- brandedFare? string - The name of the Fare Family corresponding to the fares. Only for the GDS provider and if the airline has fare families filled
- allotmentDetails? AllotmentDetails - Details of the allotment the booking class belongs to
amadeus.flightofferssearch: Fee
a fee
Fields
- amount? string - Amount of the fee
- 'type? FeeType - type of fee
amadeus.flightofferssearch: FlightEndPoint
departure or arrival information
Fields
- Fields Included from *OriginalFlightEndPoint
amadeus.flightofferssearch: FlightFilters
Fields
- busSegmentAllowed? boolean - This flag enable/disable filtering of bus segment
- maxFlightTime? decimal - Maximum flight time as a percentage relative to the shortest flight time available for the itinerary
- cabinRestrictions? ExtendedCabinRestriction[] - Restriction towards cabins
- connectionRestriction? ConnectionRestriction - Restriction towards number of connections
- returnToDepartureAirport? boolean - This option force to retrieve flight-offer with a departure and a return in the same airport
- carrierRestrictions? CarrierRestrictions - Restriction towards carriers
- railSegmentAllowed? boolean - This flag enable/disable filtering of rail segment (TGV AIR, RAIL ...)
- moreOvernightsAllowed? boolean - This flag enables/disables the possibility to have more overnight flights in Low Fare Search
- crossBorderAllowed? boolean - Allows to search a location outside the borders when a radius around a location is specified. Default is false
amadeus.flightofferssearch: FlightOffer
Fields
- paymentCardRequired? boolean - If true, a payment card is mandatory to book this flight offer
- numberOfBookableSeats? decimal - Number of seats bookable in a single request. Can not be higher than 9
- travelerPricings? TravelerPricing[] - Fare information for each traveler/segment
- instantTicketingRequired? boolean - If true, inform that a ticketing will be required at booking step
- validatingAirlineCodes? string[] - This option ensures that the system will only consider offers with these airlines as validating carrier
- disablePricing? boolean - BOOK step ONLY - If true, allows to book a PNR without pricing. Only for the source "GDS"
- 'source? FlightOfferSource - source of the flight offer
- 'type string - the resource name
- oneWay? boolean - If true, the flight offer can be combined with other oneWays flight-offers to complete the whole journey (one-Way combinable feature)
- price? ExtendedPrice - price information
- pricingOptions? PricingOptions -
- nonHomogeneous? boolean - If true, upon completion of the booking, this pricing solution is expected to yield multiple records (a record contains booking information confirmed and stored, typically a Passenger Name Record (PNR), in the provider GDS or system)
- itineraries? Itinerary[] -
- lastTicketingDate? string - If booked on the same day as the search (with respect to timezone), this flight offer is guaranteed to be thereafter valid for ticketing until this date (included). Unspecified when it does not make sense for this flight offer (e.g. no control over ticketing once booked). YYYY-MM-DD format, e.g. 2019-06-07
- id string - Id of the flight offer
- lastTicketingDateTime? string - If booked on the same day as the search (with respect to timezone), this flight offer is guaranteed to be thereafter valid for ticketing until this date/time (included). Unspecified when it does not make sense for this flight offer (e.g. no control over ticketing once booked). Information only this attribute is not used in input of pricing request. Local date and time in YYYY-MM-ddThh:mm:ss format, e.g. 2017-02-10T20:40:00
amadeus.flightofferssearch: FlightOffersResponse
Fields
- warnings? Issue[] -
- meta? CollectionMetaLink -
- data FlightOffer[] -
- dictionaries? Dictionaries -
amadeus.flightofferssearch: FlightOffersSearchResponse
Fields
- warnings? Issue[] -
- meta? CollectionMeta -
- data FlightOffer[] -
- dictionaries? Dictionaries -
amadeus.flightofferssearch: FlightSegment
defining a flight segment; including both operating and marketing details when applicable
Fields
- number? string - the flight number as assigned by the carrier
- arrival? FlightEndPoint - departure or arrival information
- carrierCode? string - providing the airline / carrier code
- aircraft? AircraftEquipment - information related to the aircraft
- departure? FlightEndPoint - departure or arrival information
- operating? OperatingFlight - information about the operating flight
- stops? FlightStop[] - information regarding the different stops composing the flight segment. E.g. technical stop, change of gauge..
amadeus.flightofferssearch: FlightStop
details of stops for direct or change of gauge flights
Fields
- Fields Included from *OriginalFlightStop
amadeus.flightofferssearch: GetFlightOffersQueries
Represents the Queries record for the operation: getFlightOffers
Fields
- infants? int - the number of infant travelers (whose age is less or equal to 2 on date of departure). Infants travel on the lap of an adult traveler, and thus the number of infants must not exceed the number of adults. If specified, this number should be greater than or equal to 0
- nonStop boolean(default false) - if set to true, the search will find only flights going from the origin to the destination with no stop in between
- max int(default 250) - maximum number of flight offers to return. If specified, the value should be greater than or equal to 1
- adults int(default 1) - the number of adult travelers (age 12 or older on date of departure). The total number of seated travelers (adult and children) can not exceed 9
- excludedAirlineCodes? string - This option ensures that the system will ignore these airlines. This can not be cumulated with parameter includedAirlineCodes. Airlines are specified as IATA airline codes and are comma-separated, e.g. 6X,7X,8X
- travelClass? "ECONOMY"|"PREMIUM_ECONOMY"|"BUSINESS"|"FIRST" - most of the flight time should be spent in a cabin of this quality or higher. The accepted travel class is economy, premium economy, business or first class. If no travel class is specified, the search considers any travel class
- returnDate? string - the date on which the traveler will depart from the destination to return to the origin. If this parameter is not specified, only one-way itineraries are found. If this parameter is specified, only round-trip itineraries are found. Dates are specified in the ISO 8601 YYYY-MM-DD format, e.g. 2018-02-28
- children? int - the number of child travelers (older than age 2 and younger than age 12 on date of departure) who will each have their own separate seat. If specified, this number should be greater than or equal to 0 The total number of seated travelers (adult and children) can not exceed 9
- maxPrice? int - maximum price per traveler. By default, no limit is applied. If specified, the value should be a positive number with no decimals
- includedAirlineCodes? string - This option ensures that the system will only consider these airlines. This can not be cumulated with parameter excludedAirlineCodes. Airlines are specified as IATA airline codes and are comma-separated, e.g. 6X,7X,8X
amadeus.flightofferssearch: GetFlightOffersQuery
Fields
- sources FlightOfferSource[] - Allows enable one or more sources. If present in the list, these sources will be called by the system
- searchCriteria? SearchCriteria -
- originDestinations OriginDestination[] - 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
- travelers ExtendedTravelerInfo[] - travelers in the trip. Maximum number of passengers older than 2 yo (CHILD, ADULT, YOUGHT): 9. Each adult can travel with one INFANT so maximum total number of passengers: 18
amadeus.flightofferssearch: Issue
Fields
- code? int - an application-specific error code
- detail? string - explanation of the error
- 'source? IssueSource - an object containing references to the source of the error
- title? string - a short summary of the error
- status? int - the HTTP status code applicable to this error
amadeus.flightofferssearch: IssueSource
an object containing references to the source of the error
Fields
- pointer? string - a JSON Pointer [RFC6901] to the associated entity in the request document
- 'parameter? string - a string indicating which URI query parameter caused the issue
- example? string - a string indicating an example of the right value
amadeus.flightofferssearch: Itinerary
Fields
- segments Segment[] -
amadeus.flightofferssearch: LocationEntry
Fields
- LocationValue... - Rest field
amadeus.flightofferssearch: LocationValue
Fields
- cityCode? string - City code associated to the airport
- countryCode? string - Country code of the airport
amadeus.flightofferssearch: OAuth2ClientCredentialsGrantConfig
OAuth2 Client Credentials Grant Configs
Fields
- Fields Included from *OAuth2ClientCredentialsGrantConfig
- tokenUrl string(default "https://test.api.amadeus.com/v1/security/oauth2/token") - Token URL
amadeus.flightofferssearch: OneWayCombinations
Fields
- originDestinationId? string -
- flightOfferIds? string[] -
amadeus.flightofferssearch: OperatingFlight
information about the operating flight
Fields
- carrierCode? string - providing the airline / carrier code
amadeus.flightofferssearch: OriginalFlightEndPoint
departure or arrival information
Fields
- iataCode? string - IATA airline codes
- terminal? string - terminal name / number
amadeus.flightofferssearch: OriginalFlightStop
details of stops for direct or change of gauge flights
Fields
- iataCode? string - IATA airline codes
amadeus.flightofferssearch: OriginDestination
Fields
- Fields Included from *OriginDestinationLight
- departureDateTimeRange? DateTimeRange -
- arrivalDateTimeRange? DateTimeRange -
- originRadius? decimal - Include other possible locations around the point, located less than this distance in kilometers away. Max:300 Can not be combined with "dateWindow" or "timeWindow"
- destinationRadius? decimal - Include other possible locations around the point, located less than this distance in kilometers away. Max:300 Can not be combined with "dateWindow" or "timeWindow"
amadeus.flightofferssearch: OriginDestinationLight
Fields
- includedConnectionPoints? string[] - 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
- id? string -
- excludedConnectionPoints? string[] - 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
amadeus.flightofferssearch: Price
Fields
- total? string - Total amount paid by the user
- fees? Fee[] - List of applicable fees
- taxes? Tax[] -
- currency? string -
- refundableTaxes? string - The amount of taxes which are refundable
- base? string - Amount without taxes
amadeus.flightofferssearch: PricingOptions
Fields
- includedCheckedBagsOnly? boolean - If true, returns the flight-offers with included checked bags only
- noRestrictionFare? boolean - If true, returns the flight-offers with no restriction fares only
- noPenaltyFare? boolean - If true, returns the flight-offers with no penalty fares only
- fareType? PricingOptionsFareType - type of fare of the flight-offer
- refundableFare? boolean - If true, returns the flight-offers with refundable fares only
amadeus.flightofferssearch: SearchCriteria
Fields
- excludeAllotments? boolean - This option allows to exclude the isAllotment flag associated to a booking class in the search response when it exist
- additionalInformation? AdditionalInformation -
- allowAlternativeFareOptions? boolean - This option allows to default to a standard fareOption if no offers are found for the selected fareOption
- oneFlightOfferPerDay? boolean - Requests the system to find at least one flight-offer per day, if possible, when a range of dates is specified. Default is false
- flightFilters? FlightFilters -
- pricingOptions? ExtendedPricingOptions - fare filter options
- addOneWayOffers? boolean - This option allows activate the one-way combinable feature
- maxFlightOffers? decimal - Maximum number of flight offers returned (Max 250)
- maxPrice? int - maximum price per traveler. By default, no limit is applied. If specified, the value should be a positive number with no decimals
amadeus.flightofferssearch: SearchFlightOffersHeaders
Represents the Headers record for the operation: searchFlightOffers
Fields
- xHTTPMethodOverride string(default "GET") - the HTTP method to apply
amadeus.flightofferssearch: Segment
Fields
- numberOfStops? int - Number of stops planned on the segment for technical or operation purpose i.e. refueling
- blacklistedInEU? boolean - When the flight has a marketing or/and operating airline that is identified as blacklisted by the European Commission. To improve travel safety, the European Commission regularly updates the list of the banned carriers from operating in Europe. It allows any Travel Agency located in the European Union to easily identify and hide any travel recommendation based on some unsafe airlines. The list of the banned airlines is published in the Official Journal of the European Union, where they are included as annexes A and B to the Commission Regulation. The blacklist of an airline can concern all its flights or some specific aircraft types pertaining to the airline
- id? string - Id of the segment
- co2Emissions? Co2Emission[] - Co2 informations
- Fields Included from *FlightSegment
- duration string
- number string
- arrival FlightEndPoint
- carrierCode string
- aircraft AircraftEquipment
- departure FlightEndPoint
- operating OperatingFlight
- stops FlightStop[]
- anydata...
amadeus.flightofferssearch: Tax
a tax
Fields
- amount? string - Amount of the tax
- code? string - Code of the tax
amadeus.flightofferssearch: TravelerInfo
Fields
- travelerType TravelerType - traveler type age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
- associatedAdultId? string - if type="HELD_INFANT", corresponds to the adult travelers's id who will share the seat
- id string -
amadeus.flightofferssearch: TravelerPricing
Fields
- travelerType TravelerType - traveler type age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
- price? Price -
- associatedAdultId? string - if type="HELD_INFANT", corresponds to the adult traveler's id who will share the seat
- fareOption TravelerPricingFareOption - option specifying a group of fares, which may be valid under certain conditons Can be used to specify special fare discount for a passenger
- fareDetailsBySegment FareDetailsBySegment[] -
- travelerId string - Id of the traveler
Union types
amadeus.flightofferssearch: TravelerType
TravelerType
traveler type age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
amadeus.flightofferssearch: TravelClass
TravelClass
quality of service offered in the cabin where the seat is located in this flight. Economy, premium economy, business or first class
amadeus.flightofferssearch: ServiceName
ServiceName
type of service
amadeus.flightofferssearch: FeeType
FeeType
type of fee
amadeus.flightofferssearch: Coverage
Coverage
part of the trip covered by the travel class restriction (ALL_SEGMENTS if ommited)
amadeus.flightofferssearch: SliceDiceIndicator
SliceDiceIndicator
slice and Dice indicator, such as Local Availability, Sub OnD(Origin and Destination) 1 Availability and Sub OnD 2 Availability
amadeus.flightofferssearch: AdditionalServiceType
AdditionalServiceType
additional service type
amadeus.flightofferssearch: TravelerPricingFareOption
TravelerPricingFareOption
option specifying a group of fares, which may be valid under certain conditons Can be used to specify special fare discount for a passenger
Array types
amadeus.flightofferssearch: PricingOptionsFareType
PricingOptionsFareType
type of fare of the flight-offer
Simple name reference types
amadeus.flightofferssearch: ExtendedTravelerInfo
ExtendedTravelerInfo
Import
import ballerinax/amadeus.flightofferssearch;Metadata
Released date: about 17 hours ago
Version: 2.0.1
License: Apache-2.0
Security
Direct vulnerabilities: No known direct vulnerabilities
Indirect vulnerabilities:
Checked on 2026-11-20 via OSV.dev
Compatibility
Platform: any
Ballerina version: 2201.12.0
GraalVM compatible: Yes
Pull count
Total: 139
Current verison: 1
Weekly downloads
Keywords
Vendor/Amadeus
Area/E-Commerce
Type/Connector
Contributors