我正在开发一个由Sabre SOAP Api提供支持的旅游网站。
我已经到了从BargainFinderMax(BFM)端点填充列表以及腿部细节等等。
以下是我的请求
<?xml version="1.0" encoding="utf-16"?>
<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="1" ID="1">
<CompanyName Code="XX" />
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation RPH="1" xmlns="http://www.opentravel.org/OTA/2003/05">
<DepartureDateTime>2017-05-18T15:23:03</DepartureDateTime>
<OriginLocation LocationCode="YYZ" />
<DestinationLocation LocationCode="LHR" />
<TPA_Extensions>
<SegmentType Code="O" />
</TPA_Extensions>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
<TripType Value="OneWay" />
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1" />
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS" />
</IntelliSellTransaction>
</TPA_Extensions>
我的问题是,有没有办法从讨价还价最大值获得回程航班,或者我应该:
感谢您的帮助。
答案 0 :(得分:2)
您可以在同一个RQ中使用多个OriginDestinationInformation节点,以请求往返旅行或更复杂的航班。
https://developer.sabre.com/docs/read/soap_apis/air/search/bargain_finder_max
答案 1 :(得分:1)
这里是从Sabre获得出发和返回航班的请求。
<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="1" ID="1">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="1">
<DepartureDateTime>2017-05-19T17:33:49</DepartureDateTime>
<OriginLocation LocationCode="YYZ"/>
<DestinationLocation LocationCode="LHR"/>
<TPA_Extensions>
<SegmentType Code="O"/>
</TPA_Extensions>
</OriginDestinationInformation>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="2">
<DepartureDateTime>2017-05-29T00:00:00</DepartureDateTime>
<OriginLocation LocationCode="LHR"/>
<DestinationLocation LocationCode="YYZ"/>
<TPA_Extensions>
<SegmentType Code="O"/>
</TPA_Extensions>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
<TripType Value="Return"/>
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>