Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some of the AirPricingInfos are not associated with requested AirReservation #209

Open
salmanelahi93 opened this issue Nov 16, 2020 · 12 comments

Comments

@salmanelahi93
Copy link

Hi Vivek,

"Some of the AirPricingInfos are not associated with requested AirReservation"

We found the above error while ticketing of adult with child/infant (Reservation successful in this case).

If we do ticketing only for adult, it succeeded.
I'm sharing Reservation and Ticketing request xml.

Reservation request XML:

<AirCreateReservationReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="PXXXXX" RetainReservation="Both">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <BookingTraveler Key="42101-8391074-7" TravelerType="ADT" DOB="2020-11-30" xmlns="http://www.travelport.com/schema/common_v49_0">
    <BookingTravelerName First="Salman" Last="Elahi" />
    <PhoneNumber CountryCode="" Number="03432244864" />
    <Email EmailID="[email protected]" />
  </BookingTraveler>
  <BookingTraveler Key="123-45678-9" TravelerType="CNN" DOB="2020-11-30" xmlns="http://www.travelport.com/schema/common_v49_0">
    <BookingTravelerName First="Yousuf" Last="Azhar" />
    <PhoneNumber CountryCode="" Number="sdfhs" />
    <Email EmailID="[email protected]" />
  </BookingTraveler>
  <AirPricingSolution xmlns="http://www.travelport.com/schema/air_v49_0">
    <AirSegment Key="ROte+WgYlDKANJpgyBAAAA==" Group="0" Carrier="BI" FlightNumber="422" Origin="SIN" Destination="BWN" DepartureTime="2021-07-01T12:10:00.000" ArrivalTime="2021-07-01T14:15:00.000" ClassOfService="R" />
    <AirSegment Key="ROte+WgYlDKAPJpgyBAAAA==" Group="1" Carrier="BI" FlightNumber="421" Origin="BWN" Destination="SIN" DepartureTime="2021-07-05T09:15:00.000" ArrivalTime="2021-07-05T11:20:00.000" ClassOfService="R" />
    <AirPricingInfo PricingMethod="Auto" Key="ROte+WgYlDKATJpgyBAAAA==">
      <FareInfo EffectiveDate="2020-11-16T17:06:00.000+05:00" Destination="BWN" Origin="SIN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="ROte+WgYlDKAZJpgyBAAAA==" />
      <FareInfo EffectiveDate="2020-11-16T17:06:00.000+05:00" Destination="SIN" Origin="BWN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="ROte+WgYlDKAgJpgyBAAAA==" />
      <FareInfo EffectiveDate="2020-11-16T17:06:00.000+05:00" Destination="BWN" Origin="SIN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="ROte+WgYlDKAZJpgyBAAAA==" />
      <FareInfo EffectiveDate="2020-11-16T17:06:00.000+05:00" Destination="SIN" Origin="BWN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="ROte+WgYlDKAgJpgyBAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="ROte+WgYlDKAZJpgyBAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="ROte+WgYlDKAZJpgyBAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="ROte+WgYlDKAgJpgyBAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="ROte+WgYlDKAgJpgyBAAAA==" />
      <PassengerType Code="ADT" BookingTravelerRef="42101-8391074-7" />
    </AirPricingInfo>
    <AirPricingInfo PricingMethod="Auto" Key="ROte+WgYlDKApJpgyBAAAA==">
      <FareInfo EffectiveDate="2020-11-16T17:06:00.000+05:00" Destination="BWN" Origin="SIN" PassengerTypeCode="CNN" FareBasis="RE30SGMU" Key="ROte+WgYlDKAvJpgyBAAAA==" />
      <FareInfo EffectiveDate="2020-11-16T17:06:00.000+05:00" Destination="SIN" Origin="BWN" PassengerTypeCode="CNN" FareBasis="RE30SGMU" Key="ROte+WgYlDKA2JpgyBAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="ROte+WgYlDKAvJpgyBAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="ROte+WgYlDKA2JpgyBAAAA==" />
      <PassengerType Code="CNN" BookingTravelerRef="123-45678-9" />
    </AirPricingInfo>
  </AirPricingSolution>
  <ActionStatus Type="TAW" TicketDate="2020-11-16T18:57:19.517+05:00" ProviderCode="1G" xmlns="http://www.travelport.com/schema/common_v49_0" />
