In case the airline PrivateFare, Key dose’t like key.
1 2 3 |
<air:FareInfo Key="UL3SKZpB0BKAbMDeecAAAA==" FareBasis="SL15SEL2" PassengerTypeCode="ADT" Origin="SEL" Destination="BKK" EffectiveDate="2018-10-18T15:01:51.000+09:00" DepartureDate="2018-11-08" PrivateFare="PrivateFare"> <air:FareRuleKey FareInfoRef="UL3SKZpB0BKAbMDeecAAAA==" ProviderCode="1P">dir-SEL^BKK^2018312^ALL^SL15SEL2^NX^^</air:FareRuleKey> </air:FareInfo> |
solution:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
#1. Pricing and Find key <air:AirPriceRsp …… <air:FareRuleKey FareInfoRef="s+K9JZBAAA/BGLXCjcAAAA==" ProviderCode="1P"> AwSkuIqsiEeZo+JnnQQ39jE2mcaiVi5/AdVi2nimAV9w+k40754m9V+O6Lfct+BLmIC//IRf4rKtDvUuxA7NBg==</</air:FareRuleKey> #2. ATD Rule = CNN Rule <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.travelport.com/schema/common_v40_0" xmlns:ns2="http://www.travelport.com/schema/air_v40_0"> <soapenv:Body> <ns2:AirFareRulesReq FareRuleType="long" TargetBranch="P111118"> <ns1:BillingPointOfSaleInfo OriginApplication="UAPI" /> <ns2:FareRuleLookup Origin="ICN" Destination="BKK" Carrier="NX" FareBasis="SL15SEL2/CH00" ProviderCode="1P" /> </ns2:AirFareRulesReq> </soapenv:Body> </soapenv:Envelope> #3. Search AirFareDisplayReq and Find AirFareDisplayRuleKey <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:AirFareDisplayReq xmlns="http://www.travelport.com/schema/common_v40_0" xmlns:ns2="http://www.travelport.com/schema/air_v40_0" Origin="ICN" Destination="BKK" ProviderCode="1P" TargetBranch="P1111118"> <BillingPointOfSaleInfo OriginApplication="UAPI" /> <ns2:PassengerType Code="ADT" /> <Carrier Code="NX" /> <ns2:AirFareDisplayModifiers MaxResponses="150" DepartureDate="2018-11-08" ReturnDate="2018-11-12" FaresIndicator="PrivateFares" BaseFareOnly="false" UnrestrictedFaresOnly="false" CurrencyType="KRW" /> </ns2:AirFareDisplayReq> </soap:Body> </soap:Envelope> Result <air:FareDisplay Carrier="NX" FareBasis="SL15SEL2" Amount="KRW190000" TripType="ReturnOnly" MileOrRouteBasedFare="Mile" GlobalIndicator="EH" Origin="SEL" Destination="BKK"> <air:FareDisplayRule RuleNumber="KRE5"> <air:RuleAdvancedPurchase/> <air:RuleLengthOfStay> <air:MinimumStay Length="2" StayUnit="Days"/> <air:MaximumStay Length="15" StayUnit="Days"/> </air:RuleLengthOfStay> <air:RuleCharges PenaltyType="Penalty" MoreRulesPresent="true"/> </air:FareDisplayRule> <air:FarePricing PassengerType="ADT" TotalFareAmount="KRW190000" PrivateFare="true" NegotiatedFare="false"/> <air:FareRestriction> <air:FareRestrictionDate StartDate="2018-08-07" EndDate="2018-12-19" EndDateIndicator="Commence"/> </air:FareRestriction> <air:AirFareDisplayRuleKey ProviderCode="1P">AwSkuIqsiEeZo+JnnQQ39jE2mcaiVi5/AdVi2nimAV9w+k40754m9V+O6Lfct+BLmIC//IRf4rKtDvUuxA7NBg==</air:AirFareDisplayRuleKey> <air:BookingCode Code="S"/> </air:FareDisplay> |