移除廣告空間

如果有屬性或行程組合無法使用,您可以透過交易訊息將其移除。通常當您預訂飯店的某個夜晚或一系列的晚上時,您通常會使用這個選項。

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

如要從目錄中移除特定屬性或行程,請使用根元素 <Transaction> 中的交易訊息。

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

  1. 使用原因子元素設定 <Unavailable>,例如 <NoVacancy>
  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 套件」。