處理查詢訊息
如果您註冊提取要求或使用提示要求提取,Microsoft 會傳送 查詢 訊息給您,指定您需要在下一個 交易 訊息中傳送的路線資料。
使用提取要求
如果您使用提取要求,Microsoft 可以傳送類似下列查詢訊息的要求給您。
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Checkin>2017-10-20</FirstDate>
<Nights>1</Nights>
<PropertyList>
<Property>223</Property>
<Property>256</Property>
<Property>289</Property>
</PropertyList>
</Query>
根據您擁有的旅館數目,Microsoft 可能會將查詢分成數個較小的查詢,其中每個查詢都包含屬性清單中的旅館子集。
當您收到查詢訊息時,您的回應應該會包含具有下列 < 結果的交易訊息 > 。
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
使用提取搭配提示要求
如需顯示 Microsoft 在搭配提示要求使用提取時所傳送之不同類型查詢訊息的範例,請參閱 建立提示訊息。