To add a new PopuparHotels click on “Add New PopuparHotels” and fill in the fields
⬇ ⬇ ⬇
CityId = GP cityId - mandatory - (can be obtained from hotel search URL or API)
A. The easiest way is to get it from the search line when search is made (see example below)
B. To get a city id via API you need to follow next steps:
Open Swagger in a new tab
Enter API key, companyCodeOrAlias, login, password. Then press “Try it out” button.
In the “Response Body” copy token
4. Paste the token into the filled and click on “Explore”
5. Go to Locations - Choose Get/Locations method
6. Into the “pattern” field enter city name. Into the “limitCountries” field enter “-1”
7. Press “Try it out” button. In the response body you can find city id
HotelId = GP hotelId - mandatory (can be obtained from hotel search URL or API)
A. from hotel search URL:
B. from API via Swagger:
After getting cityId go to Accommodations - GET /hotels method
Into the “cityId” field enter cityId and press the “Try it out” button
In the response body you can find hotelId
Img - optional - to add image for hotel to be displayed for a certain hotel. In case if image haven’t been added in CMS, Image will be added from GP database.
Title - optional - In case if Title haven’t been added in CMS, the name of hotel will be added from GP database.
Order - mandatory - For sorting please use tis option
When all the steps are done please SAVE and PUBLISH current popular hotel. You can create as many entries as you want. Now the Popular Hotels will be displayed on your website:
When any hotel is chosen on the booking engine you will redirected to the hotel description page with available rooms: