新增和更新商品目錄

您應在交易訊息中使用 <Result> 元素,設定或更新房價,並定義可用的庫存。這些元素會使用您在個別交易訊息中定義的中繼資料,參照預先定義的資料,提供會議室和 Room Bundle 的說明。商品目錄的更新方式取決於放送模式的類型和偏好的頻率。

以下範例顯示 <Result> 元素,用於定義兩個房間的庫存和價格:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2023-04-24T16:20:00-04:00" id="42">
  <Result>
    <Property>060773</Property>
    <RoomID>RoomType101</RoomID>
    <Checkin>2023-04-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>2023-04-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>

上述範例未包含客房的相關資訊,例如說明、圖片網址和說明文字、房間名稱或可容納人數。這類資訊可透過初始交易訊息傳送給 Google,接著由 RoomID 在所有後續定價和商品目錄更新中參照。詳情請參閱「定義房間和套件中繼資料」。

除了定義行程價格之外,您也可以使用 <Result> 元素執行以下操作:

  • 從物品欄中移除會議室或行程。瞭解詳情

  • 將其他房型指定為「房型套裝組合」。瞭解詳情