3

I'm working on a hotel booking application, and trying to integrate amadeus api. I'm using the test api base url https://test.api.amadeus.com when sending a request for flight-offers i get the response and the token is valid. But when i'm trying to use the hotel-offers end point with the same token(before it expires in 30 mins) it returns a 401 message. https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=LON&destinationLocationCode=NYC&departureDate=2022-01-16&adults=1&travelClass=ECONOMY works

flight offers endpoint

https://test.api.amadeus.com/v2/shopping/hotel-offers?cityCode=LON&checkInDate=2022-01-05&checkOutDate=2022-01-07 does not work

hotel offers endpoint

i know that a token expires after 30 min and took that into consideration. Is there a problem with this endpoint: https://test.api.amadeus.com/v2/shopping/hotel-offers

apaderno
  • 28,547
  • 16
  • 75
  • 90
grace
  • 31
  • 1
  • 2
  • Hello @grace, please we suggest you to send an email at developers@amadeus.com for the question. – anna_ts Dec 14 '21 at 15:37
  • okay, i will try to contact them – grace Dec 16 '21 at 15:04
  • @grace Hi Grace did you manage to find a solution? I'm having the exact same problem... The v3 version of the API doesn't have the same option... – Josh Dec 23 '21 at 19:46
  • I sent an email to the developer team, they told me the issue was with the V2 api endpoint, they were working on it ... Now its working – grace Dec 28 '21 at 20:01

0 Answers0