Firstly, you use …/locations/search endpoint and the hotel name as input value to get destinationId. The result must have type field as HOTEL.
Secondly, as its type field is HOTEL, you use …/properties/get-details directly instead to get the hotel information. Just pass destinationId value as id, you should get correct result.
Regards.
Junte-se à discussão - adicione o comentário abaixo:
Efetue login / inscreva-se para postar novos comentários
I’ve solved my problem.
Thank you for your help.
‘Wonderful API’
Hello,
Firstly, you use …/locations/search endpoint and the hotel name as input value to get destinationId. The result must have type field as HOTEL.
Secondly, as its type field is HOTEL, you use …/properties/get-details directly instead to get the hotel information. Just pass destinationId value as id, you should get correct result.
Regards.