在 Bargain Finder Max 中添加 return 航班的折扣代码

add discount code for return flight in Bargain Finder Max

我正在使用 saber soap api 为旅行应用程序提供动力。

<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>

但是使用这种方法我无法单独选择出发和 return 航班,因为此请求的结果是出发和 return 航班成对。这个问题的评论部分提到了这一点 -

我的问题是:

因此,如果我想让用户 select 出发航班然后 return 航班,我是否应该使用两次不同的 BFM 调用来获取航班。

如果是这种情况,如何应用折扣代码,因为它是 return 航班,通常价格较低

如果您要拨打 2 个电话,那么您应该在两个电话上都输入折扣代码。

无论如何,这在我对您的其他 Whosebug 问题的回答中已涵盖: