# SubRoom

## Fields

| Field | Description | Type | Min/max | Notes |
|  --- | --- | --- | --- | --- |
| [SubRooms](/connectivity/docs/api-reference/subrooms)/`SubRoom` | - | object | 0..* | - |
| `SubRoom`/`@MaxGuests` | The maximum number of guests allowed. | int | 0..1 | - |
| `SubRoom`/`@Number` | The number of subrooms of the specified type. | int | 0..1 | - |
| `SubRoom`/`@PrivateBathroom` | Specifies whether the subroom has a private bathroom (`1`) or not (`0`). | boolean |  | Accepts: `0`, `1` |
| `SubRoom`/`@RoomType` | The type of subroom. | enum | 1..1 | Accepts: `Bedroom`, `Living room`, `Bathroom` |
| `SubRoom`/`[Amenities]` | Subroom amenities. | array of [Amenity](/connectivity/docs/api-reference/amenity) | 0..1 | - |


## XML


```xml
<SubRoom
  RoomType="Bedroom"
  PrivateBathroom="1"
  MaxGuests="2">
  <Amenities>
    ...
  </Amenities>
</SubRoom>
<SubRoom
    RoomType="Bathroom"
    Number="2" />
</SubRoom>
```

Did you know that most people consider bathroom information as a must have to make a decision to book accommodation? Our research shows that having bathroom information available actually increases bookings! Therefore, starting the **10th of April 2019**, providing the number of bathrooms when creating a Vacation Rental-type property will be mandatory, if not included you'll get this error message:

Mandatory content TPA_Extensions@SubRooms@SubRoom Bathroom Number is missing

## Related endpoints

* [/ota/OTA_HotelInvNotif](/connectivity/docs/ota-hotelinvnotif)