Skip to main content

Get Room Inventory Counts

10.32
Channel Connect
Inventory
SOAP API
Booking Solutions
OTA Integration

Not Signed In.

Looks like you may not have access to all of the resources and documentation for this page.
Please log-in or contact your support desk team if you believe you should have access.

The Get Room Inventory Count (OTA_HotelInvCountRQ) API provides the ability to request all room counts by room type and date.

Target Audience
Booking Solutions
OTA Integration
API Version
10.32
Authentication
Security Credentials
Service Action Code
OTA_HotelInvCountRQ

By default, all room types on the hotel are included in the response. Specific rooms can be requested by specifying @RoomTypeCode in the request.

Room inventory types include:

  • Physical (CountType=1)
  • Available (CountType=2)
  • Sold (CountType=4)
  • Out of Service (CountType=6)
  • Out of Inventory (CountType=8)
Sample Request
<OTA_HotelInvCountRQ EchoToken="echo token value" PrimaryLangID="en" TimeStamp="2019-02-12 22:08:37Z"
xmlns="http://www.opentravel.org/OTA/2003/05">
    <HotelInvCountRequests>
        <HotelInvCountRequest>
            <DateRange Start="09-01-2019" End="09-01-2019"/>
            <HotelRef HotelCode="11206"/>
        </HotelInvCountRequest>
    </HotelInvCountRequests>
</OTA_HotelInvCountRQ>
Sample Response
<OTA_HotelInvCountRS PrimaryLangID="en" TimeStamp="2019-04-06 19:19:14Z" xmlns="http://www.opentravel.org/OTA/2003/05">
    <Success/>
    <Inventories HotelCode="11206">
        <Inventory>
            <StatusApplicationControl Start="09/01/2019" End="09/01/2019" InvCode="SGL" IsRoom="true"/>
            <InvCounts>
                <InvCount Count="20" CountType="1"/>
                <InvCount Count="2" CountType="8"/>
                <InvCount Count="0" CountType="6"/>
                <InvCount Count="0" CountType="4"/>
                <InvCount Count="18" CountType="2"/>
            </InvCounts>
        </Inventory>
        <Inventory>
            <StatusApplicationControl Start="09/01/2019" End="09/01/2019" InvCode="DBL" IsRoom="true"/>
            <InvCounts>
                <InvCount Count="30" CountType="1"/>
                <InvCount Count="0" CountType="8"/>
                <InvCount Count="0" CountType="6"/>
                <InvCount Count="0" CountType="4"/>
                <InvCount Count="30" CountType="2"/>
            </InvCounts>
        </Inventory>
        <Inventory>
            <StatusApplicationControl Start="09/02/2019" End="09/02/2019" InvCode="SGL" IsRoom="true"/>
            <InvCounts>
                <InvCount Count="20" CountType="1"/>
                <InvCount Count="0" CountType="8"/>
                <InvCount Count="0" CountType="6"/>
                <InvCount Count="0" CountType="4"/>
                <InvCount Count="20" CountType="2"/>
            </InvCounts>
        </Inventory>
        <Inventory>
            <StatusApplicationControl Start="09/02/2019" End="09/02/2019" InvCode="DBL" IsRoom="true"/>
            <InvCounts>
                <InvCount Count="30" CountType="1"/>
                <InvCount Count="0" CountType="8"/>
                <InvCount Count="0" CountType="6"/>
                <InvCount Count="1" CountType="4"/>
                <InvCount Count="29" CountType="2"/>
            </InvCounts>
        </Inventory>
    </Inventories>
</OTA_HotelInvCountRS>