Search code examples
amadeus

How to fix Amadeus API 500 Internal Error?


The "Flight Offers Search V2" and "Flight Offers Price V1" endpoints are returning errors. Probably it's a configuration issue

API Errors


Solution

  • Flight Offers Search API comes with 2 different endpoints:

    • GET with a limited number of parameters but easier to implement for the most common use cases
    • POST version much more complete offering all types of filtering but it requires to build the JSON body. In that context we use a POST to offer the possibility to build the JSON body without length restriction, even if it is for a search. That's why in the swagger documentation you will find X-HTTP-Method-Override set at GET.

    The Flight Offers Price API is built from the response of Flight Offers Search. To allow developers to reuse the body of the previous response we created this endpoint using the verb POST, That's why in the swagger documentation you will find X-HTTP-Method-Override set at GET.