Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

Some of the AirPricingInfos are not associated with requested AirReservation. #133

Closed al13bash closed 7 years ago

al13bash commented 7 years ago

I'm trying to send air ticketing request using this sample: https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/012-04_1P_AirTicket_Rq.xml but get "Some of the AirPricingInfos are not associated with requested AirReservation." in a response. I'm not sure where shall i take AirPricingInfos. I dont have them in AirCreateReservationRsp.

vivekjyotipramanik commented 7 years ago

Hi al13bash,

Please provide the AirCreateReservationRsp and the TicketingReq you are using. Thanks.

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

AirCreateReservationRsp:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<universal:AirCreateReservationRsp TransactionId="23AEF0BA0A07643BEF43734741F16B56" ResponseTime="3218" xmlns:universal="http://www.travelport.com/schema/universal_v38_0" xmlns:common_v38_0="http://www.travelport.com/schema/common_v38_0" xmlns:air="http://www.travelport.com/schema/air_v38_0">
<universal:UniversalRecord LocatorCode="P5VL9X" Version="0" Status="Active">
<common_v38_0:BookingTraveler Key="8//UMg7Q2BKArVXABAAAAA==" TravelerType="ADT" Gender="M" ElStat="A">
<common_v38_0:BookingTravelerName Prefix="Mr" First="Mikhail" Last="Dyomin"/>
<common_v38_0:PhoneNumber Key="8//UMg7Q2BKAsVXABAAAAA==" Number="375444622040" ElStat="A">
<common_v38_0:ProviderReservationInfoRef Key="8//UMg7Q2BKAyVXABAAAAA=="/>
</common_v38_0:PhoneNumber>
</common_v38_0:BookingTraveler>
<common_v38_0:ActionStatus Key="8//UMg7Q2BKAtVXABAAAAA==" Type="TAW" TicketDate="2016-11-02T00:00:00.000-04:00" QueueCategory="00" ProviderReservationInfoRef="8//UMg7Q2BKAyVXABAAAAA==" ProviderCode="1P" ElStat="A">
<common_v38_0:Remark>02NOV</common_v38_0:Remark>
</common_v38_0:ActionStatus>
<universal:ProviderReservationInfo Key="8//UMg7Q2BKAyVXABAAAAA==" ProviderCode="1P" LocatorCode="2BX7HH" CreateDate="2016-11-02T06:17:00.823+00:00" ModifiedDate="2016-11-02T06:17:00.823+00:00" HostCreateDate="2016-11-02" OwningPCC="Z13" AgentOverride="RS"/>
<air:AirReservation LocatorCode="Z1WTLL" CreateDate="2016-11-02T06:17:00.524+00:00" ModifiedDate="2016-11-02T06:17:00.823+00:00">
<common_v38_0:BookingTravelerRef Key="8//UMg7Q2BKArVXABAAAAA=="/>
<common_v38_0:ProviderReservationInfoRef Key="8//UMg7Q2BKAyVXABAAAAA=="/>
<air:AirSegment Key="8//UMg7Q2BKApUXABAAAAA==" Group="0" Carrier="OS" CabinClass="Economy" FlightNumber="668" ProviderCode="1P" Origin="KBP" Destination="VIE" DepartureTime="2016-11-07T07:00:00.000+02:00" ArrivalTime="2016-11-07T08:10:00.000+01:00" TravelTime="130" Distance="655" ClassOfService="E" ETicketability="Yes" Status="HK" ChangeOfPlane="false" ProviderReservationInfoRef="8//UMg7Q2BKAyVXABAAAAA==" TravelOrder="1" OptionalServicesIndicator="false" ElStat="A">
<air:FlightDetails Key="8//UMg7Q2BKA0VXABAAAAA==" Origin="KBP" Destination="VIE" DepartureTime="2016-11-07T07:00:00.000+02:00" ArrivalTime="2016-11-07T08:10:00.000+01:00" FlightTime="130" TravelTime="130" Distance="655" Equipment="100" ElStat="A"/>
</air:AirSegment>
</air:AirReservation>
<common_v38_0:AgencyInfo>
<common_v38_0:AgentAction ActionType="Created" AgentCode="UAPI9026087784-EDD67337" BranchCode="P107780" AgencyCode="S31461" EventTime="2016-11-02T06:16:57.761+00:00"/>
</common_v38_0:AgencyInfo>
</universal:UniversalRecord>
</universal:AirCreateReservationRsp>
</SOAP:Body>
</SOAP:Envelope>

AirTicketingReq:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://www.travelport.com/service/air_v38_0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<AirTicketingReq TargetBranch="P107780" xmlns="http://www.travelport.com/schema/air_v38_0">
<BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v38_0" OriginApplication="uAPI"/>
<AirReservationLocatorCode>Z1WTLL</AirReservationLocatorCode>
<AirPricingInfoRef Key="8//UMg7Q2BKAyVXABAAAAA=="/>
<AirTicketingModifiers>
  <FormOfPayment xmlns="http://www.travelport.com/schema/common_v38_0" Type="Credit">
    <CreditCard CVV="CVV" ExpDate="2016-12" Type="VI" Name="TEST" Number="4012888888881881">
      <BillingAddress>
        <AddressName>Charlotte</AddressName>
        <Street>10 Charlie Street</Street>
        <City>Perth</City>
        <State>WA</State>
        <PostalCode>6000</PostalCode>
        <Country>AU</Country>
      </BillingAddress>
    </CreditCard>
    <ProviderReservationInfoRef ProviderReservationLevel="true"/>
  </FormOfPayment>
