---
title: "GetRoomTypes"
method: POST
path: "/GetRoomTypes"
tags: ["Rooms & Rate Plans"]
---

# GetRoomTypes

`POST /GetRoomTypes`

Returns a list of rooms configured for the passed credentials.

## Request body

- object
  - `mya_property_id` integer, required — Property ID on the Cloudbeds channel manager
  - `ota_property_id` string, required — Username, login or property ID on the OTA
  - `ota_property_password` string, required — Password for property on your OTA. In case the OTA does not use passwords this will be an empty string.
  - `ota_property_sub_id` string, required — Property ID on the OTA, if OTA supports multiple properties under one `ota_property_id`/`ota_property_password` combination. See `GetSubProperties` for more details.
  - `guid` string, required — Request reference ID, used for debugging and support requests.
  - `shared_secret` string, required — Authentication between the OTA and the channel. Identical for all requests. Not to be shared with customers.
  - `ota_cid` string, required — OTA ID as given by Cloudbeds
  - `verb` 'GetRoomTypes', required
  - `RoomInfo` RoomInfo[] — This list of rooms will only be returned if enabled for the OTA by Cloudbeds. By default this is not present. It's only necessary for deep integrations or situations where the OTA plans to automatically/create destroy rooms using Cloudbeds configuration. In a normal integration this isn't very usual.
    - `mya_room_id` integer, required — Room ID on the Cloudbeds channel manager
    - `units` integer, required — How many rooms of this type there are.
    - `beds` integer, required — Number people that can stay in this room.
    - `dormitory` boolean, required — If `true` it's a dormitory (shared room), `false` for private rooms.
    - `label` string, required — Short string that describes the room for displaying purposes.
    - `description` unknown, required

## Response `200`

GetRoomTypes

- union
  - object
    - `success` true, required
    - `Rooms` object[], required — List of rooms on the OTA.
      - `ota_room_id` string, required — Room ID on the OTA
      - `title` string, required — Name, label or short summary of the room type
      - `occupancy` integer — Number of people that can stay in this room.
      - `dorm` boolean — If `true` the room is a dormitory/shared room.
  - ResponseError
    - `errors` object[], required — Array of error objects.
      - `id` integer, required — Error code. Check the "Error Codes" section of the specification for valid codes.
      - `msg` string — Optional error string to give more details about the error. Myallocator localises errors into different langauges, so this field is generally ignored and only useful for debugging.
    - `success` false, required

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
