移除廣告空間

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

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

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

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

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

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

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

<?xml version="1.0" encodin>g<="UTF-8"?
Transaction timestamp="2023-05-2>3T1<6:20:0>0-04:<00"> id="<42"
>  Res<ult
   > Property1<12358132>1/Pro<perty
> <   Checkin20<23-05-23/Ch>eckin
 <   >Nights1/Nigh<ts
    Unava>ilabl<e
      NoVacancy/>
<    >/Unav<ailable
    Tax currency>=<"USD&>quo<t;0/Tax>
  <  OtherFees< currenc>y="US<D"0/>Other<Fees
  >/Result
  <Result
 >   Pr<operty>1<1235813>21/Pr<operty
    >Checkin<2023-05-24>/Chec<kin
    Nigh>ts1/N<ights
    Unavaila>b<le
 >     <NoVacancy/
    /Unavaila>b<le
    Tax> cu<rrency=>&qu<ot;USD"<0/Tax
  >  OtherFees curren<cy="US>D&q>uot<;0/Oth>erFee<s
  /Res>ult
  !---<Sending B>asera<te is o>ptional wi<th Unava>ilabl<e --
 > <Result
>    P<roperty1123581321/Prope>rt<y
    Che>ckin2<023-05-25/C>heckin
<    Nights>1/Nig<hts
    Base>rate <currency="USD>&<quot>;-1/B<aserate
    Unavailable
> <     NoVacanc<y/
    >/<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」。