移除广告资源

如果房源或行程组合不可用,您可以使用交易消息将其移除。通常,当酒店在特定日期或连续几晚的预订量已满时,您会使用此选项。

使用 Transaction 消息移除商品目录

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

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

  1. 使用原因子元素设置 <Unavailable>,例如 <NoVacancy>
  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 是可选的。

如需移除某个房间软件包,请从 <Result> 中删除 <RoomBundle> 元素。

如需了解详情,请参阅移除房间套餐