amadeus.flightoffersprice
Module amadeus.flightoffersprice
Definitions
ballerinax/amadeus.flightoffersprice Ballerina library
Overview
Amadeus is a global travel technology company, and its Flight Offers Price API confirms the final price and availability of flight offers returned by a flight search. The connector lets applications price flight offers and read back the confirmed fares, booking requirements and additional services.
This connector supports version 1.3.0 of the Flight Offers Price API.
Key features
- Confirm the price and availability of one or more flight offers before booking
- Include optional extras such as extra bags, other services and detailed fare rules in the pricing response
- Force the use of a specific booking class when pricing
- Authenticate with the OAuth 2.0 client credentials grant, with tokens fetched and refreshed automatically
Setup guide
To use the Amadeus Flight Offers Price connector you need an API key and an API secret for the Amadeus Flight Offers Price 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 Price 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.flightoffersprice connector in your Ballerina application, update the .bal file as follows:
Step 1: Import the module
import ballerina/io; import ballerinax/amadeus.flightoffersprice;
Step 2: Instantiate a new connector
Create a Config.toml file with your credentials:
clientId = "<api-key>" clientSecret = "<api-secret>"
Then create a flightoffersprice:Client using them:
configurable string clientId = ?; configurable string clientSecret = ?; final flightoffersprice:Client amadeus = check new ({auth: {clientId, clientSecret}});
Step 3: Invoke the connector operation
Confirm the price of a flight offer returned by Flight Offers Search. Save one offer from the data array of a search response as flight-offer.json, and pass it to the connector unchanged, because pricing needs the offer's original fare and traveler pricing details:
public function main() returns error? { flightoffersprice:FlightOffer offer = check (check io:fileReadJson("flight-offer.json")).cloneWithType(); flightoffersprice:QuoteAirOffersResponse _ = check amadeus->quoteAirOffers({ data: {'type: "flight-offers-pricing", flightOffers: [offer]} }); }
Step 4: Run the Ballerina application
bal run
Examples
The Amadeus Flight Offers Price connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
-
Round trip fare quote - Confirm the price of a round-trip flight offer and print the fare per offer and traveler.
-
Baggage cost comparison - Price one flight offer with and without extra bag options and compare the cost of checked baggage.
Clients
amadeus.flightoffersprice: Client
Confirms the final price and availability of flight offers before they are booked.
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/v1/shopping/flight-offers" - URL of the target service
quoteAirOffers
function quoteAirOffers(QuoteAirOffersRequest payload, QuoteAirOffersHeaders headers, *QuoteAirOffersQueries queries) returns QuoteAirOffersResponse|errorConfirm pricing of given flightOffers.
Parameters
- payload QuoteAirOffersRequest - list of criteria to confirm the price of a dedicated flight-offers
- headers QuoteAirOffersHeaders (default {}) - Headers to be sent with the request
- queries *QuoteAirOffersQueries - Queries to be sent with the request
Return Type
- QuoteAirOffersResponse|error - Successful Operation
Records
amadeus.flightoffersprice: AdditionalService
Fields
- amount? string -
- 'type? AdditionalServiceType - additional service type
amadeus.flightoffersprice: AdditionalServicesRequest
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.flightoffersprice: Address
address information
Fields
- cityName? string - Full city name. Example: Dublin
- stateName? string - Full state name
- countryCode? string - country code ISO 3166-1 country code
- postalCode? string - Example: 74130
- postalBox? string - E.g. BP 220
- lines? string[] - Line 1 = Street address, Line 2 = Apartment, suite, unit, building, floor, etc
amadeus.flightoffersprice: AircraftEntry
Fields
- string... - Rest field
amadeus.flightoffersprice: AircraftEquipment
information related to the aircraft
Fields
- code? string - IATA aircraft code (http://www.flugzeuginfo.net/table_accodes_iata_en.php)
amadeus.flightoffersprice: AllotmentDetails
Fields
- tourName? string - The tour name agreed for this specific allotment
- tourReference? string - The tour reference agreed for this specific allotment
amadeus.flightoffersprice: 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.flightoffersprice: Bags
checked bag
Fields
- Fields Included from *BaggageAllowance
- bookableByItinerary? boolean - Specify if the service is bookable by itinerary or for all itineraries
- travelerIds? string[] - Id of the traveler concerned by the service
- price? ElementaryPrice - elementaryPrice
- name? string - Type of service
- segmentIds? string[] - Id of the segment concerned by the service
amadeus.flightoffersprice: BaseName
description of the name of a physical person
Fields
- firstName? string - First name
- lastName? string - Last name
- middleName? string - Middle name(s), for example "Lee" in "John Lee Smith"
amadeus.flightoffersprice: BookingRequirements
pricing condition at booking level
Fields
- emailAddressRequired? boolean - If true, an email address is required for the creation of the flight-order
- invoiceAddressRequired? boolean - If true, an invoice address is required for the creation of the flight-order
- mobilePhoneNumberRequired? boolean - If true, a mobile phone number is required for the creation of the flight-order
- mailingAddressRequired? boolean - If true, a postal address is required for the creation of the flight-order
- postalCodeRequired? boolean - If true, a postal code is required for the creation of the flight-order
- phoneCountryCodeRequired? boolean - If true, the phone country code (e.g. '33') associated for each phone number is required for the creation of the flight-order
- travelerRequirements? PassengerConditions[] - traveler pricing condition
- phoneNumberRequired? boolean - If true, a phone number is required for the creation of the flight-order
amadeus.flightoffersprice: CarrierEntry
Fields
- string... - Rest field
amadeus.flightoffersprice: ChargeableCheckedBags
Details of chargeable checked bags
Fields
- Fields Included from *BaggageAllowance
- id? string - Id of the chargeable bag
amadeus.flightoffersprice: ChargeableSeat
Details of chargeable seat
Fields
- number? string - seat number
- id? string - Id of the chargeable seat
amadeus.flightoffersprice: 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.flightoffersprice: 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.flightoffersprice: Contact
contact information
Fields
- Fields Included from *ContactDictionary
- address Address
- purpose ContactPurpose
- addresseeName Name
- language string
- anydata...
- emailAddress? string - Email address (e.g. john@smith.com)
- companyName? string - Name of the company
- phones? Phone[] - Phone numbers
amadeus.flightoffersprice: ContactDictionary
represents a contact
Fields
- address? Address - address information
- purpose? ContactPurpose - the purpose for which this contact is to be used
- addresseeName? Name - name
- language? string - the preferred language of communication with this Contact
amadeus.flightoffersprice: CreditCardFee
Fields
- amount? string -
- currency? string -
- flightOfferId? string - Id of the flightOffer concerned by the credit card fee
- brand? PaymentBrand - credit card brand
amadeus.flightoffersprice: CurrencyEntry
Fields
- string... - Rest field
amadeus.flightoffersprice: Description
Fields
- descriptionType? string -
- text? string -
amadeus.flightoffersprice: DetailedFareRules
Fields
- fareBasis? string -
- fareNotes? TermAndCondition -
- segmentId? string - Id of the segment concerned by the fare rule
- name? string -
amadeus.flightoffersprice: Dictionaries
Fields
- aircraft? AircraftEntry -
- locations? LocationEntry -
- carriers? CarrierEntry -
- currencies? CurrencyEntry -
amadeus.flightoffersprice: Discount
traveler discount
Fields
- cityName? string - city of residence
- travelerType? DiscountTravelerType - type of discount applied
- certificateNumber? string - resident certificate number
- subType? DiscountType - type of discount applied
- cardNumber? string - resident card number
amadeus.flightoffersprice: Document
the information that are found on an ID document
Fields
- expiryDate? string - Date after which the document is not valid anymore
- number? string - The document number (shown on the document) . E.g. QFU514563221J
- birthPlace? string - Birth place as indicated on the document
- nationality? string - ISO 3166-1 alpha-2 of the nationality appearing on the document
- issuanceDate? string - Date at which the document has been issued
- issuanceCountry? string - ISO 3166-1 alpha-2 of the country that issued the document
- issuanceLocation? string - A more precise information concerning the place where the document has been issued, when available. It may be a country, a state, a city or any other type of location. e.g. New-York
amadeus.flightoffersprice: ElementaryPrice
elementaryPrice
Fields
- amount? string - Amount of the fare. could be alpha numeric. Ex- 500.20 or 514.13A, 'A'signifies additional collection
- currencyCode? string - Currency type of the fare
amadeus.flightoffersprice: EmergencyContact
emergency contact number
Fields
- number? string - Phone number. Composed of digits only. The number of digits depends on the country
- countryCode? string - Country code of the country (ISO3166-1). E.g. "US" for the United States
- addresseeName? string - Adressee name (e.g. in case of emergency purpose it corresponds to name of the person to be contacted)
- text? string - additional details
amadeus.flightoffersprice: ExtendedPrice
price information
Fields
- additionalServices? AdditionalService[] -
- 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.flightoffersprice: FareDetailsBySegment
Fare details of the segment
Fields
- isAllotment? boolean - True if the corresponding booking class is in an allotment
- additionalServices? AdditionalServicesRequest -
- 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 -
amadeus.flightoffersprice: Fee
a fee
Fields
- amount? string -
- 'type? FeeType - type of fee
amadeus.flightoffersprice: FlightEndPoint
departure or arrival information
Fields
- Fields Included from *OriginalFlightEndPoint
amadeus.flightoffersprice: 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.flightoffersprice: FlightOfferPricingIn
input parameter to price flight offers element
Fields
- flightOffers FlightOffer[] - list of flight offer to price
- payments? Payment[] - payment information for retrieve eventual credit card fees
- 'type string - the resource name
- travelers? Traveler[] - list of travelers
amadeus.flightoffersprice: FlightOfferPricingOut
priced flight Offers and conditions
Fields
- flightOffers FlightOffer[] - list of flight offer to price
- bookingRequirements? BookingRequirements - pricing condition at booking level
- 'type string - the resource name
amadeus.flightoffersprice: 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.flightoffersprice: FlightStop
details of stops for direct or change of gauge flights
Fields
- Fields Included from *OriginalFlightStop
amadeus.flightoffersprice: IdentityDocument
documents of the traveler
Fields
- Fields Included from *Document
- validityCountry? string - ISO 3166-1 alpha-2 of the country where the document is valid
- documentType? DocumentType - the nature/type of the document
- birthCountry? string - ISO 3166-1 alpha-2 of the country of birth
- holder? boolean - boolean to specify if the traveler is the holder of the document
amadeus.flightoffersprice: 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.flightoffersprice: 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.flightoffersprice: Itinerary
Fields
- segments Segment[] -
amadeus.flightoffersprice: LocationEntry
Fields
- LocationValue... - Rest field
amadeus.flightoffersprice: LocationValue
Fields
- cityCode? string - City code associated to the airport
- countryCode? string - Country code of the airport
amadeus.flightoffersprice: LoyaltyProgram
loyalty program information
Fields
- programOwner? string - loyalty program airline code
- id? string - loyalty program number
amadeus.flightoffersprice: Name
name
Fields
- Fields Included from *BaseName
- secondLastName? string - second last name
amadeus.flightoffersprice: 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.flightoffersprice: OperatingFlight
information about the operating flight
Fields
- carrierCode? string - providing the airline / carrier code
amadeus.flightoffersprice: OriginalFlightEndPoint
departure or arrival information
Fields
- iataCode? string - IATA airline codes
- terminal? string - terminal name / number
amadeus.flightoffersprice: OriginalFlightStop
details of stops for direct or change of gauge flights
Fields
- iataCode? string - IATA airline codes
amadeus.flightoffersprice: OtherServices
Fields
- bookableByItinerary? boolean - Specify if the service is bookable by itinerary or for all itineraries
- travelerIds? string[] - Id of the traveler concerned by the service
- price? ElementaryPrice - elementaryPrice
- bookableByTraveler? boolean - Specify if the service is bookable by traveler or for all travelers
- name? ServiceName - type of service
- segmentIds? string[] - Id of the segment concerned by the service
amadeus.flightoffersprice: PassengerConditions
Fields
- residenceRequired? boolean - If true, the address is required for the concerned traveler for the creation of the flight-order
- documentIssuanceCityRequired? boolean - If true, the isuance city of the document is required for the concerned traveler for the creation of the flight-order
- dateOfBirthRequired? boolean - If true, the date of bitrth is required for the concerned traveler for the creation of the flight-order
- documentRequired? boolean - If true, a document is required for the concerned traveler for the creation of the flight-order
- airFranceDiscountRequired? boolean - If true, the Air France discount is required for the concerned traveler for the creation of the flight-order
- genderRequired? boolean - If true, the gender is required for the concerned traveler for the creation of the flight-order
- spanishResidentDiscountRequired? boolean - If true, the Spanish resident discount is required for the concerned traveler for the creation of the flight-order
- redressRequiredIfAny? boolean - If true, the redress is required if any for the concerned traveler for the creation of the flight-order
- travelerId? string - Id of the traveler
amadeus.flightoffersprice: Payment
Fields
- flightOfferIds? string[] - Id of the flightOffers to pay
- binNumber? int - The first 6 digits of the credit card
- brand? PaymentBrand - credit card brand
amadeus.flightoffersprice: Phone
phone information
Fields
- deviceType? PhoneDeviceType - Type of the device (Landline, Mobile or Fax)
- number? string - Phone number. Composed of digits only. The number of digits depends on the country
- countryCallingCode? string - Country calling code of the phone number, as defined by the International Communication Union. Examples - "1" for US, "371" for Latvia
amadeus.flightoffersprice: 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.flightoffersprice: PricingIncludedResources
Fields
- credit\-card\-fees? record { CreditCardFee... } - Map of fee applied by credit card brand
- bags? record { Bags... } - Map of fee applied by bag option
- other\-services? record { OtherServices... } - Map of fee applied by service
- detailed\-fare\-rules? record { DetailedFareRules... } - Map of fare rules applied by farebasis
amadeus.flightoffersprice: 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.flightoffersprice: QuoteAirOffersHeaders
Represents the Headers record for the operation: quoteAirOffers
Fields
- xHTTPMethodOverride string(default "GET") - the HTTP method to apply
amadeus.flightoffersprice: QuoteAirOffersQueries
Represents the Queries record for the operation: quoteAirOffers
Fields
- include? ("credit-card-fees"|"bags"|"other-services"|"detailed-fare-rules")[] - Sub-resources to be included:
- credit-card-fees to get the credit card fee applied on the booking
- bags to get extra bag options
- other-services to get services options
- detailed-fare-rules to get detailed fare rules options
- forceClass boolean(default false) - parameter to force the usage of booking class for pricing
- true, to for pricing with the specified booking class
- false, to get the best available price
amadeus.flightoffersprice: QuoteAirOffersRequest
Fields
- data FlightOfferPricingIn - input parameter to price flight offers element
amadeus.flightoffersprice: QuoteAirOffersResponse
Fields
- warnings? Issue[] -
- data FlightOfferPricingOut - priced flight Offers and conditions
- included? PricingIncludedResources -
- dictionaries? Dictionaries -
amadeus.flightoffersprice: Segment
Fields
- numberOfStops? int - Number of stops
- 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.flightoffersprice: Stakeholder
stakeholder definition
Fields
- gender? StakeholderGender - The gender
- documents? IdentityDocument[] - Advanced Passenger Information - regulatory identity documents - SSR DOCS & DOCO elements
- name? Name - name
- dateOfBirth? string - The date of birth in ISO 8601 format (yyyy-mm-dd)
- id? string - item identifier
amadeus.flightoffersprice: Tax
a tax
Fields
- amount? string -
- code? string -
amadeus.flightoffersprice: TermAndCondition
Fields
- circumstances? string -
- maxPenaltyAmount? string -
- category? "REFUND"|"EXCHANGE"|"REVALIDATION"|"REISSUE"|"REBOOK"|"CANCELLATION" - This defines what type of modification is concerned in this rule
- descriptions? Description[] -
- notApplicable? boolean -
amadeus.flightoffersprice: Traveler
the traveler of the trip
Fields
- Fields Included from *Stakeholder
- gender StakeholderGender
- documents IdentityDocument[]
- name Name
- dateOfBirth string
- id string
- anydata...
- emergencyContact? EmergencyContact - emergency contact number
- loyaltyPrograms? LoyaltyProgram[] - list of loyalty program followed by the traveler
- contact? Contact - contact information
- discountEligibility? Discount[] - list of element that allow a discount
amadeus.flightoffersprice: 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.flightoffersprice: TravelerType
TravelerType
traveler type age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
amadeus.flightoffersprice: 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.flightoffersprice: DiscountTravelerType
DiscountTravelerType
type of discount applied
amadeus.flightoffersprice: ServiceName
ServiceName
type of service
amadeus.flightoffersprice: DiscountType
DiscountType
type of discount applied
amadeus.flightoffersprice: FeeType
FeeType
type of fee
amadeus.flightoffersprice: ContactPurpose
ContactPurpose
the purpose for which this contact is to be used
amadeus.flightoffersprice: PaymentBrand
PaymentBrand
credit card brand
amadeus.flightoffersprice: StakeholderGender
StakeholderGender
The gender
amadeus.flightoffersprice: DocumentType
DocumentType
the nature/type of the document
amadeus.flightoffersprice: SliceDiceIndicator
SliceDiceIndicator
slice and Dice indicator, such as Local Availability, Sub OnD(Origin and Destination) 1 Availability and Sub OnD 2 Availability
amadeus.flightoffersprice: PhoneDeviceType
PhoneDeviceType
Type of the device (Landline, Mobile or Fax)
amadeus.flightoffersprice: AdditionalServiceType
AdditionalServiceType
additional service type
amadeus.flightoffersprice: 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.flightoffersprice: PricingOptionsFareType
PricingOptionsFareType
type of fare of the flight-offer
Import
import ballerinax/amadeus.flightoffersprice;Metadata
Released date: 1 day ago
Version: 2.0.0
License: Apache-2.0
Security
Direct vulnerabilities: No known direct vulnerabilities
Indirect vulnerabilities:
Checked on 2026-11-21 via OSV.dev
Compatibility
Platform: any
Ballerina version: 2201.12.0
GraalVM compatible: Yes
Pull count
Total: 129
Current verison: 1
Weekly downloads
Keywords
Vendor/Amadeus
Area/E-Commerce
Type/Connector
Contributors