Updating Inventory Availability

To update inventory for specific room(s) and specific period, please use following XML request:

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
  <SOAP-ENV:Header>
    <ns2:Security>
      <ns2:UsernameToken>
        <ns2:Username>username</ns2:Username>
        <ns2:Password xsi:type="ns2:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</ns2:Password>
      </ns2:UsernameToken>
    </ns2:Security>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <OTA_HotelAvailNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 OTA_HotelAvailNotifRQ.xsd" Version="1.006" EchoToken="MYPMS001" TimeStamp="2021-10-05T11:32:41+00:00" MessageContentCode="1">
      <AvailStatusMessages HotelCode="1">
        <AvailStatusMessage BookingLimit="75" OverBooking="0" BookingLimitMessageType="AdjustLimit">
          <StatusApplicationControl Start="2023-12-12" End="2023-12-14" InvTypeCode="1" />
          <UniqueID Type="16" ID="1"/>
          <RestrictionStatus Status="Open"/>
        </AvailStatusMessage>
      </AvailStatusMessages>
    </OTA_HotelAvailNotifRQ>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Attribute OverBooking is optional. Finnally availability in our system is set as sub of BookingLimit and OverBooking. 

RestrictionStatus Status can be Open or Closed. Be aware that most of cutomers like to use "Closed/Opened" function on the Channel Manager side, so we do not recommend sending this tag over XML, since it will rewrite any existing status.

If the update was successful, a response will look like this
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="http://www.opentravel.org/OTA/2003/05">
    <SOAP-ENV:Body>
        <OTA_HotelAvailNotifRS Version="1.000" EchoToken="MYPMS001" TimeStamp="2024-06-17T10:18:04+02:00">
            <Success/>
        </OTA_HotelAvailNotifRS>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Upon receiving new availability, WebBookingPro is syncing all connected channels.

Next Article

OTA Ping