One Pricing Unit (One Way), One Fare Component – Minimum Stay Not Validated
This example is in XML2. Customers will be using the OTA StructureFareRules request, which will then be translated into XML2 and sent to Pricing. Then, the XML2 StructureFareRules response will be transformed from Pricing and be passed to the web service.
Pricing request
<PRICINGREQUEST VERSION="1.2.4"> <AGI A10="SYD" A20="F7SH" A21="9F27" A80="F7SH" A90="GP1" AB0="0236122" AB1="0350095" B00="1S" C40="AUD" N0G="*" Q01="45"/> <BIL A20="HDQ" A22="F7SH" A70="WPNC" AA0="GP1" AD0="25869C" AE0="AA" C00="6650238635986862303" C20="INTLWPI1" Q02="0" Q03="0" S0R="LBTY"/> <PRO C45="AUD" D07="2016-01-25" D54="0475" N08="B" OCL="T" P0J="T" P52="T" PBK="T" PPC="T" Q0P="1" S14="WPNCQ/*196" S15="CRSAGT" SEY="T" SEZ="T"/> <PXI B70="ADT" Q0U="1"/> <SGI Q0C="1"> <FLI A01="SDU" A02="CNF" B00="K0" B01="K0" B30="Y" B40="319" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-01-31" D02="2016-01-31" D30="0475" D31="1194" D32="1254" N03="A" Q0B="3752" Q0C="1"/> </SGI> <SGI Q0C="2"> <FLI A01="CNF" A02="SDU" B00="K0" B01="K0" B30="Y" B40="319" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-02-03" D02="2016-02-03" D30="0475" D31="1092" D32="1160" N03="A" Q0B="3755" Q0C="2"/> </SGI> </PRICINGREQUEST>
Pricing response
<PricingResponse> <AGI A10="SYD" A20="F7SH" A21="9F27" AB0="0236122" AB1="0350095" A90="GP1" N0G="*" A80="F7SH" B00="1S" C40="AUD" Q01="45" /> <BIL A20="HDQ" Q03="0" Q02="0" AE0="AA" AD0="25869C" C20="INTLWPI1" A22="F7SH" AA0="GP1" A70="WPNC?" /> <SUM C56="123.00" C40="USD" D07="2016-01-25" D54="475" S69="SOTO" AO0="SYD" AF0="SYD" B00="K0" D00="2016-01-26" D14="2016-01-26" D16="2016-01-26" D60="07:55" PBC="F" PAR="F" S79="pifhli121"> <VCL P3L="F" SM0="BSP" VC0="T"> <DCX B00="K0" TT0="ETKTREQ" /> </VCL> <PXI B70="ADT" C43="USD" C5E="123.48" S85="ADT 1 ADT 0 2 1 1 8 ABC1DEF USD2 894 L 2 2 8 VJ7Z0N8 USD2 894 V " PBS="F" USI="6" B71="ADT" Q4P="1" C40="USD" C5A="123.00" C45="AUD" C5F="178.00" C54="1.00000000000000" Q05="13" C46="USD" C66="207.20" C65="29.20" C5D="0.00" C5B="0.00" C64="29.20" S66="RIO K0 BHZ68.28K0 RIO55.20USD123.48END" P27="F" NRA="0.00" N1U="@" S83="ATPC" P26="F"> [cut] <CAL A11="RIO" A01="SDU" B08="K0" A12="BHZ" A02="CNF" C50="68.28" B50="ABC1DEF" Q04="7" B71="ADT" B02="K0" N00="Y" A41="BR" A51="1" A42="BR" A52="1" C51="68.28" C40="USD" P04="F" P05="T" D00="2016-01-31" N0K="P" P2M="F" PAY="F" PAZ="T" Q4J="1" N1K="R" S70="FR" A60="WH" FTY="0A" S53="XEX" PPF="1"> <CAT>4 15 16 25</CAT> <ERD Q46="2" Q1K="61" D12="2016-01-22" D55="05-31-38.134000" S53="XEX" BJ0="ABC1DEF" D08="2016-01-31" Q04="7" C5A="68.280000000" B70="ADT" /> <C25 S37="ATP" Q41="52562107" /> <SEG A11="RIO" C6I="SDU" A12="BHZ" A02="CNF" D71="2016-01-31" S37="ATP" B09="K0" S89="894" S90="USD2" P72="L" Q0Z="01" S12="WH" C11="BR" C12="BR" C13="F" D06="2016-01-31" D05="2016-01-31" P2F="T" P2I="F" PAW="T" B00="K0" B01="K0" N00="Y" N1L="F" SHR="319" P2M="T" P2H="F" Q0Y="1" B20="23" N0D="K" P26="F" PAX="F" /> </CAL> <CAL A11="BHZ" A01="CNF" B08="K0" A12="RIO" A02="SDU" C50="55.20" B50="VJ7Z0N8" Q04="7" B71="ADT" B02="K0" N00="Y" A41="BR" A51="1" A42="BR" A52="1" C51="55.20" C40="USD" P04="F" P05="T" D00="2016-01-31" N0K="P" P2M="F" PAY="F" PAZ="T" Q4J="1" N1K="R" S70="TO" A60="WH" FTY="0A" S53="XEX" PPF="1"> <CAT>4 15 16 25</CAT> <ERD Q46="2" Q1K="64" D12="2016-01-22" D55="05-31-38.415000" S53="XEX" BJ0="VJ7Z0N8" D08="2016-02-03" Q04="7" C5A="55.200000000" B70="ADT" /> <C25 S37="ATP" Q41="52562107" /> <SEG A11="BHZ" C6I="CNF" A12="RIO" A02="SDU" D71="2016-02-03" S37="ATP" B09="K0" S89="894" S90="USD2" P72="V" Q0Z="02" S12="WH" C11="BR" C12="BR" C13="F" D06="2016-02-03" D05="2016-02-03" P2F="T" P2I="F" PAW="T" B00="K0" B01="K0" N00="Y" N1L="F" SHR="319" P2M="T" P2H="F" Q0Y="1" B20="23" N0D="K" P26="F" PAX="F" /> </CAL> [cut] </PXI> </SUM> <MSG N06="X" Q0K="3" S18="31JAN DEPARTURE DATE-----LAST DAY TO PURCHASE 26JAN/0755" /> <MSG N06="X" Q0K="4" S18=" BASE FARE EQUIV AMT TAXES/FEES/CHARGES TOTAL" /> <MSG N06="X" Q0K="5" S18=" 1- USD123.00 AUD178.00 29.20BR AUD207.20ADT" /> <MSG N06="X" Q0K="6" S18=" 123.00 178.00 29.20 207.20TTL" /> <MSG N06="X" Q0K="7" S18="ADT-01 ABC1DEF VJ7Z0N8" /> <MSG N06="X" Q0K="8" S18=" RIO K0 BHZ68.28K0 RIO55.20USD123.48END" /> [cut] </PricingResponse>
Displaying trip characteristics
<PricingDTLResponse> <MSG N06="X" Q0K="000003" S18="WPDF"/> <MSG N06="X" Q0K="000004" S18="PSGR TYPE ADT"/> <MSG N06="X" Q0K="000005" S18="FARE USD 123.00 EQUIV AUD 178.00"/> <MSG N06="X" Q0K="000006" S18="TAX AUD 29.20BR"/> <MSG N06="X" Q0K="000007" S18="TOTAL AUD 207.20"/> <MSG N06="X" Q0K="000008" S18="RIO K0 BHZ68.28K0 RIO55.20USD123.48END"/> <MSG N06="X" Q0K="000009" S18="XT 29.20BR"/> <MSG N06="X" Q0K="000010" S18="RATE USED 1USD-1.4426267347586AUD "/> <MSG N06="X" Q0K="000011" S18="/////////////// TRAFFIC DOCUMENT ISSUED IN SYD ///////////////"/> <MSG N06="X" Q0K="000012" S18="PU -FARE BASIS-CUR LSF AMT ELEMENT DESCRIPTION ----------- GI"/> <MSG N06="X" Q0K="000013" S18="01 ABC1DEF USD 68.28 RIO-BHZ K0 /HR RTG WH"/> <MSG N06="X" Q0K="000014" S18="01 VJ7Z0N8 USD 55.20 RIO-BHZ K0 /HR RTG WH"/> <MSG N06="X" Q0K="000015" S18=" 123.48 - TOTAL USD"/> <MSG N06="X" Q0K="000016" S18="-TAX AMT/AUD/-- CUR CODES DESCRIPTION------------------------"/> <MSG N06="X" Q0K="000017" S18=" 29.20 BR/BR1 DOES NOT APPLY TO DIPLOMATS AND CONS"/> <MSG N06="X" Q0K="000018" S18=" 15.20:USD 10.51 *CNF* *K0*"/> <MSG N06="X" Q0K="000019" S18=" 14.00:USD 9.69 *SDU* *K0*"/> <MSG N06="X" Q0K="000020" S18="-IATA RATES OF EXCHANGE USED IN FARE CALCULATION --------------"/> <MSG N06="X" Q0K="000021" S18=" 1.0000000000 USD-ROE EFF 20SEP01*INDEF"/> <MSG N06="X" Q0K="000022" S18="-BSR USED IN FARE CALCULATION ---------------------------------"/> <MSG N06="X" Q0K="000023" S18=" 1USD:1.4426267347586AUD "/> <MSG N06="X" Q0K="000024" S18="-BSR USED IN TAX CALCULATION ----------------------------------"/> <MSG N06="X" Q0K="000025" S18=" 1USD:1.4426267347586AUD "/> <MSG N06="X" Q0K="000026" S18="-PRICING UNIT TRIP TYPE ---------------------------------------"/> <MSG N06="X" Q0K="000027" S18=" PU 01 - SPECIAL ROUND TRIP"/> </PricingDTLResponse>
Checking Category 6 (Minimum Stay) restrictions for ABC1DEF fare
<FareDisplayResponse BI0="ALL"> <MSG N06="X" Q0K="000002" S18=" V FARE BASIS BK FARE TRAVEL-TICKET AP MINMAX RTG"/> <MSG N06="X" Q0K="000004" S18=" 1 @ABC1DEF L R 197.00 ---- 4/1 -/12M 2720"/> <MSG N06="X" Q0K="000006" S18="PASSENGER TYPE-ADT AUTO PRICE-YES "/> <MSG N06="X" Q0K="000008" S18="FROM-SDU TO-CNF CXR-K0 TVL-31JAN16 RULE-USD2 FBRA1P/894"/> <MSG N06="X" Q0K="000010" S18="FARE BASIS-ABC1DEF SPECIAL FARE DIS-E VENDOR-ATP"/> <MSG N06="X" Q0K="000012" S18="FARE TYPE-XEX RT-REGULAR EXCURSION"/> <MSG N06="X" Q0K="000014" S18="USD 136.56 2720 E10OCT15 D-INFINITY FC-ABC1DEF FN-7 "/> <MSG N06="X" Q0K="000016" S18="SYSTEM DATES - CREATED 22JAN16/0531 EXPIRES INFINITY"/> <MSG N06="X" Q0K="000018" S18=" "/> <MSG N06="X" Q0K="000020" S18="06.MINIMUM STAY"/> <MSG N06="X" Q0K="000022" S18=" NO MINIMUM STAY REQUIREMENTS APPLY."/> <ODC A01="RIO" A02="BHZ" C46="AUD"/> <FQD AK0="SDU" AL0="CNF" B00="K0" B01="K0" B30="L" B50="ABC1DEF" B70="ADT" BJ0="ABC1DEF" C46="USD" C50="136.56" C5A="68.28" D12="2016-01-22" D55="05-31-38.134000" PAS="N" PCG="@" Q1K="61" Q3W="894" Q46="2" S37="ATP" S49="2720" S53="XEX" S86="2720" S90="USD2"> <C25 Q41="52562107" S37="ATP"/> </FQD> </FareDisplayResponse>
Displaying D306/FCABC1DEF/FMSDUCNF
<PricingResponse> <MSG N06="X" Q0K="3" S18="DIAGNOSTIC 306 RETURNED NO DATA" /> </PricingResponse>
Checking Category 6 restrictions for VJ7Z0N8 fare
<FareDisplayResponse BI0="ALL"> <MSG N06="X" Q0K="000002" S18=" V FARE BASIS BK FARE TRAVEL-TICKET AP MINMAX RTG"/> <MSG N06="X" Q0K="000004" S18=" 1 @VJ7Z0N8 V R 160.00 ---- 7/1 -/12M 2720"/> <MSG N06="X" Q0K="000006" S18="PASSENGER TYPE-ADT AUTO PRICE-YES "/> <MSG N06="X" Q0K="000008" S18="FROM-SDU TO-CNF CXR-K0 TVL-31JAN16 RULE-USD2 FBRA1P/894"/> <MSG N06="X" Q0K="000010" S18="FARE BASIS-VJ7Z0N8 SPECIAL FARE DIS-E VENDOR-ATP"/> <MSG N06="X" Q0K="000012" S18="FARE TYPE-XEX RT-REGULAR EXCURSION"/> <MSG N06="X" Q0K="000014" S18="USD 110.40 2720 E10OCT15 D-INFINITY FC-VJ7Z0N8 FN-7 "/> <MSG N06="X" Q0K="000016" S18="SYSTEM DATES - CREATED 22JAN16/0531 EXPIRES INFINITY"/> <MSG N06="X" Q0K="000018" S18=" "/> <MSG N06="X" Q0K="000020" S18="06.MINIMUM STAY"/> <MSG N06="X" Q0K="000022" S18=" NO MINIMUM STAY REQUIREMENTS APPLY."/> <ODC A01="RIO" A02="BHZ" C46="AUD"/> <FQD AK0="SDU" AL0="CNF" B00="K0" B01="K0" B30="V" B50="VJ7Z0N8" B70="ADT" BJ0="VJ7Z0N8" C46="USD" C50="110.40" C5A="55.2" D12="2016-01-22" D55="05-31-38.415000" PAS="N" PCG="@" Q1K="64" Q3W="894" Q46="2" S37="ATP" S49="2720" S53="XEX" S86="2720" S90="USD2"> <C25 Q41="52562107" S37="ATP"/> </FQD> </FareDisplayResponse>
Displaying D306/FCVJ7Z0N8/FMSDUCNF
<PricingResponse> <MSG N06="X" Q0K="3" S18="DIAGNOSTIC 306 RETURNED NO DATA" /> </PricingResponse>
Structured rule request (Fare component number Q6D, Fare basis code B50)
<STRUCTUREDRULEREQUEST> <AGI A10="SYD" A20="F7SH" A21="9F27" A80="F7SH" A90="GP1" AB0="0236122" AB1="0350095" B00="1S" C40="AUD" N0G="*" Q01="45" /> <BIL A20="HDQ" A22="F7SH" A70="WPNC" AA0="GP1" AD0="25869C" AE0="AA" C00="6650238635986862303" C20="INTLWPI1" Q02="0" Q03="0" S0R="LBTY" /> <PRO C45="AUD" D07="2016-01-25" D54="0475" N08="B" OCL="T" P0J="T" P52="T" PBK="T" PPC="T" Q0P="1" S14="WPNCQ/*196" S15="CRSAGT" SEY="T" SEZ="T" /> <PXI B70="ADT" Q0U="1" /> <SGI Q0C="1" Q6D="1" B50="ABC1DEF"> <FLI A01="SDU" A02="CNF" B00="JJ" B01="JJ" B30="Y" B40="319" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-01-31" D02="2016-01-31" D30="0475" D31="1194" D32="1254" N03="A" Q0B="3752" Q0C="1" /> </SGI> <SGI Q0C="2" Q6D="2" B50="VJ7Z0N8"> <FLI A01="CNF" A02="SDU" B00="JJ" B01="JJ" B30="Y" B40="319" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-02-03" D02="2016-02-03" D30="0475" D31="1092" D32="1160" N03="A" Q0B="3755" Q0C="2" /> </SGI> </STRUCTUREDRULEREQUEST>
Structured rule response
<StructuredRuleResponse> <SUM C56="123.00" C40="USD" S69="SOTO" AO0="SYD" B00="JJ" PBC="F" PAR="F" S79="pifhli121" ANG="T"> <PXI B70="ADT" C43="USD" C5E="123.48" B71="ADT" Q4P="1" C40="USD" C5A="123.00" C45="AUD" C5F="178.00" C54="1.00000000000000" Q05="13" C46="USD" C66="178.00" C65="0.00" C5D="0.00" C5B="0.00" N1U="@" S83="ATPC" P26="F"> <MSG N06="W" Q0K="0" S18="PRIVATE FARE APPLIED - CHECK RULES FOR CORRECT TICKETING" /> <MSG N06="W" Q0K="0" S18="VALIDATING CARRIER - " /> <PEN> <CPB MPA="73.00" MPC="AUD" /> <CPA MPA="116.00" MPC="AUD" /> <RPB MPA="37.00" MPC="AUD" /> <RPA MPA="38.00" MPC="AUD" /> </PEN> <FCD Q6D="1" PUN="1" /> <FCD Q6D="2" PUN="1" /> <PUD PUN="1" /> </PXI> </SUM> </StructuredRuleResponse>
The following table describes the data in the response:
Data |
Description |
---|---|
FCD |
Fare component data. |
FCD/@Q6D |
Fare component number. |
FCD/@PUN |
Pricing unit number that covers this fare component. |
PUD |
Pricing unit data. |
PUD/@PUN |
Pricing unit number. |