Xin
Xin

Reputation: 173

Fare rules information in the response of search

I could not find the fare rule information in the response of flight search API and flight offer price API (self-service).

According to the swagger (provided in the document), such information should be in offer.fareRules. Do you have any idea to fetch this information? Because I'd like to fetch the information such as refund, exchange etc. Thanks

Upvotes: 0

Views: 208

Answers (1)

Anthony Roux
Anthony Roux

Reputation: 1481

In the Flight Offers Price API you need to use the query parameter include with the value detailed-fare-rules

enter image description here

For example:

https://test.api.amadeus.com/v1/shopping/flight-offers/pricing?include=detailed-fare-rules

You will get the detailed-fare-rules as part of the response into included:

enter image description here

Upvotes: 1

Related Questions