</AirCreateReservationReq> 

Ticketing request XML:

<AirTicketingReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="PXXXXXX">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <AirReservationLocatorCode xmlns="http://www.travelport.com/schema/air_v49_0">AZJ7MZ</AirReservationLocatorCode>
  <AirPricingInfoRef Key="ROte+WgYlDKATJpgyBAAAA==" xmlns="http://www.travelport.com/schema/air_v49_0" />
  <AirPricingInfoRef Key="ROte+WgYlDKApJpgyBAAAA==" xmlns="http://www.travelport.com/schema/air_v49_0" />
  <AirTicketingModifiers xmlns="http://www.travelport.com/schema/air_v49_0">
    <FormOfPayment Type="MiscFormOfPayment" xmlns="http://www.travelport.com/schema/common_v49_0">
      <MiscFormOfPayment Category="Text" />
    </FormOfPayment>
  </AirTicketingModifiers>
</AirTicketingReq> 
@vivekjyotipramanik
Copy link
Contributor

Hi salmanelahi93,

Please share the below xmls to analyze the problem. Thanks.

  1. AirPriceReq/Rsp
  2. AirCreateReservationReq/Rsp

@salmanelahi93
Copy link
Author

We are using LowFareSearch instead of AirPrice.

Please find all 4 XMLs in the attachment:

LowFareSearchReq.txt
LowFareSearchRsp.txt
AirCreateReservationReq.txt
AirCreateReservationRsp.txt

@vivekjyotipramanik
Copy link
Contributor

Hi salmanelahi93,

Could you please add PlatingCarrier in the AirPricingInfo on the AirCreateReservationReq and give it a try. Thanks.

@salmanelahi93
Copy link
Author

Still same issue after adding PlatingCarrier. Please find the req xml (with PlatingCarrier) below:

<AirCreateReservationReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="PXXXXXX" RetainReservation="Both">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <BookingTraveler Key="123-45678-9" TravelerType="ADT" DOB="2020-11-30" xmlns="http://www.travelport.com/schema/common_v49_0">
    <BookingTravelerName First="Yousuf" Last="Azhar" />
    <PhoneNumber CountryCode="" Number="sdfhs" />
    <Email EmailID="[email protected]" />
  </BookingTraveler>
  <BookingTraveler Key="42101-8391074-7" TravelerType="CNN" DOB="2020-11-30" xmlns="http://www.travelport.com/schema/common_v49_0">
    <BookingTravelerName First="Salman" Last="Elahi" />
    <PhoneNumber CountryCode="" Number="03432244864" />
    <Email EmailID="[email protected]" />
  </BookingTraveler>
  <AirPricingSolution xmlns="http://www.travelport.com/schema/air_v49_0">
    <AirSegment Key="Y2SX+WnB0BKAqvACPCAAAA==" Group="0" Carrier="BI" FlightNumber="422" Origin="SIN" Destination="BWN" DepartureTime="2021-07-01T12:10:00.000" ArrivalTime="2021-07-01T14:15:00.000" ClassOfService="R" />
    <AirSegment Key="Y2SX+WnB0BKAsvACPCAAAA==" Group="1" Carrier="BI" FlightNumber="421" Origin="BWN" Destination="SIN" DepartureTime="2021-07-12T09:15:00.000" ArrivalTime="2021-07-12T11:20:00.000" ClassOfService="R" />
    <AirPricingInfo PricingMethod="Auto" PlatingCarrier="BI" Key="Y2SX+WnB0BKAwvACPCAAAA==">
      <FareInfo EffectiveDate="2020-11-17T12:42:00.000+05:00" Destination="BWN" Origin="SIN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="Y2SX+WnB0BKA2vACPCAAAA==" />
      <FareInfo EffectiveDate="2020-11-17T12:42:00.000+05:00" Destination="SIN" Origin="BWN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="Y2SX+WnB0BKA9vACPCAAAA==" />
      <FareInfo EffectiveDate="2020-11-17T12:42:00.000+05:00" Destination="BWN" Origin="SIN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="Y2SX+WnB0BKA2vACPCAAAA==" />
      <FareInfo EffectiveDate="2020-11-17T12:42:00.000+05:00" Destination="SIN" Origin="BWN" PassengerTypeCode="ADT" FareBasis="RE30SGMU" Key="Y2SX+WnB0BKA9vACPCAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="Y2SX+WnB0BKA2vACPCAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="Y2SX+WnB0BKA2vACPCAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="Y2SX+WnB0BKA9vACPCAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="Y2SX+WnB0BKA9vACPCAAAA==" />
      <PassengerType Code="ADT" BookingTravelerRef="123-45678-9" />
    </AirPricingInfo>
    <AirPricingInfo PricingMethod="Auto" PlatingCarrier="BI" Key="Y2SX+WnB0BKAGwACPCAAAA==">
      <FareInfo EffectiveDate="2020-11-17T12:42:00.000+05:00" Destination="BWN" Origin="SIN" PassengerTypeCode="CNN" FareBasis="RE30SGMU" Key="Y2SX+WnB0BKAMwACPCAAAA==" />
      <FareInfo EffectiveDate="2020-11-17T12:42:00.000+05:00" Destination="SIN" Origin="BWN" PassengerTypeCode="CNN" FareBasis="RE30SGMU" Key="Y2SX+WnB0BKATwACPCAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="Y2SX+WnB0BKAMwACPCAAAA==" />
      <BookingInfo BookingCode="R" FareInfoRef="Y2SX+WnB0BKATwACPCAAAA==" />
      <PassengerType Code="CNN" BookingTravelerRef="42101-8391074-7" />
    </AirPricingInfo>
  </AirPricingSolution>
  <ActionStatus Type="TAW" TicketDate="2020-11-18T11:26:29.682+05:00" ProviderCode="1G" xmlns="http://www.travelport.com/schema/common_v49_0" />
</AirCreateReservationReq> 

@vivekjyotipramanik
Copy link
Contributor

Hi salmanelahi93,

Could you please share the full flow again. Thanks.

  1. LFS Req/Rsp
  2. AirCreateReservationReq/Rsp
  3. AirTicketingReq/Rsp

@salman-elahi
Copy link

We are using LowFareSearch instead of AirPrice.

Please find all 4 XMLs in the attachment:

LowFareSearchReq.txt
LowFareSearchRsp.txt
AirCreateReservationReq.txt
AirCreateReservationRsp.txt

I already shared full flow.

@vivekjyotipramanik
Copy link
Contributor

Hi salmanelahi93,

I have not seen the TicketingRsp. Please share the same. Thanks.

@salman-elahi
Copy link

Im not able to receive TicketingRsp due to following exception:

Some of the AirPricingInfos are not associated with requested AirReservation

@vivekjyotipramanik
Copy link
Contributor

Hi salmanelahi93,

Based on the reservation rsp you have shared the ticketing request should be like below. Thanks.

<AirTicketingReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="PXXXXXX">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <AirReservationLocatorCode xmlns="http://www.travelport.com/schema/air_v49_0">AZJ7MZ</AirReservationLocatorCode>
  <AirPricingInfoRef Key="OHo5yWmJ0BKAzU8PCDAAAA==" xmlns="http://www.travelport.com/schema/air_v49_0" />
  <AirPricingInfoRef Key="OHo5yWmJ0BKA0U8PCDAAAA==" xmlns="http://www.travelport.com/schema/air_v49_0" />
  <AirTicketingModifiers xmlns="http://www.travelport.com/schema/air_v49_0">
    <FormOfPayment Type="MiscFormOfPayment" xmlns="http://www.travelport.com/schema/common_v49_0">
      <MiscFormOfPayment Category="Text" />
    </FormOfPayment>
  </AirTicketingModifiers>