</AirTicketingModifiers></AirTicketingReq></env:Body></env:Envelope>
vivekjyotipramanik commented 7 years ago

Hi al13bash,

From the reservation response it looks like you have not used the AirPricingSolution in the AirCreateReservationReq. Please add the AirPricingSolution from the AirPriceRsp in the AirCreateReservationReq to store the fare. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

Here is the request I'm taking AirPricingSolution from the AirPriceRsp already

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://www.travelport.com/service/air_v38_0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<AirCreateReservationReq TargetBranch="P107780" xmlns="http://www.travelport.com/schema/universal_v38_0">
<BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v38_0" OriginApplication="uAPI"/>
<BookingTraveler xmlns="http://www.travelport.com/schema/common_v38_0" Key="0" TravelerType="ADT" Gender="M">
  <BookingTravelerName First="Mikhail" Last="Dyomin" Prefix="Mr"/>
  <PhoneNumber Number="375444622040"/>
</BookingTraveler>
<AirPricingSolution xmlns="http://www.travelport.com/schema/air_v38_0" Key="oI0ZMg3R2BKAde2MBAAAAA==">
  <AirSegment Key="oI0ZMg3R2BKAce2MBAAAAA==" FlightNumber="460" Group="0" ChangeOfPlane="false" ProviderCode="1P" Equipment="333" OptionalServicesIndicator="false" ClassOfService="E" Carrier="TK" Origin="KBP" DepartureTime="2016-11-07T21:15:00.000+02:00" ArrivalTime="2016-11-08T00:35:00.000+02:00" Destination="IST"/>
  <AirPricingInfo Key="oI0ZMg3R2BKAfe2MBAAAAA==" PricingMethod="Auto">
    <FareInfo Key="oI0ZMg3R2BKAke2MBAAAAA==" EffectiveDate="2016-11-02T12:20:18.424-04:00" FareBasis="QY2PXOW" PassengerTypeCode="ADT" Origin="KBP" Destination="IST">
      <FareRuleKey FareInfoRef="oI0ZMg3R2BKAke2MBAAAAA==" ProviderCode="1P">8XT9X3YaqeCBR/TA3GF0WJT0uXqfgTzljMQHAE/okyS8UEffzsXUhRnSQZXsrv1EA7b4abjsgR9WUA3T9wUsHYSCt98EjjMs</FareRuleKey>
    </FareInfo>
    <BookingInfo BookingCode="Q" FareInfoRef="oI0ZMg3R2BKAke2MBAAAAA=="/>
    <TaxInfo Category="UA" Amount="USD4.00"/>
    <TaxInfo Category="UD" Amount="USD2.00"/>
    <TaxInfo Category="YK" Amount="USD17.00"/>
    <TaxInfo Category="YR" Amount="USD47.00"/>
    <FareCalc>ADT IEV TK IST171.00NUC171.00END ROE1.00 TK</FareCalc>
    <PassengerType BookingTravelerRef="0" Code="ADT"/>
  </AirPricingInfo>
</AirPricingSolution><ActionStatus xmlns="http://www.travelport.com/schema/common_v38_0" ProviderCode="1P" Type="TAW" TicketDate="2016-11-02T19:20:00.000"/></AirCreateReservationReq></env:Body></env:Envelope>
vivekjyotipramanik commented 7 years ago

Hi al13bash,

Could you please confirm if you received any errors or warnings in the AirCreateReservationRsp. Please give it a try with the same request again and send me the latest response you are getting. Thanks.

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

No, everything was fine I've got these response just now

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body><universal:AirCreateReservationRsp TransactionId="25D7A9DB0A076478EA977962FD625ECD" ResponseTime="2396" xmlns:universal="http://www.travelport.com/schema/universal_v38_0" xmlns:common_v38_0="http://www.travelport.com/schema/common_v38_0" xmlns:air="http://www.travelport.com/schema/air_v38_0">
<common_v38_0:ResponseMessage Code="3301" Type="Warning" ProviderCode="1P">Segment sync error. Flight times returned from the carrier do not match the flight times requested.</common_v38_0:ResponseMessage>
<air:AirSolutionChangedInfo ReasonCode="Schedule">
<air:AirPricingSolution Key="1O+bMg4R2BKA0OFNBAAAAA==">
<air:AirSegment Key="1O+bMg4R2BKACPFNBAAAAA==" Group="0" Carrier="TK" FlightNumber="460" ProviderCode="1P" Origin="KBP" Destination="IST" DepartureTime="2016-11-07T21:15:00.000+02:00" ArrivalTime="2016-11-08T23:35:00.000+02:00" TravelTime="1580" Distance="656" ClassOfService="E" ETicketability="Yes" Status="SS" OptionalServicesIndicator="false">
<air:FlightDetails Key="1O+bMg4R2BKAEPFNBAAAAA==" Origin="KBP" Destination="IST" DepartureTime="2016-11-07T21:15:00.000+02:00" ArrivalTime="2016-11-08T00:35:00.000+02:00" FlightTime="140" TravelTime="140" Distance="656" Equipment="333" OriginTerminal="D" DestinationTerminal="I"/>
</air:AirSegment>
</air:AirPricingSolution>
</air:AirSolutionChangedInfo>
</universal:AirCreateReservationRsp></SOAP:Body></SOAP:Envelope>
vivekjyotipramanik commented 7 years ago

