List Hotel Rooms API
Overview
Retrieves all active rooms configured for a specific Hotel Master entity.
- Endpoint:
/api/hotels/rooms/list - Method:
GET/POST
Request Payload Schema (req.query or req.body)
| Field | Type | Required | Description |
|---|---|---|---|
hotelId | String (UUID) | Yes | Target Hotel Master ID |
Request Body / Query Example
{
"hotelId": "7a8b9c1d-2e3f-4a5b-6c7d-8e9f0a1b2c3d"
}
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",
"maxOccupancy": 3,
"basePricePerNight": "4500.00",
"totalRooms": 10,
"mealPlan": "BREAKFAST",
"active": true
}
],
"message": "Hotel rooms fetched successfully"
}