如果房源或行程组合不可用,您可以使用交易消息将其移除。 如果酒店在特定晚上或连续多个晚上已预订一空,您通常会使用此选项。
通过交易消息移除商品目录
如需从房源数据中移除特定房源或行程,请在根元素 <Transaction> 中使用交易消息。
在交易消息中,为要移除的每个行程在 <Result> 元素中指定以下设置:
- 使用原因子元素设置
<Unavailable>,例如<NoVacancy>。 - 将
<Taxes>设置为“0” - 将
<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> 元素。
如需了解详情,请参阅移除会议室套装。