如果無法使用屬性或行程組合,可以透過交易訊息將其移除。飯店通常會在特定一夜或整晚預訂。
移除交易訊息
如要從廣告空間中移除特定屬性或行程,請在根元素 <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 套裝組合,請從 <Result>
中刪除 <RoomBundle>
元素。
如需詳細資訊,請參閱移除 Room Bundle。