Modify a room's amenities

The amenities for a room are specified in a room type. Use /ota/OTA_HotelInvNotif to modify room types.

Before you start

Overlay

Content API uses an overlay system. Every time you update an existing property, room type, or other object, the body of your request replaces whatever information was stored in our servers at that time. This means existing information may be deleted if you don't include it in your request.

To update an object without deleting information, make sure your request contains both the fields you want to update and those you want to keep the same. Copy/paste sample requests from this page at your own risk.

You need:

Request

HTTP request

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

Request body

Provide an OTA_HotelInvNotifRQ object in the request body. The amenities are inside an Amenities element. Each Amenity is specified with a Room Amenity Type Code. Example:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OTA_HotelInvNotifRQ version="6.0" Target="Production" xmlns="http://www.opentravel.org/OTA/2003/05">
    <SellableProducts HotelCode="{PropertyID}">
        <SellableProduct InvNotifType="Active" InvCode="{RoomTypeID}">
            <GuestRoom>
                <Amenities>
                    <Amenity AmenityCode="61"/>
                    <Amenity AmenityCode="69" Value="1"/>
                    <Amenity AmenityCode="33" Value="2"/>
                </Amenities>
            </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="2018-08-13T11:13:16+00:00" Target="Production" Version="3.000">
  <Success />
</OTA_HotelInvNotifRS><!-- RUID: [XXXXXXXXXXXXXXXXXXXXXXXXXXX==] -->

Next steps