Skip to main content

One Pricing Unit (Round Trip), Two Fare Components - Data Exists in Category 6 for All Fares

Example: One Pricing Unit (Round Trip), Two Fare Components - Data Exists in Category 6 for All Fares

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="LHR" A20="0UXB" A21="F8RA" A80="0UXB" A90="GP1" AB0="9129125" AB1="9129125" B00="1S" C40="GBP" N0G="*" Q01="53"/>
  <BIL A20="HDQ" A22="0UXB" A70="WPQ/*" AA0="GP1" AD0="14FA37" AE0="AA" C00="1472082011321441145" C20="INTLWPI1" Q02="0" Q03="0" S0R="LBTY"/>
  <PRO C45="GBP" D07="2016-01-25" D54="0452" N08="B" P0J="T" PBK="T" PPC="T" Q0P="1" S14="WPQ/*196" S15="CRSAGT" SEY="T" SEZ="T"/>
  <PXI B70="ADT" Q0U="1"/>
  <SGI Q0C="1">
    <FLI A01="NCL" A02="LHR" B00="K0" B01="K0" B30="S" B40="319" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-02-01" D02="2016-02-01" D30="0452" D31="0700" D32="0780" N03="A" Q0B="1327" Q0C="1"/>
  </SGI>
  <SGI Q0C="2">
    <FLI A01="LHR" A02="NCL" B00="K0" B01="K0" B30="N" B40="320" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-02-05" D02="2016-02-05" D30="0452" D31="0760" D32="0835" N03="A" Q0B="1332" Q0C="2"/>
  </SGI>
</PRICINGREQUEST>

Pricing response

<PricingResponse>
  <AGI A10="LHR" A20="0UXB" A21="F8RA" A80="0UXB" A90="GP1" AB0="9129125" AB1="9129125" B00="1S" C40="GBP" N0G="*" Q01="53"/>
  <BIL A20="HDQ" A22="0UXB" A70="WPQ/*" AA0="GP1" AD0="14FA37" AE0="AA" C20="INTLWPI1" Q02="0" Q03="0"/>
  <SUM AF0="LON" AO0="LON" B00="K0" C40="GBP" C56="111.00" D00="2016-01-25" D07="2016-01-25" D14="2016-01-25" D16="2016-01-25" D54="452" D60="23:59" PAR="F" PBC="F" S69="SITI" S79="pifhli121">
    <VCL P3L="F" SM0="BSP" VC0="T">
      <DCX B00="K0" TT0="ETKTREQ"/>
    </VCL>
    <PXI B70="ADT" B71="ADT" C40="GBP" C43="GBP" C46="GBP" C54="0.66324500000000" C5A="111.00" C5B="0.00" C5D="0.00" C5E="110.50" C64="64.54" C65="64.54" C66="175.54" NRA="110.50" P26="F" P27="T" PBS="F" Q05="13" Q4P="1" S66="NCL K0 LON59.00K0 NCL51.50GBP110.50END" S83="ATPC" S85="ADT 1 ADT 0 2 1 1 8 ABC1DEF 7203 304 S  2 2 8 DEF1ABC 7203 304 N " USI="6">
[cut]
      <CAL A01="NCL"A02="LHR" A11="NCL" A12="LON" A41="GB" A42="GB" A51="2" A52="2" A60="EH" B02="K0" B08="K0" B50="ABC1DEF" B71="ADT" C40="GBP" C50="59.00" C51="59.00" D00="2016-02-01" FTY="00" N00="Y" N0K="P" N1K="R" P04="F" P05="T" P2M="F" PAY="F" PAZ="T" PPF="0" Q04="6" Q4J="1" S53="XEX" S70="FR">
        <CAT>4 5 6 8 9 10 14 15 16 18</CAT>
        <ERD B70="ADT" BJ0="ABC1DEF" C5A="59.000000000" D08="2016-02-01" D12="2015-09-16" D55="10-38-36.607000" Q04="6" Q1K="1" Q46="6" S53="XEX"/>
        <SEG A02="LHR" A11="NCL" A12="LON" B00="K0" B01="K0" B09="K0" B20="01" C11="GB" C12="GB" C13="F" C6I="NCL" D05="2016-02-01" D06="2016-02-01" D71="2016-02-01" N00="Y" N0D="P" P26="F" P2F="T" P2H="F" P2I="F" P2M="T" P72="S" PAW="F" Q0Y="1" Q0Z="01" S12="EH" S37="ATP" S89="304" S90="7203" SHR="319"/>
      </CAL>
      <CAL A01="LHR"A02="NCL" A11="LON" A12="NCL" A41="GB" A42="GB" A51="2" A52="2" A60="EH" B02="K0" B08="K0" B50="DEF1ABC" B71="ADT" C40="GBP" C50="51.50" C51="51.50" D00="2016-02-01" FTY="00" N00="Y" N0K="P" N1K="R" P04="F" P05="T" P2M="F" PAY="F" PAZ="T" PPF="0" Q04="6" Q4J="1" S53="XEX" S70="TO">
        <CAT>4 5 6 8 9 10 15 16 18</CAT>
        <ERD B70="ADT" BJ0="DEF1ABC" C5A="51.500000000" D08="2016-02-05" D12="2016-01-04" D55="01-18-39.326000" Q04="6" Q1K="1" Q46="8" S53="XEX"/>
        <SEG A02="NCL" A11="LON" A12="NCL" B00="K0" B01="K0" B09="K0" B20="01" C11="GB" C12="GB" C13="F" C6I="LHR" D05="2016-02-05" D06="2016-02-05" D71="2016-02-05" N00="Y" N0D="P" P26="F" P2F="T" P2H="F" P2I="F" P2M="T" P72="N" PAW="F" Q0Y="1" Q0Z="02" S12="EH" S37="ATP" S89="304" S90="7203" SHR="320"/>
      </CAL>
