v1

latestSwagger 2.02026-07-14214688.6 KB
Rooms

Get the count of all rooms in the hotel matching the given filter criteria.

get/api/hotel/v0/hotels/{hotelId}/rooms/$count

Path parameters

hotelIdinteger required

The hotel you are counting the rooms for.

Query parameters

occupancy'Occupied' | 'Vacant'

Return results only for rooms that have the given frontdesk ocuppancy status.

conditionsstring[]

Return results only for rooms that have the given room condition status.

maintenancesstring[]

Return results only for rooms that have the given maintenance status.

roomTypesstring[]

Return result only for rooms for the given room types. Allows to pass a comma-separated list of room types.

amenitiesstring[]

Return result only for rooms having all of the given amenities. You can provide a comma seperated list of amenity codes.

viewsstring[]

Return result only for rooms having at least one of the specified views. You can provide a comma seperated list of view codes.

locationsstring[]

Return result only for rooms having at least one of the specified locations. You can provide a comma seperated list of location codes.

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Response

The room count in the hotel matching the given filter criteria.

_countinteger required

Returns the total count for all items matching the query parameters. If none is matching it will return 0.