不公开费率

非公开费率是一种费率规则,可让您为受众群体名单或会员回馈计划的会员提供折扣费率。例如,您可以设置 150 美元的标准费率,但为参加会员回馈活动的会员设置 135 美元的非公开费率。

非公开价格有多种界面处理方式,可让您向符合条件的用户显示专属折扣价格。如需详细了解这些选项,请参阅非公开价格详情和示例

创建非公开价格

如需使用不公开费率,请执行以下操作:

  1. 对于每种不公开费率,请在费率规则 XML 文件中添加一条新的费率规则,以定义费率条件。如需了解详情,请参阅费率规则 XML 参考

  2. 在价格 Feed 中将私人价格添加到相应行程中。为此,请使用与条件性费率相同的语法。 将 rate_rule_id 属性设置为 <Rate> 元素中的 ID。

  3. 更新着陆页文件(如有必要),以验证符合条件的用户是否可以通过指向您网站的深层链接预订折扣价。着陆页网址由公开费率生成。非公开价格的价格规则会填充到 CLOSE-RATE-RULE-IDS 中,而 IF-CLOSE-RATE-RULE-IDS 会解析为 true

示例

基本非公开价格

以下是一个基本私人房价示例:

<?xml version="1.0" encoding="UTF-8"?>
<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>

条件式不公开费率

以下示例仅显示美国用户的条件费率。

<?xml version="1.0" encoding="UTF-8"?>
<Transaction>
  <Result>
    <Property>1234</Property>
    <Checkin>2025-08-23</Checkin>
    <Nights>1</Nights>
    <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">
        <Baserate currency="USD">180.00</Baserate>
        <Tax currency="USD">18.00</Tax>
        <Custom1>ratecode123</Custom1>
        <RateRuleSettings>
          <RateRule id="US_users">
            <UserRateCondition>
              <UserCountry>US</UserCountry>
            </UserRateCondition>
          </RateRule>
        </RateRuleSettings>
      </Rate>
    </Rates>
  </Result>
</Transaction>

如需查看更多示例,请参阅费率规则 XML 参考