Hi al13bash,

Now I can see the AirPricingSolution coming in the response. But still there is an error in the response "Segment sync error. Flight times returned from the carrier do not match the flight times requested." which is causing the issue while storing the PricingInfo. Could you please try the complete flow with a different date and Market. Also, Please use RetainRservation="Both" just after TargetBranch in the booking xml req. Please let me know how it goes. Thanks.

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

What do you mean writting "Market"?

I've tried the complete flow with some other dates and segments. I'm still getting first AirCreateReservationRsp i've send here. Adding RetainReservation changed nothing.

al13bash commented 7 years ago

What for RetainReservation attribute is needed? I have no idea after reading docs: https://support.travelport.com/webhelp/uapi/uAPI.htm#../Subsystems/Schemas/Content/Schemas/AirCreateReservationReq.html

vivekjyotipramanik commented 7 years ago

Hi al13bash,

When I said Market I meant different origin and destination as well as different carriers/airlines. With RetainReservation="Both" you will be retaining both Price and Schedule while doing the reservation. Could you please send me the request and response after RetainReservation used in the AirCreateReservationReq. Thanks.

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

Request:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://www.travelport.com/service/air_v38_0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<AirCreateReservationReq RetainReservation="Both" TargetBranch="P107780" xmlns="http://www.travelport.com/schema/universal_v38_0">
<BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v38_0" OriginApplication="uAPI"/>
<BookingTraveler xmlns="http://www.travelport.com/schema/common_v38_0" Key="0" TravelerType="ADT" Gender="M">
  <BookingTravelerName First="Mikhail" Last="Dyomin" Prefix="Mr"/>
  <PhoneNumber Number="375444622040"/>
</BookingTraveler>
<AirPricingSolution xmlns="http://www.travelport.com/schema/air_v38_0" Key="oI0ZMg3R2BKAEODjBAAAAA==">
  <AirSegment Key="oI0ZMg3R2BKADODjBAAAAA==" FlightNumber="425" Group="0" ChangeOfPlane="false" ProviderCode="1P" Equipment="735" OptionalServicesIndicator="false" ClassOfService="E" Carrier="BT" Origin="SVO" DepartureTime="2016-11-13T10:25:00.000+03:00" ArrivalTime="2016-11-13T11:10:00.000+02:00" Destination="RIX"/>
  <AirPricingInfo Key="oI0ZMg3R2BKAGODjBAAAAA==" PricingMethod="Auto">
    <FareInfo Key="oI0ZMg3R2BKAKODjBAAAAA==" EffectiveDate="2016-11-03T13:29:50.032-04:00" FareBasis="AOPRM" PassengerTypeCode="ADT" Origin="SVO" Destination="RIX">
      <FareRuleKey FareInfoRef="oI0ZMg3R2BKAKODjBAAAAA==" ProviderCode="1P">K2eZZb/zMslaKE3uyQzVTReNfmstWxm/uuiv/hGpSsTBwU/yp7WCX4yL3fQCUU9Ka0SVK0v5KdHM595N80d6o2Zhag+VuWAQ</FareRuleKey>
    </FareInfo>
    <BookingInfo BookingCode="A" FareInfoRef="oI0ZMg3R2BKAKODjBAAAAA=="/>
    <TaxInfo Category="RI" Amount="USD10.10"/>
    <TaxInfo Category="UH" Amount="USD7.66"/>
    <TaxInfo Category="YQ" Amount="USD41.50"/>
    <FareCalc>ADT MOW BT RIX99.87NUC99.87END ROE.891079 BT</FareCalc>
    <PassengerType BookingTravelerRef="0" Code="ADT"/>
  </AirPricingInfo>
</AirPricingSolution>
<ActionStatus xmlns="http://www.travelport.com/schema/common_v38_0" ProviderCode="1P" Type="TAW" TicketDate="2016-11-03T20:30:00.000"/>
</AirCreateReservationReq></env:Body></env:Envelope>

