Get Hotel/Apartment/Resort Rooms
Get available rooms for a specific hotel. Retrieve detailed room information including types, pricing, capacity, and availability status for a particular property.
GET /v2/merpi/hotels/:hotel_id/rooms
/v2/merpi/hotels/:hotel_id/roomsPath Parameters
Parameter
Type
Required
Description
Example Request
GET {{url}}/v2/merpi/hotels/16/roomsconst hotelId = 16;
const response = await fetch(`{{url}}/v2/merpi/hotels/${hotelId}/rooms`, {
method: 'GET',
headers: {
'X-API-KEY': 'your_api_key_here',
'TransactionMedium': 'Web'
}
});
const data = await response.json();Path parameters
hotel_idintegerRequiredExample:
ID of the hotel, apartment, or resort.
2Query parameters
pageintegerOptionalExample:
Page number for pagination.
1per_pageintegerOptionalExample:
Number of rooms per page.
20Responses
200
List of rooms for the specified property
application/json
get
/v2/merpi/hotels/{hotel_id}/rooms200
List of rooms for the specified property
Response Fields
Hotel Summary
Field
Type
Description
Room Object
Field
Type
Description
Important Notes
Integration Flow
Next Steps
Last updated