amadeus.flightcreateorders
Module amadeus.flightcreateorders
Definitions
ballerinax/amadeus.flightcreateorders Ballerina library
Overview
Amadeus offers travel APIs for searching, pricing and booking flights, hotels and related travel services. The Flight Create Orders API creates a flight order, which books the priced flight offers for the travelers and contacts supplied in the request. Forms of payment can be supplied only where the Amadeus account supports them; the former Self-Service offering did not accept them.
The Amadeus Flight Create Orders connector lets Ballerina applications book flights through the Amadeus booking engine. It supports version 1.10.0 of the Flight Create Orders API.
Key features
- Create flight orders from priced flight offers
- Attach traveler identity, contact and loyalty details to a booking
- Provide ticketing agreements and remarks with the order, and forms of payment where the Amadeus account supports them
- Authenticate with the OAuth 2.0 client credentials grant
Setup guide
To use the Amadeus Flight Create Orders connector, you need an API key and API secret for Amadeus Enterprise APIs.
Note: The Amadeus Self-Service portal was decommissioned on 17 July 2026. New registrations and app creation there stopped, and Self-Service API keys were disabled, so credentials can no longer be created through the Self-Service workspace.
-
Contact your Amadeus account manager to get access to the Flight Create Orders API through Amadeus Enterprise.
-
Obtain the API Key and API Secret issued for your application. They are the client ID and client secret used to obtain access tokens from
https://api.amadeus.com/v1/security/oauth2/token(https://test.api.amadeus.com/v1/security/oauth2/tokenfor the test environment).
Quickstart
To use the Amadeus Flight Create Orders connector in your Ballerina application, update the .bal file as follows:
Step 1: Import the module
Import the amadeus.flightcreateorders module, and ballerina/io to read the priced flight offer.
import ballerina/io; import ballerinax/amadeus.flightcreateorders as amadeus;
Step 2: Instantiate a new connector
- Create a
Config.tomlfile and configure the credentials obtained in the steps above:
clientId = "<API Key>" clientSecret = "<API Secret>"
- Create an
amadeus:ConnectionConfigwith the OAuth 2.0 client credentials and initialize the connector with it.
configurable string clientId = ?; configurable string clientSecret = ?; final amadeus:Client amadeusClient = check new ({ auth: { tokenUrl: "https://api.amadeus.com/v1/security/oauth2/token", clientId, clientSecret } });
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
Create a flight order
Book a flight offer priced with the Flight Offers Price API, passing the priced offer unchanged. flight_offers_price.json holds that API's response.
public function main() returns error? { json pricingResponse = check io:fileReadJson("flight_offers_price.json"); json pricedOffers = check pricingResponse.data.flightOffers; amadeus:FlightOffer[] flightOffers = check pricedOffers.cloneWithType(); amadeus:Success_Booking booking = check amadeusClient->createFlightOrder({ data: { 'type: "flight-order", flightOffers, travelers: [ { id: "1", dateOfBirth: "1982-01-16", name: {firstName: "JORGE", lastName: "GONZALES"}, contact: { emailAddress: "jorge.gonzales833@telefonica.es", phones: [{deviceType: "MOBILE", countryCallingCode: "34", number: "480080076"}] } } ] } }); io:println("Flight order created: ", booking.data.id ?: "unassigned"); }
Step 4: Run the Ballerina application
bal run
Examples
The Amadeus Flight Create Orders connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
-
Round trip flight booking - Book a round-trip flight order for one traveler with outbound and return itineraries and read back the booking references.
-
Group trip flight booking - Book a one-way flight order for a group of travelers with a shared contact and list the travelers recorded on the order.
Clients
amadeus.flightcreateorders: Client
Books flights by creating flight orders from flight offers priced with the Amadeus Flight Offers Price API. Authenticates with OAuth 2.0 client credentials and targets the production environment by default.
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://api.amadeus.com/v1/booking" - URL of the target service
createFlightOrder
function createFlightOrder(FlightOrderQuery payload, map<string|string[]> headers) returns Success_Booking|errorCreate Order associated to the Flight offers.
Parameters
- payload FlightOrderQuery - list of element needed to book a flight Order
Return Type
- Success_Booking|error - Successful Operation
Records
amadeus.flightcreateorders: AdditionalService
Fields
- amount? string -
- 'type? AdditionalServiceType - additional service type
amadeus.flightcreateorders: AdditionalServicesRequest
Additional services requested for the segment, such as chargeable checked bags or seats
Fields
- chargeableCheckedBags? ChargeableCheckdBags - 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.flightcreateorders: 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 Each line is limited to 35 characters
amadeus.flightcreateorders: AircraftEntry
Fields
- string... - Rest field
amadeus.flightcreateorders: AircraftEquipment
information related to the aircraft
Fields
- code? string - IATA aircraft code (http://www.flugzeuginfo.net/table_accodes_iata_en.php)
amadeus.flightcreateorders: AirlineRemark
Fields
- travelerIds? string[] - Id of the concerned traveler
- flightOfferIds? string[] - Id of the concern flightOffers
- airlineCode string - Code of the airline following IATA standard (IATA table codes) When it apply to any airline, value is YY
- subType AirlineRemarkType - airline remark type
- text string - remark free text
- keyword? string - keyword code - only applicable for subType Keyword
amadeus.flightcreateorders: AirTravelDocument
ticket information
Fields
- Fields Included from *AirTravelDocumentCommon
- documentType "ETICKET"|"PTICKET"|"EMD"|"MCO"
- documentNumber string
- documentStatus "ISSUED"|"REFUNDED"|"VOID"|"ORIGINAL"|"EXCHANGED"
- anydata...
- segmentIds? string[] - Ids of the impacted segments
- travelerId? string - id of the impacted traveler
amadeus.flightcreateorders: AirTravelDocumentCommon
Fields
- documentType? "ETICKET"|"PTICKET"|"EMD"|"MCO" - Type of the travel document
- documentNumber? string - Identifier of the travel document prefixed by its owner code [NALC - 3 digits]. Can either be a primary or a conjunctive document number. Necessary for TicketingReference definition
- documentStatus? "ISSUED"|"REFUNDED"|"VOID"|"ORIGINAL"|"EXCHANGED" - Status of the travel document contained in the fare element
amadeus.flightcreateorders: 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.flightcreateorders: AssociatedRecord
record associated to the order
Fields
- Fields Included from *AssociatedRecordCommon
- flightOfferId? string - id of the impacted flight offer
amadeus.flightcreateorders: AssociatedRecordCommon
describes the relation between the current reservation and another one
Fields
- reference? string - Record locator [Amadeus or OA] with which the current reservation is related. In case of a codeshare relation, it enables to identify the operating PNR
- originSystemCode? string - Designates the system which has originated the referenced reservation
amadeus.flightcreateorders: AutomatedProcess
automatic process applied to the Order
Fields
- Fields Included from *AutomatedProcessCommon
- code AutomatedProcessCode
- text string
- queue Queue
- anydata...
- dateTime? string - Datetime limit at which the process takes action in case issuance is not done
- delay? string - Delay before applying process in days
- officeId? string - Office into which the process must be triggered
amadeus.flightcreateorders: AutomatedProcessCommon
Provides information on ticketing arrangements and Amadeus Time Limits
Fields
- code? AutomatedProcessCode - queuing action to be taken
- text? string - Free text
- queue? Queue - Identifies the queue onto which PNR must be automatically placed upon process execution
amadeus.flightcreateorders: B2bWallet
b2b wallet
Fields
- cardFriendlyName? string - card name
- flightOfferIds? string[] - Id of the concern flightOffers
- cardId? string - card identifier
- virtualCreditCardDetails? VirtualCreditCardDetails - detail information of the virtual card
- cardUsageName? string - card usage name
- reportingData? ReportingData[] - Reporting data attached to the card, as name and value pairs
amadeus.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: CarrierEntry
Fields
- string... - Rest field
amadeus.flightcreateorders: ChargeableCheckdBags
Details of chargeable checked bags
Fields
- Fields Included from *BaggageAllowance
- id? string - Id of the chargeable bag
amadeus.flightcreateorders: ChargeableSeat
Details of chargeable seat
Fields
- number? string - seat number
- id? string - Id of the chargeable seat
amadeus.flightcreateorders: 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.flightcreateorders: CollectionLinks
Fields
- next? string -
- previous? string -
- last? string -
- self? string -
- up? string -
- first? string -
amadeus.flightcreateorders: CollectionMetaLink
Fields
- count? int -
- links? CollectionLinks -
amadeus.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: ContactDictionary
represents a contact
Fields
- address? Address - address information
- purpose? ContactPurpose - the purpose for which this contact is to be used.
- STANDARD for standard use, comunication, advertissement etc...
- INVOICE for your invoice contact, usually its your billing adress. it's mandatory in france when you buy online
- STANDARD_WITHOUT_TRANSMISSION is standard contact that are not share with third party outside of Amadeus
- addresseeName? Name - name
- language? string - the preferred language of communication with this Contact
amadeus.flightcreateorders: CreditCard
credit card
Fields
- Fields Included from *CreditCardCommon
- expiryDate string
- number string
- holder string
- brand CreditCardBrand
- anydata...
- flightOfferIds? string[] - Id of the concern flightOffers
- securityCode? string - card security code
amadeus.flightcreateorders: CreditCardCommon
credit card common attribute
Fields
- number? string - card number
- holder? string - card holder as on the card
- brand? CreditCardBrand - credit card brand
amadeus.flightcreateorders: CurrencyEntry
Fields
- string... - Rest field
amadeus.flightcreateorders: Dictionaries
Fields
- aircraft? AircraftEntry -
- locations? LocationEntry -
- carriers? CarrierEntry -
- currencies? CurrencyEntry -
amadeus.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: ExtendedPrice
price information
Fields
- additionalServices? AdditionalService[] - Prices of the additional services, such as chargeable checked bags or seats
- 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.flightcreateorders: 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 or seats
- 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.flightcreateorders: Fee
a fee
Fields
- amount? string - Amount of the fee
- 'type? FeeType - type of fee
amadeus.flightcreateorders: FlightEndPoint
departure or arrival information
Fields
- Fields Included from *OriginalFlightEndPoint
amadeus.flightcreateorders: 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? Itineraries[] -
- 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.flightcreateorders: FlightOrder
input parameter to create a flight order
Fields
- tickets? AirTravelDocument[] - list of tickets
- formOfIdentifications? FormOfIdentification[] - list of forms of identifications applicable to travelers by airline
- 'type string - the resource name
- travelers? Traveler[] - list of travelers
- ownerOfficeId? string - office Id where will be transfered the ownership of the order
- flightOffers FlightOffer[] - list of flight offer
- formOfPayments? FormOfPayment[] - list of form of payments
- automatedProcess? AutomatedProcess[] - list of automatic queuing
- associatedRecords? AssociatedRecord[] - list of associated record
- ticketingAgreement? TicketingAgreement - ticketing agreement
- id? string - unique identifier of the flight order
- remarks? Remarks - remarks
- contacts? Contact[] - list of general contact information
- queuingOfficeId? string - office Id where to queue the order
amadeus.flightcreateorders: FlightOrderQuery
Fields
- data? FlightOrder - input parameter to create a flight order
amadeus.flightcreateorders: 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.flightcreateorders: FlightStop
details of stops for direct or change of gauge flights
Fields
- Fields Included from *OriginalFlightStop
amadeus.flightcreateorders: FormOfIdentification
alternative means of identifying stakeholders for eTicket
Fields
- number? string - identification number relative to the type of identification either ticket number, booking number, passport number, identity card number, drivers licence number, other ID
- travelerIds? string[] - Ids of the concerned travelers
- flightOfferIds? string[] - Id of the concerned flightOffers
- carrierCode? string - providing the airline / carrier code
- identificationType? "DRIVERS_LICENSE"|"PASSPORT"|"NATIONAL_IDENTITY_CARD"|"BOOKING_CONFIRMATION"|"TICKET"|"OTHER_ID" - Type of identification
amadeus.flightcreateorders: FormOfPayment
form of payment used
Fields
- other? OtherMethod - other payment method
- b2bWallet? B2bWallet - b2b wallet
- creditCard? CreditCard - credit card
amadeus.flightcreateorders: GeneralRemark
Fields
- travelerIds? string[] - Id of the concerned traveler
- flightOfferIds? string[] - Id of the concern flightOffers
- subType GeneralRemarkType - general remark type
- text string - remark free text
- category? string - remark category
amadeus.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: Itineraries
Fields
- segments Segment[] -
amadeus.flightcreateorders: LocationEntry
Fields
- LocationValue... - Rest field
amadeus.flightcreateorders: LocationValue
Fields
- cityCode? string - City code associated to the airport
- countryCode? string - Country code of the airport
amadeus.flightcreateorders: LoyaltyProgram
loyalty program information
Fields
- programOwner? string - loyalty program airline code
- id? string - loyalty program number
amadeus.flightcreateorders: Name
name
Fields
- Fields Included from *BaseName
- secondLastName? string - second last name
amadeus.flightcreateorders: OAuth2ClientCredentialsGrantConfig
OAuth2 Client Credentials Grant Configs
Fields
- Fields Included from *OAuth2ClientCredentialsGrantConfig
- tokenUrl string(default "https://api.amadeus.com/v1/security/oauth2/token") - Token URL
amadeus.flightcreateorders: OperatingFlight
information about the operating flight
Fields
- carrierCode? string - providing the airline / carrier code
amadeus.flightcreateorders: OriginalFlightEndPoint
departure or arrival information
Fields
- iataCode? string - IATA airline codes
- terminal? string - terminal name / number
amadeus.flightcreateorders: OriginalFlightStop
details of stops for direct or change of gauge flights
Fields
- iataCode? string - IATA airline codes
amadeus.flightcreateorders: OtherMethod
other payment method
Fields
- method? OtherPaymentMethod - other payment method
- flightOfferIds? string[] - Id of the concern flightOffers
amadeus.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: 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.flightcreateorders: Queue
Identifies the queue onto which PNR must be automatically placed upon process execution
Fields
- number? string - Number of the queue
- category? string - Category of the queue
amadeus.flightcreateorders: Remarks
remarks
Fields
- general? GeneralRemark[] - list of general remarks
- airline? AirlineRemark[] - list of airline remarks
amadeus.flightcreateorders: ReportingData
Fields
- name? string -
- value? string -
amadeus.flightcreateorders: 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.flightcreateorders: Stakeholder
stakeholder definition
Fields
- gender? StakeholderGender - Gender for individual
- 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.flightcreateorders: Success_Booking
Fields
- meta? CollectionMetaLink -
- warnings? Issue[] -
- data FlightOrder - input parameter to create a flight order
- dictionaries? Dictionaries -
amadeus.flightcreateorders: Tax
a tax
Fields
- amount? string - Amount of the tax
- code? string - Code of the tax
amadeus.flightcreateorders: TicketingAgreement
ticketing agreement
Fields
- dateTime? string - Exact date to apply automatic process if no issuance. YYYY-MM-DD format, e.g. 2019-06-07
- delay? string - Delay before applying automatic process if no issuance in days
- segmentIds? string[] - Ids of the impacted segments
- option? TicketingAgreementOption - Ticketing agreement option
- CONFIRM, when the payment is done
- DELAY_TO_QUEUE, queue the reservation at a wished date if the payment is not done
- DELAY_TO_CANCEL, cancel the reservation at a wished date if the payment is not done
amadeus.flightcreateorders: 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.flightcreateorders: 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
amadeus.flightcreateorders: VirtualCreditCardDetails
detail information of the virtual card
Fields
- Fields Included from *CreditCardCommon
- expiryDate string
- number string
- holder string
- brand CreditCardBrand
- anydata...
- Fields Included from *ElementaryPrice
Union types
amadeus.flightcreateorders: TravelerType
TravelerType
traveler type age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
amadeus.flightcreateorders: OtherPaymentMethod
OtherPaymentMethod
other payment method
amadeus.flightcreateorders: GeneralRemarkType
GeneralRemarkType
general remark type
amadeus.flightcreateorders: 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.flightcreateorders: CreditCardBrand
CreditCardBrand
credit card brand
amadeus.flightcreateorders: AirlineRemarkType
AirlineRemarkType
airline remark type
amadeus.flightcreateorders: DiscountTravelerType
DiscountTravelerType
type of discount applied
amadeus.flightcreateorders: ServiceName
ServiceName
type of service
amadeus.flightcreateorders: DiscountType
DiscountType
type of discount applied
amadeus.flightcreateorders: TicketingAgreementOption
TicketingAgreementOption
Ticketing agreement option
- CONFIRM, when the payment is done
- DELAY_TO_QUEUE, queue the reservation at a wished date if the payment is not done
- DELAY_TO_CANCEL, cancel the reservation at a wished date if the payment is not done
Queueing and cancellation occurs at local date and time. When no time is specified, reservation is queued or cancelled at 00:00
amadeus.flightcreateorders: FeeType
FeeType
type of fee
amadeus.flightcreateorders: ContactPurpose
ContactPurpose
the purpose for which this contact is to be used.
- STANDARD for standard use, comunication, advertissement etc...
- INVOICE for your invoice contact, usually its your billing adress. it's mandatory in france when you buy online
- STANDARD_WITHOUT_TRANSMISSION is standard contact that are not share with third party outside of Amadeus
amadeus.flightcreateorders: AutomatedProcessCode
AutomatedProcessCode
queuing action to be taken
amadeus.flightcreateorders: StakeholderGender
StakeholderGender
Gender for individual
amadeus.flightcreateorders: DocumentType
DocumentType
the nature/type of the document
amadeus.flightcreateorders: SliceDiceIndicator
SliceDiceIndicator
slice and Dice indicator, such as Local Availability, Sub OnD(Origin and Destination) 1 Availability and Sub OnD 2 Availability
amadeus.flightcreateorders: PhoneDeviceType
PhoneDeviceType
Type of the device (Landline, Mobile or Fax)
amadeus.flightcreateorders: AdditionalServiceType
AdditionalServiceType
additional service type
amadeus.flightcreateorders: 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.flightcreateorders: PricingOptionsFareType
PricingOptionsFareType
type of fare of the flight-offer
Import
import ballerinax/amadeus.flightcreateorders;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-20 via OSV.dev
Compatibility
Platform: any
Ballerina version: 2201.12.0
GraalVM compatible: Yes
Pull count
Total: 114
Current verison: 1
Weekly downloads
Keywords
Vendor/Amadeus
Area/E-Commerce
Type/Connector
Contributors