Response:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<universal:AirCreateReservationRsp TransactionId="2B3E39B70A07643BEF437347F869D05C" ResponseTime="3227" xmlns:universal="http://www.travelport.com/schema/universal_v38_0" xmlns:common_v38_0="http://www.travelport.com/schema/common_v38_0" xmlns:air="http://www.travelport.com/schema/air_v38_0">
<universal:UniversalRecord LocatorCode="ZMWX8N" Version="0" Status="Active">
<common_v38_0:BookingTraveler Key="8//UMg7Q2BKAdinlBAAAAA==" TravelerType="ADT" Gender="M" ElStat="A">
<common_v38_0:BookingTravelerName Prefix="Mr" First="Mikhail" Last="Dyomin"/>
<common_v38_0:PhoneNumber Key="8//UMg7Q2BKAeinlBAAAAA==" Number="375444622040" ElStat="A">
<common_v38_0:ProviderReservationInfoRef Key="8//UMg7Q2BKAAmnlBAAAAA=="/>
</common_v38_0:PhoneNumber></common_v38_0:BookingTraveler>
<common_v38_0:ActionStatus Key="8//UMg7Q2BKAfinlBAAAAA==" Type="TAW" TicketDate="2016-11-03T00:00:00.000-04:00" QueueCategory="00" ProviderReservationInfoRef="8//UMg7Q2BKAAmnlBAAAAA==" ProviderCode="1P" ElStat="A">
<common_v38_0:Remark>03NOV</common_v38_0:Remark>
</common_v38_0:ActionStatus>
<universal:ProviderReservationInfo Key="8//UMg7Q2BKAAmnlBAAAAA==" ProviderCode="1P" LocatorCode="MB76HI" CreateDate="2016-11-03T17:30:51.537+00:00" ModifiedDate="2016-11-03T17:30:51.537+00:00" HostCreateDate="2016-11-03" OwningPCC="Z13" AgentOverride="RS"/>
<air:AirReservation LocatorCode="P65PYR" CreateDate="2016-11-03T17:30:51.276+00:00" ModifiedDate="2016-11-03T17:30:51.537+00:00">
<common_v38_0:BookingTravelerRef Key="8//UMg7Q2BKAdinlBAAAAA=="/>
<common_v38_0:ProviderReservationInfoRef Key="8//UMg7Q2BKAAmnlBAAAAA=="/>
<air:AirSegment Key="oI0ZMg3R2BKADODjBAAAAA==" Group="0" Carrier="BT" CabinClass="Economy" FlightNumber="425" ProviderCode="1P" Origin="SVO" Destination="RIX" DepartureTime="2016-11-13T10:25:00.000+03:00" ArrivalTime="2016-11-13T11:10:00.000+02:00" TravelTime="105" Distance="532" ClassOfService="E" ETicketability="Yes" Status="HK" ChangeOfPlane="false" ProviderReservationInfoRef="8//UMg7Q2BKAAmnlBAAAAA==" TravelOrder="1" OptionalServicesIndicator="false" ElStat="A">
<air:FlightDetails Key="8//UMg7Q2BKACmnlBAAAAA==" Origin="SVO" Destination="RIX" DepartureTime="2016-11-13T10:25:00.000+03:00" ArrivalTime="2016-11-13T11:10:00.000+02:00" FlightTime="105" TravelTime="105" Distance="532" Equipment="735" OriginTerminal="E" ElStat="A"/>
</air:AirSegment>
</air:AirReservation>
<common_v38_0:AgencyInfo>
<common_v38_0:AgentAction ActionType="Created" AgentCode="UAPI9026087784-EDD67337" BranchCode="P107780" AgencyCode="S31461" EventTime="2016-11-03T17:30:48.428+00:00"/>
</common_v38_0:AgencyInfo>
</universal:UniversalRecord>
</universal:AirCreateReservationRsp>
</SOAP:Body>
</SOAP:Envelope>
vivekjyotipramanik commented 7 years ago

Hi al13Bash,

The request is missing complete AirPriceingSolution and AirPriceInfo attributes details and that is the reason you are getting back blank AirPriceInfo. It is missing all the attributes. Please find below the sample request. The attributes will be there in the AirPriceRsp. Please let me know how it goes. Thanks.

<air:AirPricingInfo Key="ROnJngBAAA/B66m/wAAAAA==" TotalPrice="SGD439.20" BasePrice="AUD396.57" ApproximateTotalPrice="USD316.02" ApproximateBasePrice="USD302.92" EquivalentBasePrice="SGD421.00" ApproximateTaxes="USD13.10" Taxes="SGD18.20" LatestTicketingTime="2016-11-07T23:59:00.000-05:00" PricingMethod="Auto" ProviderCode="1P">

https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/004-03_1P_AirBook_Rq.xml

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

I guess nothing changed

Request:

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://www.travelport.com/service/air_v38_0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><AirCreateReservationReq RetainReservation="Both" TargetBranch="P107780" xmlns="http://www.travelport.com/schema/universal_v38_0"><BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v38_0" OriginApplication="uAPI"/><BookingTraveler xmlns="http://www.travelport.com/schema/common_v38_0" Key="0" TravelerType="ADT" Gender="M">
  <BookingTravelerName First="Mikhail" Last="Dyomin" Prefix="Mr"/>
  <PhoneNumber Number="375444622040"/>
