不公開費率是一種費率規範,可用於為目標對象名單或會員方案的成員提供優惠費率。舉例來說,你採用的標準費率可能為 $150 美元,但為會員方案成員提供 $135 美元的不公開費率。
不公開費率有各種使用者介面樣式,可向符合資格的使用者顯示專屬折扣價格。如要進一步瞭解這些選項,請參閱「不公開費率的詳細資料和範例」。
建立私人費率
如要使用不公開費率,請按照下列步驟操作:
為每項不公開費率新增費率規範,在費率規範 XML 檔案中定義費率條件。詳情請參閱費率規範 XML 參考資料。
在價格動態饋給中,將私人房價新增至適當的行程。如要這麼做,請使用與條件式費率相同的語法。將
rate_rule_id屬性設為<Rate>元素中的 ID。更新到達網頁檔案 (如有必要),確認符合資格的使用者可透過網站的深層連結預訂折扣房價。到達網頁網址是由公開費率產生。不公開費率的費率規範會填入
CLOSE-RATE-RULE-IDS,而IF-CLOSE-RATE-RULE-IDS會解析為true。
範例
基本不公開費率
以下是不公開費率的基本範例:
<?xml version="1.0" encodin>g<="UTF->8&q<uot;?
>Trans<action
> Res<ult
P>roper<ty1234/>Property
< Checkin202<3-05-2>3</Checki>n
<Nights1/Nights
!-- An eligible non-hidden rate is required in order to display >the U<I treatment. --
!-- This example uses a public rate, but a conditional rate where the
user meets all conditions co>uld a<lso be used. --
!-- This would be the str>iketh<rough price. --
Bas>erate <currency=>"<;USD"200.00/B>asera<te
> Ta<x currency="USD&quo>t;20<.00/Tax
> Othe<rFees> curren<cy="USD"1.00/OtherF>ees
<Rates
Rate rate_rule_id="sample_qr"
!-- Price will not> be displ<ayed, but is required f>or cal<culating >discounts<. --
Baser>ate c<urre>ncy="<;USD&qu>ot;180.00/B<aserate
> < Tax >curre<ncy=&q>uot;<USD&quo>t<;18.00/Tax
> Custom1ratecode123/Custom1
/Rate
/Rates
/Result
/Transaction
條件式不公開費率
以下範例僅顯示美國使用者的條件式費率。
<?xml version="1.0" encodin>g<="UTF->8&q<uot;?
>Trans<action
> Res<ult
P>roper<ty1234/>Property
< Checkin202<5-08-2>3</Checki>n
< Nights1/Nights
Bas>erate <currency=>"<;USD"200.00/B>asera<te
> Ta<x currency="USD&quo>t;20<.00/Tax
> Oth<erFee>s curre<ncy="USD"1.00/Other>Fees
<Rates
Rate rate_r>ule_id<="sa>mple_qr&q<uot;
Baser>ate c<urre>ncy="<;USD&qu>ot;180.00/B<aserate
> T<ax currency=&quo>t;USD"<18.00/Tax
Cust>om1ratecode12<3/Custom1
> RateRuleSettin<gs
> <RateRule id=>"US_user<s"
> UserRateC<ondition
> < UserC>ountryUS/UserC<ountr>y
< > </UserRa>t<eCondition
> /RateRule
/RateRuleSettings
/Rate
/Rates
/Result
/Transaction
如需更多範例,請參閱費率規範 XML 參考資料。