Documentation

FlightOrders
in package

A namespaced client for the "/v1/booking/flight-orders" endpoints.

Access via the Amadeus client object.

$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getBooking()->getFlightOrders();

Table of Contents

$amadeus  : Amadeus
__construct()  : mixed
Constructor
post()  : FlightOrder
Flight Create Orders API:
postWithFlightOffersAndTravelers()  : FlightOrder
Flight Create Orders API:

Properties

Methods

postWithFlightOffersAndTravelers()

Flight Create Orders API:

public postWithFlightOffersAndTravelers(array<string|int, mixed> $flightOffers, array<string|int, mixed> $travelers) : FlightOrder

The Flight Create Orders API allows you to perform flight booking.

$amadeus->getBooking()->getFlightOrders()->post($fightOffer, $travelers);

Parameters
$flightOffers : array<string|int, mixed>

Lists of flight offers as FlightOffer[]

$travelers : array<string|int, mixed>

List of travelers as TravelerElement[]

Tags
link
https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-search/api-reference
throws
ResponseException

when an exception occurs

Return values
FlightOrder

an API resource

Search results