</BookingTraveler><AirPricingSolution xmlns="http://www.travelport.com/schema/air_v38_0" Key="8//UMg7Q2BKA/N6mBAAAAA==">
  <AirSegment Key="8//UMg7Q2BKA+N6mBAAAAA==" FlightNumber="154" Group="0" ChangeOfPlane="false" ProviderCode="1P" Equipment="319" OptionalServicesIndicator="false" ClassOfService="E" Carrier="AY" Origin="SVO" DepartureTime="2016-11-13T12:50:00.000+03:00" ArrivalTime="2016-11-13T13:30:00.000+02:00" Destination="HEL"/>
  <AirPricingInfo Key="8//UMg7Q2BKABO6mBAAAAA==" PricingMethod="Auto" TotalPrice="USD257.63" BasePrice="EUR171.00" ApproximateTotalPrice="USD257.63" ApproximateBasePrice="USD192.00" EquivalentBasePrice="USD192.00" ApproximateTaxes="USD65.63" Taxes="USD65.63" LatestTicketingTime="2016-11-06T23:59:00.000-04:00" PlatingCarrier="AY" ProviderCode="1P">
    <FareInfo Key="8//UMg7Q2BKAFO6mBAAAAA==" EffectiveDate="2016-11-03T15:06:38.291-04:00" FareBasis="LVA0RU" PassengerTypeCode="ADT" Origin="SVO" Destination="HEL">
      <FareRuleKey FareInfoRef="8//UMg7Q2BKAFO6mBAAAAA==" ProviderCode="1P">4mhVjgUX3GOa/ih9HPxDv9sEib+vgqXASvWPnvuyEHG/EQllYXnqt4rfhlxSyX9Q8BYifgjckCsJHy6RKRkbpV7LQHjlnWwT</FareRuleKey>
    </FareInfo>
    <BookingInfo BookingCode="L" FareInfoRef="8//UMg7Q2BKAFO6mBAAAAA=="/>
    <TaxInfo Category="RI" Amount="USD15.27"/>
    <TaxInfo Category="UH" Amount="USD7.66"/>
    <TaxInfo Category="YR" Amount="USD42.70"/>
    <FareCalc>ADT MOW AY HEL191.90NUC191.90END ROE.891079 AY</FareCalc>
    <PassengerType BookingTravelerRef="0" Code="ADT"/>
  </AirPricingInfo>
</AirPricingSolution><ActionStatus xmlns="http://www.travelport.com/schema/common_v38_0" ProviderCode="1P" Type="TAW" TicketDate="2016-11-03T22:06:00.000"/></AirCreateReservationReq></env:Body></env:Envelope>

Response:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<universal:AirCreateReservationRsp TransactionId="2B960EED0A076478EA977962D2368357" ResponseTime="2762" xmlns:universal="http://www.travelport.com/schema/universal_v38_0" xmlns:common_v38_0="http://www.travelport.com/schema/common_v38_0" xmlns:air="http://www.travelport.com/schema/air_v38_0">
<universal:UniversalRecord LocatorCode="06SH2S" Version="0" Status="Active"><common_v38_0:BookingTraveler Key="1O+bMg4R2BKAKZymBAAAAA==" TravelerType="ADT" Gender="M" ElStat="A">
<common_v38_0:BookingTravelerName Prefix="Mr" First="Mikhail" Last="Dyomin"/>
<common_v38_0:PhoneNumber Key="1O+bMg4R2BKALZymBAAAAA==" Number="375444622040" ElStat="A">
<common_v38_0:ProviderReservationInfoRef Key="1O+bMg4R2BKARZymBAAAAA=="/>
</common_v38_0:PhoneNumber></common_v38_0:BookingTraveler>
<common_v38_0:ActionStatus Key="1O+bMg4R2BKAMZymBAAAAA==" Type="TAW" TicketDate="2016-11-03T00:00:00.000-04:00" QueueCategory="00" ProviderReservationInfoRef="1O+bMg4R2BKARZymBAAAAA==" ProviderCode="1P" ElStat="A">
<common_v38_0:Remark>03NOV</common_v38_0:Remark>
</common_v38_0:ActionStatus>
<universal:ProviderReservationInfo Key="1O+bMg4R2BKARZymBAAAAA==" ProviderCode="1P" LocatorCode="MB73L2" CreateDate="2016-11-03T19:06:47.375+00:00" ModifiedDate="2016-11-03T19:06:47.375+00:00" HostCreateDate="2016-11-03" OwningPCC="Z13" AgentOverride="RS"/>
<air:AirReservation LocatorCode="06WT33" CreateDate="2016-11-03T19:06:46.989+00:00" ModifiedDate="2016-11-03T19:06:47.375+00:00">
<common_v38_0:BookingTravelerRef Key="1O+bMg4R2BKAKZymBAAAAA=="/>
<common_v38_0:ProviderReservationInfoRef Key="1O+bMg4R2BKARZymBAAAAA=="/>
<air:AirSegment Key="8//UMg7Q2BKA+N6mBAAAAA==" Group="0" Carrier="AY" CabinClass="Economy" FlightNumber="154" ProviderCode="1P" Origin="SVO" Destination="HEL" DepartureTime="2016-11-13T12:50:00.000+03:00" ArrivalTime="2016-11-13T13:30:00.000+02:00" TravelTime="100" Distance="565" ClassOfService="E" ETicketability="Yes" Status="HK" ChangeOfPlane="false" ProviderReservationInfoRef="1O+bMg4R2BKARZymBAAAAA==" TravelOrder="1" OptionalServicesIndicator="false" ElStat="A">
<air:FlightDetails Key="1O+bMg4R2BKATZymBAAAAA==" Origin="SVO" Destination="HEL" DepartureTime="2016-11-13T12:50:00.000+03:00" ArrivalTime="2016-11-13T13:30:00.000+02:00" FlightTime="100" TravelTime="100" Distance="565" Equipment="319" OriginTerminal="D" DestinationTerminal="2" ElStat="A"/>
</air:AirSegment>
</air:AirReservation>
<common_v38_0:AgencyInfo><common_v38_0:AgentAction ActionType="Created" AgentCode="UAPI9026087784-EDD67337" BranchCode="P107780" AgencyCode="S31461" EventTime="2016-11-03T19:06:44.758+00:00"/>
</common_v38_0:AgencyInfo>
</universal:UniversalRecord>
</universal:AirCreateReservationRsp></SOAP:Body></SOAP:Envelope>
vivekjyotipramanik commented 7 years ago

