不公开费率

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

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

创建不公开费率

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

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

  2. 您可以为价格 Feed 中的相应行程添加不公开费率。为此,请使用与条件式费率相同的语法。将 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>