[cut]
    </PXI>
  </SUM>
  <MSG N06="X" Q0K="3" S18="01FEB DEPARTURE DATE-----LAST DAY TO PURCHASE 25JAN/2359"/>
  <MSG N06="X" Q0K="4" S18="       BASE FARE                 TAXES/FEES/CHARGES    TOTAL"/>
  <MSG N06="X" Q0K="5" S18=" 1-    GBP111.00                     64.54XT       GBP175.54ADT"/>
  <MSG N06="X" Q0K="6" S18="    XT      26.00GB       38.54UB "/>
  <MSG N06="X" Q0K="7" S18="          111.00                     64.54            175.54TTL"/>
  <MSG N06="X" Q0K="8" S18="ADT-01  ABC1DEF DEF1ABC"/>
  <MSG N06="X" Q0K="9" S18=" NCL K0 LON59.00K0 NCL51.50GBP110.50END"/>
[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  GBP   111.00"/>
  <MSG N06="X" Q0K="000006" S18="TAX   GBP     64.54XT"/>
  <MSG N06="X" Q0K="000007" S18="TOTAL GBP      175.54"/>
  <MSG N06="X" Q0K="000008" S18="NCL K0 LON59.00K0 NCL51.50GBP110.50END"/>
  <MSG N06="X" Q0K="000009" S18="XT 26.00GB 38.54UB"/>
  <MSG N06="X" Q0K="000010" S18="/////////////// TRAFFIC DOCUMENT ISSUED IN LON ///////////////"/>
  <MSG N06="X" Q0K="000011" S18="PU -FARE BASIS-CUR  LSF AMT ELEMENT DESCRIPTION ----------- GI"/>
  <MSG N06="X" Q0K="000012" S18="01 ABC1DEF      GBP    59.00 NCL-LON K0 /HR RTG              EH"/>
  <MSG N06="X" Q0K="000013" S18="01 DEF1ABC      GBP    51.50 NCL-LON K0 /HR RTG              EH"/>
  <MSG N06="X" Q0K="000014" S18="                     110.50    -    TOTAL GBP"/>
  <MSG N06="X" Q0K="000015" S18="-TAX AMT/GBP/-- CUR  CODES  DESCRIPTION------------------------"/>
  <MSG N06="X" Q0K="000016" S18="       26.00        GB/GB6 AIR PASSENGER DUTY APD"/>
  <MSG N06="X" Q0K="000017" S18="          13.00:GBP    13.00 *NCL* *K0*"/>
  <MSG N06="X" Q0K="000018" S18="          13.00:GBP    13.00 *LHR* *K0*"/>
  <MSG N06="X" Q0K="000019" S18="       38.54        GB/UB7 PSC - DOMESTIC DEPARTURES LGW THROUG"/>
  <MSG N06="X" Q0K="000020" S18="          29.81:GBP    29.81 *LHR* *K0*"/>
  <MSG N06="X" Q0K="000021" S18="           8.73:GBP     8.73 *NCL* *K0*"/>
  <MSG N06="X" Q0K="000022" S18="-PRICING UNIT TRIP TYPE ---------------------------------------"/>
  <MSG N06="X" Q0K="000023" S18="  PU 01 - SPECIAL ROUND TRIP"/>
</PricingDTLResponse>

Checking Category 6 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         S R   118.00     ----      -/0  3/  - 3018"/>
  <MSG N06="X" Q0K="000006" S18="PASSENGER TYPE-ADT                 AUTO PRICE-YES              "/>
  <MSG N06="X" Q0K="000008" S18="FROM-NCL TO-LON    CXR-K0    TVL-01FEB16  RULE-7203 IPREURD/304"/>
  <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="GBP   118.00  3018  E02NOV15 D-INFINITY   FC-ABC1DEF  FN-     "/>
  <MSG N06="X" Q0K="000016" S18="SYSTEM DATES - CREATED 16SEP15/1038  EXPIRES INFINITY"/>
  <MSG N06="X" Q0K="000018" S18=" "/>
  <MSG N06="X" Q0K="000020" S18="06.MINIMUM STAY"/>
  <MSG N06="X" Q0K="000022" S18="   TRAVEL FROM LAST STOPOVER MUST COMMENCE NO EARLIER
THAN 3 DAYS AFTER DEPARTURE FROM FARE ORIGIN."/>
  <ODC A01="NCL" A02="LON" C46="GBP"/>
  <FQD AK0="NCL" AL0="LON" B00="K0" B01="K0" B30="S" B50="ABC1DEF" B70="ADT" BJ0="ABC1DEF" C46="GBP" C50="118.00" C5A="59" D12="2015-09-16" D55="10-38-36.607000" PAS="N" PCG=" " Q1K="1" Q3W="304" Q46="6" S37="ATP" S49="3018" S53="XEX" S86="3018" S90="7203"/>
</FareDisplayResponse>

Displaying D306/FCABC1DEF/FMNCLLON

<PricingResponse>
  <MSG N06="X" Q0K="3" S18="CATEGORY 06 - MIN STAY APPLICATION DIAGNOSTICS" />
  <MSG N06="X" Q0K="4" S18="PHASE: FARE VALIDATOR    R3 ITEM NUMBER: 11" />
  <MSG N06="X" Q0K="5" S18="NCL LHR ABC1DEF     R2:FARERULE    :  ATP 304 K0 7203" />
  <MSG N06="X" Q0K="6" S18="CATEGORY 6 RULE DATA" />
  <MSG N06="X" Q0K="7" S18="MINSTAY - 3 DAY ORIGIN DOW: NONE" />
  <MSG N06="X" Q0K="8" S18="MINSTAY DATE - N/A FROM GEO - 3  TO GEO - 4" />
  <MSG N06="X" Q0K="9" S18="TABLE 994 - 0    EARLIER/LATER IND - N/A TIME -  N/A" />
  <MSG N06="X" Q0K="10" S18="CALCULATED MINIMUM STAY DATES" />
  <MSG N06="X" Q0K="11" S18="RETURN DATE  -  2016-02-04" />
  <MSG N06="X" Q0K="12" S18="RETURN TIME  -  11:40" />
  <MSG N06="X" Q0K="13" S18="VALIDATE AGAINST   -  2016-02-04 00:00" />
  <MSG N06="X" Q0K="14" S18="ITINERARY DEPARTURE DATE AND TIMES" />
  <MSG N06="X" Q0K="15" S18="DEPARTURE      - LHR 2016-02-05 12:40 PASS" />
  <MSG N06="X" Q0K="16" S18="DAY OF WEEK    - FRI" />
  <MSG N06="X" Q0K="17" S18="***************************************************************" />
  <MSG N06="X" Q0K="18" S18="CATEGORY 06 - MIN STAY APPLICATION DIAGNOSTICS" />
  <MSG N06="X" Q0K="19" S18="PHASE: FARE VALIDATOR    R3 ITEM NUMBER: 11" />
  <MSG N06="X" Q0K="20" S18="LHR NCL ABC1DEF     R2:FARERULE    :  ATP 304 K0 7203" />
  <MSG N06="X" Q0K="21" S18="MINSTAY SOFTPASS: FAREMARKET DIRECTIONALITY NOT OUTBOUND - NEED REVALIDATION" />
  <MSG N06="X" Q0K="22" S18="***************************************************************" />
  <MSG N06="X" Q0K="23" S18="CATEGORY 06 - MIN STAY APPLICATION DIAGNOSTICS" />
  <MSG N06="X" Q0K="24" S18="PHASE: FARE PATH    R3 ITEM NUMBER: 11" />
  <MSG N06="X" Q0K="25" S18="NCL LHR ABC1DEF     R2:FARERULE    :  ATP 304 K0 7203" />
  <MSG N06="X" Q0K="26" S18="CATEGORY 6 RULE DATA" />
  <MSG N06="X" Q0K="27" S18="MINSTAY - 3 DAY ORIGIN DOW: NONE" />
  <MSG N06="X" Q0K="28" S18="MINSTAY DATE - N/A FROM GEO - 3  TO GEO - 4" />
  <MSG N06="X" Q0K="29" S18="TABLE 994 - 0    EARLIER/LATER IND - N/A TIME -  N/A" />
  <MSG N06="X" Q0K="30" S18="CALCULATED MINIMUM STAY DATES" />
  <MSG N06="X" Q0K="31" S18="RETURN DATE  -  2016-02-04" />
  <MSG N06="X" Q0K="32" S18="RETURN TIME  -  11:40" />
  <MSG N06="X" Q0K="33" S18="VALIDATE AGAINST   -  2016-02-04 00:00" />
  <MSG N06="X" Q0K="34" S18="ITINERARY DEPARTURE DATE AND TIMES" />
  <MSG N06="X" Q0K="35" S18="DEPARTURE      - LHR 2016-02-05 12:40 PASS" />
  <MSG N06="X" Q0K="36" S18="DAY OF WEEK    - FRI" />
  <MSG N06="X" Q0K="37" S18="***************************************************************" />
</PricingResponse>

Checking Category 6 restrictions for DEF1ABC 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   DEF1ABC         N R   103.00     ----      -/0  2/  - 3000"/>
  <MSG N06="X" Q0K="000006" S18="PASSENGER TYPE-ADT                 AUTO PRICE-YES              "/>
  <MSG N06="X" Q0K="000008" S18="FROM-NCL TO-LON    CXR-K0    TVL-01FEB16  RULE-7203 IPREURD/304"/>
  <MSG N06="X" Q0K="000010" S18="FARE BASIS-DEF1ABC            SPECIAL FARE  DIS-E   VENDOR-ATP"/>
  <MSG N06="X" Q0K="000012" S18="FARE TYPE-XEX      RT-REGULAR EXCURSION"/>
  <MSG N06="X" Q0K="000014" S18="GBP   103.00  3000  E02NOV15 D-INFINITY   FC-DEF1ABC  FN-10   "/>
  <MSG N06="X" Q0K="000016" S18="SYSTEM DATES - CREATED 04JAN16/0118  EXPIRES INFINITY"/>
  <MSG N06="X" Q0K="000018" S18=" "/>
  <MSG N06="X" Q0K="000020" S18="06.MINIMUM STAY"/>
  <MSG N06="X" Q0K="000022" S18="   TRAVEL FROM LAST STOPOVER MUST COMMENCE NO EARLIER THAN 2 DAYS AFTER DEPARTURE FROM FARE ORIGIN."/>
  <ODC A01="NCL" A02="LON" C46="GBP"/>
  <FQD AK0="NCL" AL0="LON" B00="K0" B01="K0" B30="N" B50="DEF1ABC" B70="ADT" BJ0="DEF1ABC" C46="GBP" C50="103.00" C5A="51.5" D12="2016-01-04" D55="01-18-39.326000" PAS="N" PCG=" " Q1K="1" Q3W="304" Q46="8" S37="ATP" S49="3000" S53="XEX" S86="3000" S90="7203"/>
</FareDisplayResponse>

Displaying D306/FCDEF1ABC/FMNCLLON

<PricingResponse>
  <MSG N06="X" Q0K="3" S18="FM: NCLLHR    DEF1ABC  ATP BA  304   7203 SEQ:  5000000 R6" />
  <MSG N06="X" Q0K="4" S18="     REUSE RESULT OF OM2V1R -PASS" />
  <MSG N06="X" Q0K="5" S18="CATEGORY 06 - MIN STAY APPLICATION DIAGNOSTICS" />
  <MSG N06="X" Q0K="6" S18="PHASE: FARE PATH    R3 ITEM NUMBER: 14" />
  <MSG N06="X" Q0K="7" S18="LHR NCL DEF1ABC     R2:FARERULE    :  ATP 304 BA 7203" />
  <MSG N06="X" Q0K="8" S18="CATEGORY 6 RULE DATA" />
  <MSG N06="X" Q0K="9" S18="MINSTAY - 2 DAY ORIGIN DOW: NONE" />
  <MSG N06="X" Q0K="10" S18="MINSTAY DATE - N/A FROM GEO - 3  TO GEO - 4" />
  <MSG N06="X" Q0K="11" S18="TABLE 994 - 0    EARLIER/LATER IND - N/A TIME -  N/A" />
  <MSG N06="X" Q0K="12" S18="CALCULATED MINIMUM STAY DATES" />
  <MSG N06="X" Q0K="13" S18="RETURN DATE  -  2016-02-03" />
  <MSG N06="X" Q0K="14" S18="RETURN TIME  -  11:40" />
  <MSG N06="X" Q0K="15" S18="VALIDATE AGAINST   -  2016-02-03 00:00" />
  <MSG N06="X" Q0K="16" S18="ITINERARY DEPARTURE DATE AND TIMES" />
  <MSG N06="X" Q0K="17" S18="DEPARTURE      - LHR 2016-02-05 12:40 PASS" />
  <MSG N06="X" Q0K="18" S18="DAY OF WEEK    - FRI" />
  <MSG N06="X" Q0K="19" S18="***************************************************************" />
</PricingResponse>

Structured rule request (Fare component number Q6D, Fare basis code B50)

<STRUCTUREDRULEREQUEST>
  <AGI A10="LHR" A20="0UXB" A21="F8RA" A80="0UXB" A90="GP1" AB0="9129125" AB1="9129125" B00="1S" C40="GBP" N0G="*" Q01="53" />
  <BIL A20="HDQ" A22="0UXB" A70="WPQ/*" AA0="GP1" AD0="14FA37" AE0="AA" C00="1472082011321441145" C20="INTLWPI1" Q02="0" Q03="0" S0R="LBTY" />
  <PRO C45="GBP" D07="2016-01-25" D54="0452" N08="B" P0J="T" PBK="T" PPC="T" Q0P="1" S14="WPQ/*196" S15="CRSAGT" SEY="T" SEZ="T" />
  <PXI B70="ADT" Q0U="1" />
  <SGI Q0C="1" Q6D="1" B50="ABC1DEF">
    <FLI A01="NCL" A02="LHR" B00="K0" B01="K0" B30="S" B40="319" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-02-01" D02="2016-02-01" D30="0452" D31="0700" D32="0780" N03="A" Q0B="1327" Q0C="1" />
  </SGI>
  <SGI Q0C="2" Q6D="2" B50="DEF1ABC">
    <FLI A01="LHR" A02="NCL" B00="K0" B01="K0" B30="N" B40="320" BB0="OK" BB2="SS" D00="2016-01-25" D01="2016-02-05" D02="2016-02-05" D30="0452" D31="0760" D32="0835" N03="A" Q0B="1332" Q0C="2" />
  </SGI>
</STRUCTUREDRULEREQUEST>

Structured rule response

<StructuredRuleResponse>
  <SUM C56="111.00" C40="GBP" S69="SITI" AO0="LON" B00="K0" PBC="F" PAR="F" S79="pifhli121" ANG="T">
    <PXI B70="ADT" C43="GBP" C5E="110.50" B71="ADT" Q4P="1" C40="GBP" C5A="111.00" C54="0.66324500000000" Q05="13" C46="GBP" C66="111.00" C65="0.00" C5D="0.00" C5B="0.00" S83="ATPC" P26="F">
      <MSG N06="N" Q0K="0" B00="K0" S18="NONREF/-V1R" />
      <MSG N06="W" Q0K="0" S18="VALIDATING CARRIER - " />
      <MSG N06="W" Q0K="0" S18="CAT 15 SALES RESTRICTIONS FREE TEXT FOUND - VERIFY RULES" />
      <PEN>
        <CPB MPA="60.00" MPC="GBP" NON="T" />
        <CPA MPA="60.00" MPC="GBP" NON="T" />
        <RPB NON="T" C16="T" />
        <RPA NON="T" C16="T" />
      </PEN>
      <FCD Q6D="1" PUN="1">
        <MIN MSD="2016-02-04" MST="00:00" LOC="LON" />
      </FCD>
      <FCD Q6D="2" PUN="1">
        <MIN MSD="2016-02-03" MST="00:00" LOC="LON" />
      </FCD>
      <PUD PUN="1">
        <MIN MSD="2016-02-04" MST="00:00" LOC="LON" />
      </PUD>
    </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.

FCD/MIN/@MSD

Minimum stay date.

FCD/MIN/@MST

Minimum stay time.

FCD/MIN/@LOC

Location to which the MSD and MST applies.

PUD

Pricing unit data.

PUD/@PUN

Pricing unit number.

PUD/MIN

Minimum Stay Most restrictive (the latest date/time for a given location).