移除廣告空間

如果資源或行程組合無法使用,您可以使用 交易訊息: 一般來說,如果飯店已預訂好特定晚上的飯店,你通常會使用這個選項 或連續夜晚

移除含有交易訊息的廣告空間

如要從目錄中移除特定房源或行程,請使用「交易」 寫入根元素 <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>

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