---
title: "RoomInfo"
method: POST
path: "/RoomInfo"
tags: ["Callbacks"]
---

# RoomInfo

`POST /RoomInfo`

**Endpoint:** `https://api.myallocator.com/callback/ota/{ota}/v202203` (replace `{ota}` with your channel ID)

Returns the rooms configured on Cloudbeds. 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 common.

## Request body

- object
  - `mya_property_id` integer, required — Property ID on the Cloudbeds channel manager
  - `shared_secret` string, required — Authentication between the OTA and the channel. Identical for all requests. Not to be shared with customers.

## Response `200`

RoomInfo

- union
  - object
    - `Success` true, required — Always `true` on success.
    - `RoomInfo` RoomInfo[], required — List of rooms configured on Cloudbeds.
      - `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
  - ResponseCallbackError
    - `Success` false, required — Always `false` when the response contains an error.
    - `ErrorCode` integer, required — Error code. Check the "Error Codes" section of the specification for valid codes.
    - `Error` string, required — Human-readable error message.

---

[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)
