举例:
<OTA_AirLowFareSearchRQ xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Target="Production" Version="3.3.0" ResponseType="OTA" ResponseVersion="3.3.0" AvailableFlightsOnly="true"> <POS> <Source PseudoCityCode="XXXX"> <RequestorID ID="1" Type="1"> <CompanyName Code="TN"/> </RequestorID> </Source> </POS> <OriginDestinationInformation RPH="1"> <DepartureDateTime>2018-02-21T11:00:00</DepartureDateTime> <DepartureWindow>00002359</DepartureWindow> <OriginLocation LocationCode="HKG"/> <DestinationLocation LocationCode="LAX"/> <TPA_Extensions> <CabinPref PreferLevel="Preferred" Cabin="Y"/> </TPA_Extensions> </OriginDestinationInformation> <OriginDestinationInformation RPH="2"> <DepartureDateTime>2018-02-28T11:00:00</DepartureDateTime> <DepartureWindow>00002359</DepartureWindow> <OriginLocation LocationCode="LAX"/> <DestinationLocation LocationCode="HKG"/> <TPA_Extensions> <CabinPref PreferLevel="Preferred" Cabin="Y"/> </TPA_Extensions> </OriginDestinationInformation> <TravelPreferences ValidInterlineTicket="true"> <VendorPref Code="BR" PreferLevel="Preferred"/> <FlightTypePref MaxConnections="1"/> <CabinPref PreferLevel="Preferred" Cabin="Y"/> <TPA_Extensions> <OnlineIndicator Ind="false"/> <TripType Value="Return"/> <XOFares Value="true"/> <JumpCabinLogic Disabled="true"/> <ExcludeCallDirectCarriers Enabled="true"/> <DiversityParameters AdditionalNonStopsNumber="9"> <Weightings PriceWeight="7" TravelTimeWeight="3"/> </DiversityParameters> </TPA_Extensions> </TravelPreferences> <TravelerInfoSummary> <AirTravelerAvail> <PassengerTypeQuantity Code="ADT" Quantity="2"> <TPA_Extensions> <VoluntaryChanges Match="Info"/> </TPA_Extensions> </PassengerTypeQuantity> <PassengerTypeQuantity Code="CNN" Quantity="1"> <TPA_Extensions> <VoluntaryChanges Match="Info"/> </TPA_Extensions> </PassengerTypeQuantity> </AirTravelerAvail> <PriceRequestInformation CurrencyCode="HKD" ProcessThruFaresOnly="false"> <TPA_Extensions> <Priority> <Price Priority="2"/> <DirectFlights Priority="1"/> <Time Priority="3"/> <Vendor Priority="4"/> </Priority> </TPA_Extensions> </PriceRequestInformation> </TravelerInfoSummary> <TPA_Extensions> <IntelliSellTransaction> <RequestType Name="200ITINS"/> </IntelliSellTransaction> </TPA_Extensions> </OTA_AirLowFareSearchRQ>
其中的<VoluntaryChanges Match="Info"/>,就是指示接口返回退改费用。 会在PTC_FareBreakdown标签下返回退改费用, 成人和儿童的退改费用是不同的。
如成人的是:
<PenaltiesInfo> <Penalty Type="Exchange" Applicability="Before" Changeable="true" Amount="1200" DecimalPlaces="0" CurrencyCode="HKD"/> <Penalty Type="Exchange" Applicability="After" Changeable="true" Amount="1200" DecimalPlaces="0" CurrencyCode="HKD"/> <Penalty Type="Refund" Applicability="Before" Refundable="false" Cat16Info="true"/> <Penalty Type="Refund" Applicability="After" Refundable="false" Cat16Info="true"/> </PenaltiesInfo>
儿童的是:
<PenaltiesInfo> <Penalty Type="Exchange" Applicability="Before" Changeable="true" Amount="900" DecimalPlaces="0" CurrencyCode="HKD"/> <Penalty Type="Exchange" Applicability="After" Changeable="true" Amount="900" DecimalPlaces="0" CurrencyCode="HKD"/> <Penalty Type="Refund" Applicability="Before" Refundable="false" Cat16Info="true"/> <Penalty Type="Refund" Applicability="After" Refundable="false" Cat16Info="true"/> </PenaltiesInfo>
再举例: 成人的:
<PenaltiesInfo> <Penalty Type="Exchange" Applicability="Before" Changeable="true" Amount="0" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> <Penalty Type="Exchange" Applicability="After" Changeable="true" Amount="0" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> <Penalty Type="Refund" Applicability="Before" Refundable="true" Amount="260" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> <Penalty Type="Refund" Applicability="After" Refundable="true" Amount="260" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> </PenaltiesInfo>
儿童的:
<PenaltiesInfo> <Penalty Type="Exchange" Applicability="Before" Changeable="true" Amount="0" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> <Penalty Type="Exchange" Applicability="After" Changeable="true" Amount="0" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> <Penalty Type="Refund" Applicability="Before" Refundable="true" Amount="260" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> <Penalty Type="Refund" Applicability="After" Refundable="true" Amount="260" DecimalPlaces="0" CurrencyCode="HKD" Cat16Info="true"/> </PenaltiesInfo>
解析后返给OTA渠道即可。 ------------------------------------------------ 还有这种情况的:
<PenaltiesInfo> <Penalty Type="Exchange" Applicability="Before" Cat16Info="true"> <Cat16TextOnly FareBasisCode="NLWOW1CN/CH25" FareComponentID="0"/> </Penalty> <Penalty Type="Exchange" Applicability="After" Cat16Info="true"> <Cat16TextOnly FareBasisCode="NLWOW1CN/CH25" FareComponentID="0"/> </Penalty> <Penalty Type="Refund" Applicability="Before" Cat16Info="true"> <Cat16TextOnly FareBasisCode="NLWOW1CN/CH25" FareComponentID="0"/> </Penalty> <Penalty Type="Refund" Applicability="After" Cat16Info="true"> <Cat16TextOnly FareBasisCode="NLWOW1CN/CH25" FareComponentID="0"/> </Penalty> </PenaltiesInfo>
<PenaltiesInfo> <Penalty Type="Exchange" Applicability="Before" Changeable="false" Cat16Info="true"/> <Penalty Type="Exchange" Applicability="After" Changeable="false" Cat16Info="true"/> <Penalty Type="Refund" Applicability="Before" Refundable="false" Cat16Info="true"/> <Penalty Type="Refund" Applicability="After" Refundable="false" Cat16Info="true"/> </PenaltiesInfo>
Cat16TextOnly: This element is returned when no information about exchange/refund is filed in Cat31 or Cat33 and Cat16 contains text info only. Cat16 text should be verified. 出现Cat16TextOnly时,说明Cat31和Cat33里没写退改费用,并且Cat16里只有文本信息。 这时,只能人工查看Cat16的文本信息来确定退改费用。 ----------------------------------------------------------------- 以下是sabre技术的解释:
FareBasis 你可以想做票價的主Key 但是同一個 FareBasis 在不同 PCC 可能有不同的內容 退改費用是要看票規裡面的,不同IPCC不一定一样。
BFM這個主要是從 Cat31 來的 如果沒有 Cat31 33,會去找 Cat16,但是 Cat16 中的 Note 部份無法解析 他拿的退改費用是可以退或改的情況下, 最高的金額 而且假如沒有找到票規, 會是預設可以退可以改而且沒罰金 建議你們最好先試試看 跟你們實際上在使用是否有差異
我們有票規的接口, 有一個 AWS_FareRule 跟 BFM_FareRule 這個目前開通要另外收費的 如果要使用, 要請你們的用戶跟 Sabre Sales 聯絡 這個是去解析 Cat16,但是一樣沒辦法處理 Note Note 沒有固定格式, 完全看 Filling 票規的人怎麼寫的
------------------------ BFM返回有罚款最严格条件的情况,先查CAT31&33,如果没有会尝试从CAT16读取并有标志Cat16Info="true"。因为CAT16的NOTE部分不会解析,最好读取详细票规,这是最准的
OTA_AirRulesLLSRQ,RulesFromPriceLLSRQ返回纯文本票规。BFM_FareRules是亚太区开发的票规解析接口,也不支持NOTE解析,但比BFM返回的详细. 有收费,但不贵,根据流量,可能最多每月USD400 --------------------------
|