往返的 PassengerDetailsRQ
PassengerDetailsRQ for round trip
我们正在努力将 API 集成到我们的 system.We 中,在单程旅行方面做得很好,并成功生成了 PNR,但我们在 PassengerDetailsRQ 上有用于往返的库存。我确信 BargainFinderMaxRQ 对于往返来说是正确的,但我们也对 EnhancedAirBookRQ 感到困惑。因此,我在此处附加了 EnhancedAirBookRQ 和 PassengerDetailsRQ 以进行往返。希望得到sabre的帮助。
增强型AirBookRQ:
<EnhancedAirBookRQ xmlns="http://services.sabre.com/sp/eab/v3_2" HaltOnError="false" version="3.2.0">
<OTA_AirBookRQ>
<HaltOnStatus Code="UC"/>
<HaltOnStatus Code="LL"/>
<HaltOnStatus Code="UN"/>
<HaltOnStatus Code="NO"/>
<HaltOnStatus Code="HL"/>
<OriginDestinationInformation>
<FlightSegment DepartureDateTime="2016-09-02T09:50:00" FlightNumber="263" NumberInParty="1" ResBookDesigCode="O" Status="NN">
<DestinationLocation LocationCode="DEL"/>
<MarketingAirline Code="9W" FlightNumber="263"/>
<OperatingAirline Code="9W"/>
<OriginLocation LocationCode="KTM"/>
</FlightSegment>
<FlightSegment DepartureDateTime="2016-09-22T13:45:00" FlightNumber="260" NumberInParty="1" ResBookDesigCode="S" Status="NN">
<DestinationLocation LocationCode="KTM"/>
<MarketingAirline Code="9W" FlightNumber="260"/>
<OperatingAirline Code="9W"/>
<OriginLocation LocationCode="DEL"/>
</FlightSegment>
</OriginDestinationInformation>
</OTA_AirBookRQ>
<OTA_AirPriceRQ>
<PriceRequestInformation Retain="true">
<OptionalQualifiers>
<PricingQualifiers>
<PassengerType Code="ADT" Quantity="1"/>
</PricingQualifiers>
</OptionalQualifiers>
</PriceRequestInformation>
</OTA_AirPriceRQ>
<PostProcessing IgnoreAfter="false">
<RedisplayReservation WaitInterval="2000"/>
</PostProcessing>
<PreProcessing IgnoreBefore="false"/>
</EnhancedAirBookRQ>
乘客详细信息RQ:
<PassengerDetailsRQ xmlns="http://services.sabre.com/sp/pd/v3_1" version="3.1.0">
<MiscSegmentSellRQ>
<MiscSegment DepartureDateTime="09-02" NumberInParty="1" Status="NN" Type="OTH">
<OriginLocation LocationCode="KTM"/>
<Text>RETENTION SEGMENT</Text>
<VendorPrefs>
<Airline Code="9W"/>
</VendorPrefs>
</MiscSegment>
<MiscSegment DepartureDateTime="09-22" NumberInParty="1" Status="NN" Type="OTH">
<OriginLocation LocationCode="DEL"/>
<Text>RETENTION SEGMENT</Text>
<VendorPrefs>
<Airline Code="9W"/>
</VendorPrefs>
</MiscSegment>
</MiscSegmentSellRQ>
<PostProcessing>
<EndTransactionRQ>
<EndTransaction Ind="true"/>
<Source ReceivedFrom="TARA TESTING"/>
</EndTransactionRQ>
</PostProcessing>
<PriceQuoteInfo>
<Link NameNumber="1.1" Record="1"/>
</PriceQuoteInfo>
<SpecialReqDetails>
<AddRemarkRQ>
<RemarkInfo>
<FOP_Remark Type="CASH"/>
<Remark Type="General">
<Text>TEST GENERAL REMARK</Text>
</Remark>
</RemarkInfo>
</AddRemarkRQ>
<SpecialServiceRQ>
<SpecialServiceInfo>
<SecureFlight SegmentNumber="A" SSR_Code="DOCS">
<PersonName DateOfBirth="1990-02-07" Gender="M" NameNumber="1.1">
<GivenName>Kiran</GivenName>
<Surname>Subedi</Surname>
</PersonName>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</SecureFlight>
</SpecialServiceInfo>
</SpecialServiceRQ>
</SpecialReqDetails>
<TravelItineraryAddInfoRQ>
<AgencyInfo>
<Address>
<AddressLine>TARA TRAVEL</AddressLine>
<CityName>Kathmandu</CityName>
<CountryCode>NP</CountryCode>
<PostalCode>977</PostalCode>
<StateCountyProv StateCode="KTM"/>
<StreetNmbr>3150 DDDD DRIVE</StreetNmbr>
</Address>
<Ticketing TicketType="7TAW"/>
</AgencyInfo>
<CustomerInfo>
<ContactNumbers>
<ContactNumber LocationCode="KTM" NameNumber="1.1" Phone="9846231634" PhoneUseType="H"/>
</ContactNumbers>
<Email Address="subedikiran41@gmail.com" NameNumber="1.1"/>
<PersonName NameNumber="1.1" PassengerType="ADT">
<GivenName>Kiran</GivenName>
<Surname>Subedi</Surname>
</PersonName>
</CustomerInfo>
</TravelItineraryAddInfoRQ>
</PassengerDetailsRQ>
您可以从 "PassengerDetailsRQ" 中删除 "MiscSegmentSellRQ",这会对您有所帮助。
完成 PNR 不需要 MiscSegment,但行程是。
您不是先调用 EnhancedAirBook(预订航班并将其包含在行程中)然后(使用相同的 BinarySecurityToken)调用 PassengerDetails 吗?顺便说一句,调用 PassengerDetails 不需要知道您的行程是往返还是单程...
我们正在努力将 API 集成到我们的 system.We 中,在单程旅行方面做得很好,并成功生成了 PNR,但我们在 PassengerDetailsRQ 上有用于往返的库存。我确信 BargainFinderMaxRQ 对于往返来说是正确的,但我们也对 EnhancedAirBookRQ 感到困惑。因此,我在此处附加了 EnhancedAirBookRQ 和 PassengerDetailsRQ 以进行往返。希望得到sabre的帮助。
增强型AirBookRQ:
<EnhancedAirBookRQ xmlns="http://services.sabre.com/sp/eab/v3_2" HaltOnError="false" version="3.2.0">
<OTA_AirBookRQ>
<HaltOnStatus Code="UC"/>
<HaltOnStatus Code="LL"/>
<HaltOnStatus Code="UN"/>
<HaltOnStatus Code="NO"/>
<HaltOnStatus Code="HL"/>
<OriginDestinationInformation>
<FlightSegment DepartureDateTime="2016-09-02T09:50:00" FlightNumber="263" NumberInParty="1" ResBookDesigCode="O" Status="NN">
<DestinationLocation LocationCode="DEL"/>
<MarketingAirline Code="9W" FlightNumber="263"/>
<OperatingAirline Code="9W"/>
<OriginLocation LocationCode="KTM"/>
</FlightSegment>
<FlightSegment DepartureDateTime="2016-09-22T13:45:00" FlightNumber="260" NumberInParty="1" ResBookDesigCode="S" Status="NN">
<DestinationLocation LocationCode="KTM"/>
<MarketingAirline Code="9W" FlightNumber="260"/>
<OperatingAirline Code="9W"/>
<OriginLocation LocationCode="DEL"/>
</FlightSegment>
</OriginDestinationInformation>
</OTA_AirBookRQ>
<OTA_AirPriceRQ>
<PriceRequestInformation Retain="true">
<OptionalQualifiers>
<PricingQualifiers>
<PassengerType Code="ADT" Quantity="1"/>
</PricingQualifiers>
</OptionalQualifiers>
</PriceRequestInformation>
</OTA_AirPriceRQ>
<PostProcessing IgnoreAfter="false">
<RedisplayReservation WaitInterval="2000"/>
</PostProcessing>
<PreProcessing IgnoreBefore="false"/>
</EnhancedAirBookRQ>
乘客详细信息RQ:
<PassengerDetailsRQ xmlns="http://services.sabre.com/sp/pd/v3_1" version="3.1.0">
<MiscSegmentSellRQ>
<MiscSegment DepartureDateTime="09-02" NumberInParty="1" Status="NN" Type="OTH">
<OriginLocation LocationCode="KTM"/>
<Text>RETENTION SEGMENT</Text>
<VendorPrefs>
<Airline Code="9W"/>
</VendorPrefs>
</MiscSegment>
<MiscSegment DepartureDateTime="09-22" NumberInParty="1" Status="NN" Type="OTH">
<OriginLocation LocationCode="DEL"/>
<Text>RETENTION SEGMENT</Text>
<VendorPrefs>
<Airline Code="9W"/>
</VendorPrefs>
</MiscSegment>
</MiscSegmentSellRQ>
<PostProcessing>
<EndTransactionRQ>
<EndTransaction Ind="true"/>
<Source ReceivedFrom="TARA TESTING"/>
</EndTransactionRQ>
</PostProcessing>
<PriceQuoteInfo>
<Link NameNumber="1.1" Record="1"/>
</PriceQuoteInfo>
<SpecialReqDetails>
<AddRemarkRQ>
<RemarkInfo>
<FOP_Remark Type="CASH"/>
<Remark Type="General">
<Text>TEST GENERAL REMARK</Text>
</Remark>
</RemarkInfo>
</AddRemarkRQ>
<SpecialServiceRQ>
<SpecialServiceInfo>
<SecureFlight SegmentNumber="A" SSR_Code="DOCS">
<PersonName DateOfBirth="1990-02-07" Gender="M" NameNumber="1.1">
<GivenName>Kiran</GivenName>
<Surname>Subedi</Surname>
</PersonName>
<VendorPrefs>
<Airline Hosted="false"/>
</VendorPrefs>
</SecureFlight>
</SpecialServiceInfo>
</SpecialServiceRQ>
</SpecialReqDetails>
<TravelItineraryAddInfoRQ>
<AgencyInfo>
<Address>
<AddressLine>TARA TRAVEL</AddressLine>
<CityName>Kathmandu</CityName>
<CountryCode>NP</CountryCode>
<PostalCode>977</PostalCode>
<StateCountyProv StateCode="KTM"/>
<StreetNmbr>3150 DDDD DRIVE</StreetNmbr>
</Address>
<Ticketing TicketType="7TAW"/>
</AgencyInfo>
<CustomerInfo>
<ContactNumbers>
<ContactNumber LocationCode="KTM" NameNumber="1.1" Phone="9846231634" PhoneUseType="H"/>
</ContactNumbers>
<Email Address="subedikiran41@gmail.com" NameNumber="1.1"/>
<PersonName NameNumber="1.1" PassengerType="ADT">
<GivenName>Kiran</GivenName>
<Surname>Subedi</Surname>
</PersonName>
</CustomerInfo>
</TravelItineraryAddInfoRQ>
</PassengerDetailsRQ>
您可以从 "PassengerDetailsRQ" 中删除 "MiscSegmentSellRQ",这会对您有所帮助。
完成 PNR 不需要 MiscSegment,但行程是。
您不是先调用 EnhancedAirBook(预订航班并将其包含在行程中)然后(使用相同的 BinarySecurityToken)调用 PassengerDetails 吗?顺便说一句,调用 PassengerDetails 不需要知道您的行程是往返还是单程...