不公開費率

不公開費率是一種費率規範類型,可用來提供較低的費率 目標對象名單或會員方案中的成員舉例來說 標準費率為 $150 美元,但為會員會員的私人費率則為 $135 美元 計畫。

不公開費率有多種 UI 處理方式,您可以在 UI 中顯示獨享費率 向符合資格的使用者提供折扣價如要進一步瞭解這些選項 請參閱「不公開費率詳細資料和範例」。

建立不公開費率

如何使用不公開費率:

  1. 針對每項不公開費率新增費率規範,定義要採用的費率規範 費率規範 XML 檔案詳情請參閱 費率規範 XML 參考資料

  2. 在價格動態饋給中,將不公開費率加入相應的行程。目的地: 請使用與條件式費率相同的語法。 將 rate_rule_id 屬性設為 <Rate> 元素中的 ID。

  3. 更新到達網頁檔案 (如有必要),確保符合資格的使用者可透過 深層連結到達網頁網址是由公開網址 頻率。不公開費率的費率規範會填入 CLOSE-RATE-RULE-IDS IF-CLOSE-RATE-RULE-IDS 則會解析為 true

範例

<Transaction>
  <Result>
    <Property>1234</Property>
    <Checkin>2023-05-23</Checkin>
    <Nights>1</Nights>

    <!-- An eligible non-hidden rate is required in order to display the UI treatment. -->
    <!-- This example uses a public rate, but a conditional rate where the
         user meets all conditions could also be used. -->
    <!-- This would be the strikethrough price. -->
    <Baserate currency="USD">200.00</Baserate>
    <Tax currency="USD">20.00</Tax>
    <OtherFees currency="USD">1.00</OtherFees>

    <Rates>
      <Rate rate_rule_id="sample_qr">
        <!-- Price will not be displayed, but is required for calculating discounts. -->
        <Baserate currency="USD">180.00</Baserate>
        <Tax currency="USD">18.00</Tax>
        <Custom1>ratecode123</Custom1>
      </Rate>
    </Rates>

  </Result>
</Transaction>