Content is outdated

This documentation section will soon become deprecated. To know more about room type and rate plan managmeent, consult the new room type and management API management documentation.

Deactivate a room type

You can deactivate a room type to hide it for guests.

Deactivating a room type deletes roomrates and availability

If you deactivate a room type, it also causes roomrates and associated availability to be deleted. Note that if you reactivate the room type, you must create new roomrates (products) and then push availability again.

Before you start

You need:

Request

HTTP request

POST https://supply-xml.booking.com/hotels/ota/OTA_HotelInvNotif

Request body

Provide an OTA_HotelDescriptiveContentNotifRQ object in the request body. Example:

<OTA_HotelInvNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/2014B/OTA_HotelInvNotifRQ.xsd" version="6.000" id="OTA2014B" TransactionIdentifier="5" Target="Production">
  <SellableProducts HotelCode="{PropertyID}">
    <SellableProduct InvNotifType="Overlay" InvStatusType="Deactivated" InvCode="{RoomTypeID}">
      <GuestRoom />
    </SellableProduct>
  </SellableProducts>
</OTA_HotelInvNotifRQ>

Response

The response contains an OTA_HotelInvNotifRS object:

<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelInvNotifRS.xsd" TimeStamp="2019-07-31T13:46:52-00:00" Target="Production" Version="3.000">
    <Success />
</OTA_HotelInvNotifRS>
<!-- RUID: [XXXXXXXXXXXXXXXXXXXXXXXXXXX==] -->

Next steps