Get Hotel Room By ID API
Overview
Fetches detailed specifications for a single Hotel Room along with associated hotel details, availability rules, and closed dates.
- Endpoint:
/api/hotels/rooms/get-by-id - Method:
POST/GET
Request Payload Schema (req.body or req.query)
| Field | Type | Required | Description |
|---|---|---|---|
id | String (UUID) | Yes | Hotel Room ID |
Request Body Example
{
"id": "11223344-5566-7788-9900-aabbccddeeff"
}
Response Example (200 OK)
{
"success": true,
"data": {
"id": "11223344-5566-7788-9900-aabbccddeeff",
"hotelId": "7a8b9c1d-2e3f-4a5b-6c7d-8e9f0a1b2c3d",
"roomType": "DELUXE",
"roomName": "Ocean Deluxe Suite",
"basePricePerNight": "4500.00",
"totalRooms": 10,
"hotel": {
"name": "Grand Palace Resort & Spa",
"timezone": "Asia/Kolkata"
}
},
"message": "Room details fetched successfully"
}