不公開費率是一種費率規範,可讓目標對象名單或會員方案成員提供優惠費率。舉例來說,您可能採用 $150 美元的標準費率,但為會員方案成員提供的不公開費率為 $135 美元。
不公開費率有多種 UI 處理方式,可讓符合資格的使用者顯示專屬折扣價格。如要進一步瞭解這些選項,請參閱「不公開費率詳細資料與範例」。
建立不公開費率
如何使用不公開費率:
針對每項不公開費率,新增費率規範,定義費率規範 XML 檔案中的費率條件。詳情請參閱費率規範 XML 參考資料。
在價格動態饋給中,將不公開費率加入相應的行程。方法是使用與條件式費率相同的語法。將
rate_rule_id
屬性設為<Rate>
元素中的 ID。更新到達網頁檔案 (如有必要),確保符合資格的使用者可透過您網站的深層連結預訂折扣費率。到達網頁網址是由公開費率產生。不公開費率的費率規範會填入
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>