您应在交易消息中使用 <Result>
元素来设置或更新客房价格并定义空房情况。这些元素使用您在单独的交易消息中定义的元数据引用客房和客房套餐说明的预定义数据。更新商品目录取决于提交方式类型和首选频率。
以下示例展示了用于定义两个客房的房源和价格的 <Result>
元素:
<?xml version="1.0" encoding="UTF-8"?>
<Transaction timestamp="2023-04-24T16:20:00-04:00" id="42">
<Result>
<Property>060773</Property>
<RoomID>RoomType101</RoomID>
<Checkin>2023-04-10</Checkin>
<Nights>2</Nights>
<Baserate currency="USD">278.33</Baserate>
<Tax currency="USD">25.12</Tax>
<OtherFees currency="USD">2.00</OtherFees>
<AllowablePointsOfSale>
<PointOfSale id="site1"/>
</AllowablePointsOfSale>
</Result>
<Result>
<Property>052213</Property>
<RoomID>RoomType101</RoomID>
<Checkin>2023-04-17</Checkin>
<Nights>2</Nights>
<Baserate currency="USD">299.98</Baserate>
<Tax currency="USD">26.42</Tax>
<OtherFees currency="USD">2.00</OtherFees>
<AllowablePointsOfSale>
<PointOfSale id="otto"/>
<PointOfSale id="simon"/>
</AllowablePointsOfSale>
</Result>
</Transaction>
上述示例不包含客房的相关信息,例如说明、图片网址和说明、客房名称或客房容量。此类信息可在初始交易消息中发送给 Google,然后在所有后续价格和房源更新中通过房间 ID 进行引用。如需了解详情,请参阅定义房间和套餐元数据。
除了为行程定义价格之外,您还可以使用 <Result>
元素执行以下操作: