移除廣告空間

如果某個房源或行程組合無法使用,你可以透過交易訊息移除該組合。通常在飯店某個特定晚或一系列晚已預訂一空時,才會使用這個選項。

使用交易訊息移除廣告空間

如要從商品目錄中移除特定房源或行程,請在根元素 <Transaction> 中使用交易訊息。

在交易訊息中,針對 <Result> 元素中要移除的每個行程,指定下列設定:

  1. 使用原因子元素 (例如 <NoVacancy>) 設定 <Unavailable>
  2. <Taxes> 設為「0」
  3. <OtherFees> 設為「0」

選用:<Baserate> 設為「-1」

以下範例會移除多個行程,例如從商品目錄中移除飯店「1123581321」的多個 1 晚住宿:

<?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,請從 <Result> 中刪除 <RoomBundle> 元素。

詳情請參閱「移除 Room Bundle」。