← Step 2 – Retrieve property details | Step 4 – Create rate plan →
Step 3 – Create room type
A property needs an inventory of rooms to sell to guests. This means you must create room types. A room type contains details like a room's size, whether it's non-smoking, and which amenities it offers.
Use this method and URL to create a new room type:
POST https://supply-xml.booking.com/hotels/ota/OTA_HotelInvNotif
You'll find another sample request below. Look out for the {PropertyID}
placeholder!
Sample request
<?xml version="1.0" encoding="UTF-8"?>
<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="Test">
<!-- Replace the {PlaceHolder} in the following line! -->
<SellableProducts HotelCode="{PropertyID}">
<SellableProduct InvStatusType="Initial">
<GuestRoom>
<Occupancy MaxOccupancy="2"/>
<Room
NonSmoking="1"
RoomType="Double"
SizeMeasurement="25"
SizeMeasurementUnit="sqm"/>
<Amenities>
<Amenity AmenityCode="2" />
<Amenity AmenityCode="15" />
<Amenity AmenityCode="20" />
<Amenity AmenityCode="33" Value="1" />
</Amenities>
<Description>
<Text>Double room</Text>
</Description>
</GuestRoom>
</SellableProduct>
</SellableProducts>
</OTA_HotelInvNotifRQ>
This request creates a room that:
- sleeps 2 people;
- is non-smoking;
- is 25m2 in size;
- contains an air-conditioner, bath or shower, colour television, and 1 double bed (see Room Amenity Type Codes).
Sample response
A successful response contains a unique room type ID, in the form of InventoryCrossRef[@ResponseInvCode]
:
<?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-02-07T16:25:05+00:00" Target="Test" Version="3.000">
<InventoryCrossRefs>
<InventoryCrossRef ResponseInvCode="309563204" />
</InventoryCrossRefs>
<Success />
</OTA_HotelInvNotifRS>
<!-- RUID: [UmFuZG9...] -->
You'll need the room type ID later, so keep track of it!
Learn more
To learn more about the last call, see OTA_HotelInvNotif.