</AirTicketingReq> 

@salman-elahi
Copy link

Have you verified the keys in LowFareSearchRsp, AirCreateReservationReq and AirCreateReservationRsp ?

It seems that AirPricingInfokeys are wrong in AirCreateReservationRsp. Can you check (if you previously not verified) ?

@vivekjyotipramanik
Copy link
Contributor

Hi salman-elahi,

The AirPriceInfoKeys changes in the response and it is working as expected. You have to take the kesy from response and apply it in in next request. Thanks.

@saikat1989
Copy link

Hi Vivek,

I have got the error "One or more errors occurred. (*** INVALID FORMAT *** | *** INVALID FORMAT ***)" for AirCreateReservation.

Can you please check the request xml of AirCreateReservation?

I am not able to find what I am doing wrong.

User Id - Universal API/uAPI8968938106-bec96be5
Branch - P107484
Provider - 1P

<?xml version="1.0" encoding="utf-16"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://localhost:8080/kestrel/AirService</Action> </s:Header> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <AirCreateReservationReq TargetBranch="P107484" ProviderCode="1P" RetainReservation="Both" xmlns="http://www.travelport.com/schema/universal_v43_0"> <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v43_0" /> <BookingTraveler Key="gr8AVWGCR064r57Jt0+8bA==" TravelerType="ADT" Age="28" Gender="M" Nationality="US" xmlns="http://www.travelport.com/schema/common_v43_0"> <BookingTravelerName Prefix="Mr" First="Jack" Last="Smith" /> <DeliveryInfo> <ShippingAddress Key="gr8AVWGCR064r57Jt0+8bA=="> <AddressName>Home</AddressName> <Street>2914 N. Dakota Avenue</Street> <City>Denver</City> <State>CO</State> <PostalCode>80206</PostalCode> <Country>US</Country> </ShippingAddress> </DeliveryInfo> <PhoneNumber Location="DEN" CountryCode="1" AreaCode="303" Number="3333333" /> <Email Type="Home" EmailID="[email protected]" /> <SSR SegmentRef="PoO8hgAqWDKADNKmAAAAAA==" Type="DOCS" Status="HK" FreeText="P/US/F1234567/US/13Mar93/M/13Mar23/Smith/Jack" Carrier="AI" /> <Address> <AddressName>Home</AddressName> <Street>2914 N. Dakota Avenue</Street> <City>Denver</City> <State>CO</State> <PostalCode>80206</PostalCode> <Country>US</Country> </Address> </BookingTraveler> <ContinuityCheckOverride Key="1T" xmlns="http://www.travelport.com/schema/common_v43_0">true</ContinuityCheckOverride> <FormOfPayment Type="Check" Key="jwt2mcK1Qp27I2xfpcCtAw==" xmlns="http://www.travelport.com/schema/common_v43_0"> <Check RoutingNumber="456" AccountNumber="7890" CheckNumber="1234567" /> </FormOfPayment> <AirPricingSolution Key="PoO8hgAqWDKAENKmAAAAAA==" TotalPrice="AUD79.30" BasePrice="INR3630" ApproximateTotalPrice="AUD79.30" ApproximateBasePrice="AUD65.00" Taxes="AUD14.30" ApproximateTaxes="AUD14.30" xmlns="http://www.travelport.com/schema/air_v43_0"> <AirSegment Key="PoO8hgAqWDKADNKmAAAAAA==" Equipment="32B" Group="0" Carrier="AI" FlightNumber="401" Origin="DEL" Destination="CCU" DepartureTime="2021-03-25T07:10:00.000+05:30" ArrivalTime="2021-03-25T09:35:00.000+05:30" ProviderCode="1P" ParticipantLevel="Secure Sell" /> <AirPricingInfo LatestTicketingTime="2021-03-25T23:59:00.000+11:00" PricingMethod="Auto" Key="PoO8hgAqWDKAGNKmAAAAAA==" TotalPrice="AUD79.30" BasePrice="INR3630" ApproximateTotalPrice="AUD79.30" ApproximateBasePrice="AUD65.00" Taxes="AUD14.30" ProviderCode="1P"> <FareInfo Amount="AUD65.00" EffectiveDate="2021-03-13T23:22:15.414+11:00" Destination="CCU" Origin="DEL" PassengerTypeCode="ADT" FareBasis="SIP" Key="PoO8hgAqWDKAMNKmAAAAAA=="> <FareRuleKey FareInfoRef="PoO8hgAqWDKAMNKmAAAAAA==" ProviderCode="1P">9qEuPoPcT/8SCV2Vx+zo8rEJfU+qBk6dznJgexD0EBEQUFz1xal2RiuSCURXa7X7En8Mg+HAuzKP5Rqw65fgFORsBfJKkIog</FareRuleKey> </FareInfo> <BookingInfo BookingCode="S" CabinClass="Economy" FareInfoRef="PoO8hgAqWDKAMNKmAAAAAA==" SegmentRef="PoO8hgAqWDKADNKmAAAAAA==" /> <TaxInfo Amount="AUD1.40" Category="IN" Key="PoO8hgAqWDKAHNKmAAAAAA==" /> <TaxInfo Amount="AUD3.40" Category="K3" Key="PoO8hgAqWDKAINKmAAAAAA==" /> <TaxInfo Amount="AUD3.40" Category="P2" Key="PoO8hgAqWDKAJNKmAAAAAA==" /> <TaxInfo Amount="AUD3.00" Category="WO" Key="PoO8hgAqWDKAKNKmAAAAAA==" /> <TaxInfo Amount="AUD3.10" Category="YR" Key="PoO8hgAqWDKALNKmAAAAAA==" /> <FareCalc>ADT DEL AI CCU Q300 3330INR3630END AI</FareCalc> <PassengerType Code="ADT" BookingTravelerRef="gr8AVWGCR064r57Jt0+8bA==" /> <ChangePenalty> <Amount>AUD53.00</Amount> </ChangePenalty> <AirPricingModifiers> <ManualFareAdjustment AppliedOn="Base" AdjustmentType="Amount" Value="40" PassengerRef="kOe6hg/pWDKAmXQlAAAAAA==" FareType="1P" /> </AirPricingModifiers> <BaggageAllowances> <BaggageAllowanceInfo Origin="DEL" Destination="CCU" Carrier="AI" TravelerType="ADT"> <URLInfo> <URL>VIEWTRIP.TRAVELPORT.COM/BAGGAGEPOLICY/AI</URL> </URLInfo> <TextInfo> <Text>25K</Text> <Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</Text> </TextInfo> <BagDetails ApplicableBags="1stChecked"> <BaggageRestriction> <TextInfo> <Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</Text> </TextInfo> </BaggageRestriction> </BagDetails> <BagDetails ApplicableBags="2ndChecked"> <BaggageRestriction> <TextInfo> <Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</Text> </TextInfo> </BaggageRestriction> </BagDetails> </BaggageAllowanceInfo> <CarryOnAllowanceInfo Origin="DEL" Destination="CCU" Carrier="AI" /> </BaggageAllowances> </AirPricingInfo> </AirPricingSolution> <ActionStatus Type="TAW" TicketDate="2021-03-25T23:59:00.000+11:00" ProviderCode="1P" xmlns="http://www.travelport.com/schema/common_v43_0" /> </AirCreateReservationReq> </s:Body> </s:Envelope>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants