Retrieve property attributes

Use /ota/OTA_HotelSearch to retrieve the attributes of one or more Property.

Request

HTTP request

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

Request body

Provide an OTA_HotelSearchRQ object in the request body. Example:

<OTA_HotelSearchRQ xmlns="http://www.opentravel.org/OTA/2003/05" Version="2.001">
  <Criteria>
    <Criterion>
      <!-- Replace the {PlaceHolder} in the following line! -->
      <HotelRef HotelCode="{PropertyID}"/>
    </Criterion>
  </Criteria>
</OTA_HotelSearchRQ>

Alternatively, omit Criteria to retrieve the statuses of all properties that are assigned to the used machine account.

Response

The response contains an OTA_HotelSearchRS object:

<OTA_HotelSearchRS
    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_HotelSearchRS.xsd" TimeStamp="2015-12-02T15:07:34-00:00" Target="Production" Version="3.000">
    <Properties LastChange="2015-12-01 12:00:00">
        <Property HotelCode="{PropertyID}" HotelName="The Best Hotel" CurrencyCode="EUR">
            <TPA_Extensions HotelStatus="XML: Being built" Created="2015-11-19 07:13:06" LastChange="2015-12-01 16:41:53" ContentScore="67"/>
        </Property>
    </Properties>
</OTA_HotelSearchRS>

ContentScore is calculated periodically. It may take a while for your changes to reflect on the score.

Next steps