不公开费率

不公开费率是一种费率规则,可让您针对受众群体名单或会员卡的成员提供费率。例如,您的标准费率可能是 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>