移除广告资源

如果某个房源或行程组合不可用,您可以使用 交易消息。 当酒店在指定晚上的预订都已预订时,您通常会使用此选项 或一连串夜晚

移除包含交易消息的商品目录

如需从商品目录中移除特定房源或行程,请使用交易 消息(在根元素 <Transaction> 中)。

在“交易”消息中,为每个行程指定以下设置 <Result> 元素中移除:

  1. 使用原因子元素设置 <Unavailable>,例如 <NoVacancy>
  2. <Taxes> 设置为“0”
  3. <OtherFees> 设置为“0”

可选:将 <Baserate> 设置为“-1”

以下示例会移除多个行程,例如移除 1 晚 入住多个不同日期的酒店“1123581321”广告资源:

<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2023-05-23T16:20:00-04:00" id="42">
  <Result>
    <Property>1123581321</Property>
    <Checkin>2023-05-23</Checkin>
    <Nights>1</Nights>
    <Unavailable>
      <NoVacancy/>
    </Unavailable>
    <Tax currency="USD">0</Tax>
    <OtherFees currency="USD">0</OtherFees>
  </Result>
  <Result>
    <Property>1123581321</Property>
    <Checkin>2023-05-24</Checkin>
    <Nights>1</Nights>
    <Unavailable>
      <NoVacancy/>
    </Unavailable>
    <Tax currency="USD">0</Tax>
    <OtherFees currency="USD">0</OtherFees>
  </Result>
  <!---Sending <Baserate> is optional with <Unavailable> -->
  <Result>
    <Property>1123581321</Property>
    <Checkin>2023-05-25</Checkin>
    <Nights>1</Nights>
    <Baserate currency="USD">-1</Baserate>
    <Unavailable>
      <NoVacancy/>
    </Unavailable>
    <Tax currency="USD">0</Tax>
    <OtherFees currency="USD">0</OtherFees>
  </Result>
</Transaction>

如本例所示,您必须使用<Unavailable> 每条行程的原因(由入住日期和 因为没有空房。此外,您必须将 将 <Taxes><OtherFees> 设置为 0。将 <Baserate> 设置为 -1 是可选操作。

如需移除 Room Bundle,请从以下应用中删除 <RoomBundle> 元素: <Result>

如需了解详情,请参阅 移除会议室包