Hi al13bash,

Now you are sending only AirPriceInfo, without AirPricingSolution. Please check the link. Please provide me the AirPriceRsp and I will create the correct request for you. Please let me know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/004-03_1P_AirBook_Rq.xml

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<air:AirPriceRsp TransactionId="2BC3BF280A0764777BAF8C1163E34A93" ResponseTime="2821" xmlns:air="http://www.travelport.com/schema/air_v38_0" xmlns:common_v38_0="http://www.travelport.com/schema/common_v38_0">
<common_v38_0:ResponseMessage Code="0" Type="Info" ProviderCode="1P">* BAGGAGE 1 BAG 20 KG FREE./NAME CHG EUR 50</common_v38_0:ResponseMessage>
<common_v38_0:ResponseMessage Code="0" Type="Info" ProviderCode="1P">* PRICING RULES VALIDATING CARRIER DEFAULT BT</common_v38_0:ResponseMessage>
<common_v38_0:ResponseMessage Code="0" Type="Info" ProviderCode="1P">** TICKETING FEES MAY APPLY</common_v38_0:ResponseMessage>
<common_v38_0:ResponseMessage Code="710401" Type="Warning" ProviderCode="1P">Taxes returned at the FareInfo level are for informational purposes only, and may differ from those returned at the Itinerary/Passenger Type levels.</common_v38_0:ResponseMessage>
<common_v38_0:ResponseMessage Code="4400" Type="Warning">No Merchandising optional services returned for Flight(s) [BT][425]</common_v38_0:ResponseMessage>
<air:AirItinerary>
<air:AirSegment Key="oI0ZMg3R2BKAVaAlBAAAAA==" Group="0" Carrier="BT" FlightNumber="425" ProviderCode="1P" Origin="SVO" Destination="RIX" DepartureTime="2016-11-13T10:25:00.000+03:00" ArrivalTime="2016-11-13T11:10:00.000+02:00" Equipment="735" ChangeOfPlane="false" OptionalServicesIndicator="false"/>
</air:AirItinerary>
<air:AirPriceResult>
<air:AirPricingSolution Key="oI0ZMg3R2BKAWaAlBAAAAA==" TotalPrice="USD159.26" BasePrice="EUR89.00" ApproximateTotalPrice="USD159.26" ApproximateBasePrice="USD100.00" EquivalentBasePrice="USD100.00" Taxes="USD59.26" ApproximateTaxes="USD59.26">
<air:AirSegmentRef Key="oI0ZMg3R2BKAVaAlBAAAAA=="/>
<air:AirPricingInfo Key="oI0ZMg3R2BKAYaAlBAAAAA==" TotalPrice="USD159.26" BasePrice="EUR89.00" ApproximateTotalPrice="USD159.26" ApproximateBasePrice="USD100.00" EquivalentBasePrice="USD100.00" ApproximateTaxes="USD59.26" Taxes="USD59.26" LatestTicketingTime="2016-11-05T23:59:00.000-04:00" PricingMethod="Auto" PlatingCarrier="BT" ProviderCode="1P">
<air:FareInfo Key="oI0ZMg3R2BKAcaAlBAAAAA==" FareBasis="AOPRM" PassengerTypeCode="ADT" Origin="SVO" Destination="RIX" EffectiveDate="2016-11-03T15:56:41.439-04:00" Amount="USD100.00" TaxAmount="USD59.26">
<air:FareRuleKey FareInfoRef="oI0ZMg3R2BKAcaAlBAAAAA==" ProviderCode="1P">K2eZZb/zMslaKE3uyQzVTReNfmstWxm/uuiv/hGpSsTBwU/yp7WCX4yL3fQCUU9Ka0SVK0v5KdHM595N80d6o2Zhag+VuWAQ</air:FareRuleKey>
</air:FareInfo>
<air:BookingInfo BookingCode="A" FareInfoRef="oI0ZMg3R2BKAcaAlBAAAAA==" SegmentRef="oI0ZMg3R2BKAVaAlBAAAAA==" HostTokenRef="oI0ZMg3R2BKAXaAlBAAAAA=="/>
<air:TaxInfo Category="RI" Amount="USD10.10" Key="oI0ZMg3R2BKAZaAlBAAAAA=="/>
<air:TaxInfo Category="UH" Amount="USD7.66" Key="oI0ZMg3R2BKAaaAlBAAAAA=="/>
<air:TaxInfo Category="YQ" Amount="USD41.50" Key="oI0ZMg3R2BKAbaAlBAAAAA=="/>
<air:FareCalc>ADT MOW BT RIX99.87NUC99.87END ROE.891079 BT</air:FareCalc>
<air:PassengerType Code="ADT"/>
<air:BaggageAllowances>
<air:BaggageAllowanceInfo TravelerType="ADT" Origin="SVO" Destination="RIX" Carrier="BT">
<air:URLInfo>
<air:URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSBT.BAGG</air:URL>
</air:URLInfo>
<air:TextInfo>
<air:Text>1P</air:Text>
<air:Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</air:Text>
</air:TextInfo>
<air:BagDetails ApplicableBags="1stChecked" BasePrice="EUR0.00" ApproximateBasePrice="USD0.00" TotalPrice="USD0.00" ApproximateTotalPrice="USD0.00">
<air:BaggageRestriction>
<air:TextInfo>
<air:Text>UPTO44LB/20KG</air:Text>
</air:TextInfo>
</air:BaggageRestriction>
</air:BagDetails>
<air:BagDetails ApplicableBags="2ndChecked">
<air:BaggageRestriction>
<air:TextInfo>
<air:Text>BAGGAGE CHARGES DATA NOT AVAILABLE</air:Text>
</air:TextInfo>
</air:BaggageRestriction>
</air:BagDetails>
</air:BaggageAllowanceInfo>
<air:CarryOnAllowanceInfo Origin="SVO" Destination="RIX" Carrier="BT">
<air:URLInfo/>
<air:TextInfo>
<air:Text>1P</air:Text>
</air:TextInfo>
<air:CarryOnDetails ApplicableCarryOnBags="1" BasePrice="EUR0.00" ApproximateBasePrice="USD0.00" TotalPrice="USD0.00" ApproximateTotalPrice="USD0.00">
<air:BaggageRestriction>
<air:TextInfo>
<air:Text>CARRYON HAND BAGGAGE ALLOWANCE</air:Text>
</air:TextInfo>
</air:BaggageRestriction>
</air:CarryOnDetails>
</air:CarryOnAllowanceInfo>
</air:BaggageAllowances>
</air:AirPricingInfo>
<air:FareNote Key="oI0ZMg3R2BKAeaAlBAAAAA==">ALL SEGMENTS MUST BE CONFIRMED</air:FareNote>
<air:FareNote Key="oI0ZMg3R2BKAfaAlBAAAAA==">* REBOOK  01/ A</air:FareNote>
<air:FareNote Key="oI0ZMg3R2BKAgaAlBAAAAA==">*CK SEGS BOOKED COMPLY WITH TKTG TL RULE</air:FareNote>
<common_v38_0:HostToken Key="oI0ZMg3R2BKAXaAlBAAAAA==">0073GFB1000F00020101ADT00  01AOPRM                                 0100010047GFB2000F000200010101NADTV302190020010000399</common_v38_0:HostToken>
</air:AirPricingSolution></air:AirPriceResult></air:AirPriceRsp></SOAP:Body></SOAP:Envelope>
vivekjyotipramanik commented 7 years ago

