Adding and Updating Inventory

You typically use <Result> elements in a Transaction message to set or update room prices and define available inventory. These elements usually reference pre-defined data for descriptions of the rooms and Room Bundles using metadata that you define in a separate Transaction message.

How and how often you update your inventory depends on your delivery mode.

The following example shows a <Result> element that defines the inventories (including prices) for two rooms:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2015-04-24T20:44:56-04:00" id="42">
  <Result>
    <Property>060773</Property>
    <RoomID>RoomType101</RoomID>
    <Checkin>2015-06-10</Checkin>
    <Nights>2</Nights>
    <Baserate currency="USD">278.33</Baserate>
    <Tax currency="USD">25.12</Tax>
    <OtherFees currency="USD">2.00</OtherFees>
    <AllowablePointsOfSale>
      <PointOfSale id="site1"/>
    </AllowablePointsOfSale>
  </Result>
  <Result>
    <Property>052213</Property>
    <RoomID>RoomType101</RoomID>
    <Checkin>2015-06-17</Checkin>
    <Nights>2</Nights>
    <Baserate currency="USD">299.98</Baserate>
    <Tax currency="USD">26.42</Tax>
    <OtherFees currency="USD">2.00</OtherFees>
    <AllowablePointsOfSale>
      <PointOfSale id="otto"/>
      <PointOfSale id="simon"/>
    </AllowablePointsOfSale>
  </Result>
</Transaction>

Not shown in this example is the information about the room, such as a description, a picture URL and caption, the room's name, and its capacity. You can define that information once in a separate Transaction message that Google stores. You can then reference it by the RoomID in all subsequent pricing and inventory updates. For more information, see Defining Room and Package Metadata.

In addition to defining prices for itineraries, you also use the <Result> element to do the following:

  • Remove a room/itinerary from inventory. For more information, see Removing Inventory.
  • Specify additional room types as Room Bundles. For more information, see Using Room Bundles.

For more infromation about Transaction messages, see Overview of Transaction Messages.