Reputation: 107
I'm trying to use hotel offer details api on amadeus self service. Unfortunately i got the above error. The request is based on a specific offer id from hotel search api.
{ "errors": [ { "status": 400, "code": 367, "title": "INVALID FORMAT" } ] }
PS: i get the same response even if i use the website form for the request.
Upvotes: 0
Views: 372
Reputation: 1481
Seems that the offer you are trying to get doesn't exist anymore, this could come from:
You got the offer id from https://test.api.amadeus.com/v2/shopping/hotel-offers?cityCode=MAD&adults=1
. This API as some cached data, that will explain why the offer doesn't exist anymore. In addition, you are using the test environment where you access to a subset of our production with a much lower refresh rate.
What you can do is to call the 2nd endpoint of Hotel /shopping/hotel-offers/by-hotel?hotelId={hotelId}
. This endpoint doesn't use cache data. If you still have the error at this moment it is because of the limitations of the test environment, you will have to move to production to unlock access to the full set of data and full refresh of data.
Upvotes: 1