Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

GET /searchAccommodation method

 GET /searchAccommodation method is used to search for accommodation. Main search parameters are:

  • cityId – id of a city where you want to search for hotels. Id is received in the response of GET /locations method;
  • startDate - check-in date in YYYY-MM-DD format, e.g. 2022-12-20;
  • endDate – check-out date in YYYY-MM-DD format, e.g. 2022-12-21;
  • rooms – in format adults:2,childrenAges:7,8 (childrenAges parameter is optional and mentioned only if search is performed for both adults and children). When search is made, e.g. for 2 adults – set adults:2.

Other parameters are optional and can be omitted in the request. If you need specify your search in more details using optional parameters then it is possible to add them to search request, e.g. to search for guests of certain citizenship – to add to the request value for a parametercitizenshipId (this is id of country that can be obtained from method GET/locations).

  • No labels