Pricing
in package
A namespaced client for the "/v1/shopping/flight-offers/pricing" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping()->getFlightOffers()->getPricing();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- post() : FlightOfferPricingOutput
- Flight Offers Price API:
- postWithFlightOffers() : FlightOfferPricingOutput
- Flight Offers Price API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —post()
Flight Offers Price API:
public
post(string $body[, array<string|int, mixed>|null $params = null ]) : FlightOfferPricingOutput
The Flight Offers Price API allows the user to get or confirm the price of a flight and obtain information about taxes and fees to be applied to the entire journey. It is usually used after the Flight Offers Search API. It also retrieves ancillary information and the payment information details.
$amadeus->getShopping()->getFlightOffers()->getPricing()->post($body, $params); //$params is optional
Parameters
- $body : string
-
JSON body of flight offers as String to price
- $params : array<string|int, mixed>|null = null
-
(optional)URL parameters such as include or forceClass
Tags
Return values
FlightOfferPricingOutput —an API resource
postWithFlightOffers()
Flight Offers Price API:
public
postWithFlightOffers(array<string|int, mixed> $flightOffers[, array<string|int, mixed>|null $payments = null ][, array<string|int, mixed>|null $travelers = null ][, array<string|int, mixed>|null $params = null ]) : FlightOfferPricingOutput
The Flight Offers Price API allows the user to get or confirm the price of a flight and obtain information about taxes and fees to be applied to the entire journey. It is usually used after the Flight Offers Search API. It also retrieves ancillary information and the payment information details.
// $payments, $travelers, $params are optional
$amadeus->getShopping()->getFlightOffers()->getPricing()->post($flightOffers, $payments, $travelers $params);
Parameters
- $flightOffers : array<string|int, mixed>
-
Lists of flight offers as FlightOffer[]
- $payments : array<string|int, mixed>|null = null
-
(optional) Lists of payments as FlightPayment[]
- $travelers : array<string|int, mixed>|null = null
-
(optional) Lists of travelers as TravelerElement[]
- $params : array<string|int, mixed>|null = null
-
(optional) URL parameters such as include or forceClass
Tags
Return values
FlightOfferPricingOutput —an API resource