不公開費率

不公開費率是一種費率規範,可讓您為目標對象名單或會員方案成員提供較低費率。舉例來說,您可能將標準費率為 $150 美元,而會員方案的不公開費率為 $135 美元。

不公開費率提供多種 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>