Hide response attributes Show response attributes object
-
Values are
Standard,Luxury,Budget, orBoutique.
This endpoint allows clients to retrieve a curated list of featured deals. The response includes essential details for each deal, such as its hotel name, room type, star rating, discount percentage, and discounted price.
The number of featured deals to be retrieved can be specified using the deals parameter. If no count is provided, the default is set to 5.
Sample request:
GET /featured-deals?deals=3
curl \
-X GET http://api.example.com/api/rooms/featured-deals \
-H "Authorization: Bearer $ACCESS_TOKEN"
[
{
"hotelId": "string",
"hotelName": "string",
"hotelImage": {
"imageUrl": "string",
"alternativeText": "string"
},
"starRate": 42,
"street": "string",
"latitude": 42.0,
"longitude": 42.0,
"roomId": "string",
"roomNumber": 42,
"roomType": "Standard",
"originalPrice": 42.0,
"discountedPrice": 42.0,
"discountPercentage": 42.0,
"cityName": "string",
"country": "string"
}
]
[
{
"hotelId": "string",
"hotelName": "string",
"hotelImage": {
"imageUrl": "string",
"alternativeText": "string"
},
"starRate": 42,
"street": "string",
"latitude": 42.0,
"longitude": 42.0,
"roomId": "string",
"roomNumber": 42,
"roomType": "Standard",
"originalPrice": 42.0,
"discountedPrice": 42.0,
"discountPercentage": 42.0,
"cityName": "string",
"country": "string"
}
]