Hi al13bash,

Please find below the corrected AirCreateReservationReq. Please let me know how it goes. Thanks.

<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://www.travelport.com/service/air_v38_0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Body>
      <AirCreateReservationReq RetainReservation="Both" TargetBranch="P108036" xmlns="http://www.travelport.com/schema/universal_v38_0" xmlns:air="http://www.travelport.com/schema/air_v38_0" xmlns:common_v38_0="http://www.travelport.com/schema/common_v38_0">
         <BillingPointOfSaleInfo OriginApplication="uAPI" xmlns="http://www.travelport.com/schema/common_v38_0"/>
         <BookingTraveler Key="0" TravelerType="ADT" Gender="M" xmlns="http://www.travelport.com/schema/common_v38_0">
            <BookingTravelerName First="Mikhail" Last="Dyomin" Prefix="Mr"/>
            <PhoneNumber Number="375444622040"/>
         </BookingTraveler>
         <air:AirPricingSolution Key="oI0ZMg3R2BKAWaAlBAAAAA==" TotalPrice="USD159.26" BasePrice="EUR89.00" ApproximateTotalPrice="USD159.26" ApproximateBasePrice="USD100.00" EquivalentBasePrice="USD100.00" Taxes="USD59.26" ApproximateTaxes="USD59.26">
            <air:AirSegment Key="oI0ZMg3R2BKAVaAlBAAAAA==" FlightNumber="154" Group="0" ChangeOfPlane="false" ProviderCode="1P" Equipment="319" OptionalServicesIndicator="false" ClassOfService="E" Carrier="AY" Origin="SVO" DepartureTime="2016-11-13T12:50:00.000+03:00" ArrivalTime="2016-11-13T13:30:00.000+02:00" Destination="HEL"/>
            <air:AirPricingInfo Key="oI0ZMg3R2BKAYaAlBAAAAA==" TotalPrice="USD159.26" BasePrice="EUR89.00" ApproximateTotalPrice="USD159.26" ApproximateBasePrice="USD100.00" EquivalentBasePrice="USD100.00" ApproximateTaxes="USD59.26" Taxes="USD59.26" LatestTicketingTime="2016-11-05T23:59:00.000-04:00" PricingMethod="Auto" PlatingCarrier="BT" ProviderCode="1P">
               <air:FareInfo Key="oI0ZMg3R2BKAcaAlBAAAAA==" FareBasis="AOPRM" PassengerTypeCode="ADT" Origin="SVO" Destination="RIX" EffectiveDate="2016-11-03T15:56:41.439-04:00" Amount="USD100.00" TaxAmount="USD59.26">
                  <air:FareRuleKey FareInfoRef="oI0ZMg3R2BKAcaAlBAAAAA==" ProviderCode="1P">K2eZZb/zMslaKE3uyQzVTReNfmstWxm/uuiv/hGpSsTBwU/yp7WCX4yL3fQCUU9Ka0SVK0v5KdHM595N80d6o2Zhag+VuWAQ</air:FareRuleKey>
               </air:FareInfo>
               <air:BookingInfo BookingCode="A" FareInfoRef="oI0ZMg3R2BKAcaAlBAAAAA==" SegmentRef="oI0ZMg3R2BKAVaAlBAAAAA==" HostTokenRef="oI0ZMg3R2BKAXaAlBAAAAA=="/>
               <air:TaxInfo Category="RI" Amount="USD10.10" Key="oI0ZMg3R2BKAZaAlBAAAAA=="/>
               <air:TaxInfo Category="UH" Amount="USD7.66" Key="oI0ZMg3R2BKAaaAlBAAAAA=="/>
               <air:TaxInfo Category="YQ" Amount="USD41.50" Key="oI0ZMg3R2BKAbaAlBAAAAA=="/>
               <air:FareCalc>ADT MOW BT RIX99.87NUC99.87END ROE.891079 BT</air:FareCalc>
               <air:PassengerType Code="ADT"/>
               <air:BaggageAllowances>
                  <air:BaggageAllowanceInfo TravelerType="ADT" Origin="SVO" Destination="RIX" Carrier="BT">
                     <air:URLInfo>
                        <air:URL>MYTRIPANDMORE.COM/BAGGAGEDETAILSBT.BAGG</air:URL>
                     </air:URLInfo>
                     <air:TextInfo>
                        <air:Text>1P</air:Text>
                        <air:Text>BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC.</air:Text>
                     </air:TextInfo>
                     <air:BagDetails ApplicableBags="1stChecked" BasePrice="EUR0.00" ApproximateBasePrice="USD0.00" TotalPrice="USD0.00" ApproximateTotalPrice="USD0.00">
                        <air:BaggageRestriction>
                           <air:TextInfo>
                              <air:Text>UPTO44LB/20KG</air:Text>
                           </air:TextInfo>
                        </air:BaggageRestriction>
                     </air:BagDetails>
                     <air:BagDetails ApplicableBags="2ndChecked">
                        <air:BaggageRestriction>
                           <air:TextInfo>
                              <air:Text>BAGGAGE CHARGES DATA NOT AVAILABLE</air:Text>
                           </air:TextInfo>
                        </air:BaggageRestriction>
                     </air:BagDetails>
                  </air:BaggageAllowanceInfo>
                  <air:CarryOnAllowanceInfo Origin="SVO" Destination="RIX" Carrier="BT">
                     <air:URLInfo/>
                     <air:TextInfo>
                        <air:Text>1P</air:Text>
                     </air:TextInfo>
                     <air:CarryOnDetails ApplicableCarryOnBags="1" BasePrice="EUR0.00" ApproximateBasePrice="USD0.00" TotalPrice="USD0.00" ApproximateTotalPrice="USD0.00">
                        <air:BaggageRestriction>
                           <air:TextInfo>
                              <air:Text>CARRYON HAND BAGGAGE ALLOWANCE</air:Text>
                           </air:TextInfo>
                        </air:BaggageRestriction>
                     </air:CarryOnDetails>
                  </air:CarryOnAllowanceInfo>
               </air:BaggageAllowances>
            </air:AirPricingInfo>
            <air:FareNote Key="oI0ZMg3R2BKAeaAlBAAAAA==">ALL SEGMENTS MUST BE CONFIRMED</air:FareNote>
            <air:FareNote Key="oI0ZMg3R2BKAfaAlBAAAAA==">* REBOOK  01/ A</air:FareNote>
            <air:FareNote Key="oI0ZMg3R2BKAgaAlBAAAAA==">*CK SEGS BOOKED COMPLY WITH TKTG TL RULE</air:FareNote>
            <common_v38_0:HostToken Key="oI0ZMg3R2BKAXaAlBAAAAA==">0073GFB1000F00020101ADT00  01AOPRM                                 0100010047GFB2000F000200010101NADTV302190020010000399</common_v38_0:HostToken>
         </air:AirPricingSolution>
         <ActionStatus ProviderCode="1P" Type="TAW" TicketDate="2016-11-03T20:30:00.000" xmlns="http://www.travelport.com/schema/common_v38_0"/>
      </AirCreateReservationReq>
   </env:Body>
</env:Envelope>

Thanks & Regards Vivekjyoti Pramanik

al13bash commented 7 years ago

Thanks, now I have AirPricingInfo in the AirCreateReservationRsp and can send AirTicketingReq