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

Invalid provider specified; Request data is invalid #755

Closed ruthearle closed 4 years ago

ruthearle commented 4 years ago

Hello,

I am running into the following error when making an air reservation: Request:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:univ="http://www.travelport.com/schema/universal_v45_0" xmlns:com="http://www.travelport.com/schema/common_v45_0" xmlns:air="http://www.travelport.com/schema/air_v45_0">
    <soap:Header/>
    <soap:Body>
        <univ:AirCreateReservationReq TargetBranch="P7118380" TraceId="1fb48150-4919-4f7a-8b5a-4a85267410e3">
            <com:BillingPointOfSaleInfo OriginApplication="UAPI"/>
            <com:BookingTraveler>
                <com:BookingTravelerName First="Kenzo" Last="Dont"/>
                <com:PhoneNumber Number="020 3917 4777"/>
                <com:Email EmailID="ruth@salestrip.com"/>
                <com:SSR FreeText="P/US/DOE287BP/US/17JAN72/F/17JAN22/DONT/KENZO" Type="DOCS" Carrier="EI"/>
            </com:BookingTraveler>
            <com:FormOfPayment Type="Credit">
                <com:CreditCard Number="4000000000000002" Type="MC" Name="Janet Doe" ExpDate="2025-12" CVV="123">
                    <com:PhoneNumber Number="02088026862"/>
                </com:CreditCard>
            </com:FormOfPayment>
            <air:AirPricingSolution Key="Zcz0hC8Q2BKAyaJlBAAAAA==" TotalPrice="GBP139.15" BasePrice="GBP46.00" ApproximateTotalPrice="GBP139.15" ApproximateBasePrice="GBP46.00" ApproximateTaxes="GBP93.15" Taxes="GBP93.15" Fees="GBP0.00" QuoteDate="2020-03-05">
                <air:AirSegment ArrivalTime="2020-08-18T14:55:00.000+01:00" Carrier="EI" DepartureTime="2020-08-18T13:30:00.000+01:00" Destination="DUB" FlightNumber="285" Group="0" Key="Zcz0hC8Q2BKAuaJlBAAAAA==" Origin="LCY" ProviderCode="1G" FlightTime="85" TravelTime="85" Distance="293" ClassOfService="A" Equipment="AR8" ChangeOfPlane="false" OptionalServicesIndicator="false" ParticipantLevel="Secure Sell" LinkAvailability="true">
                    <air:CodeshareInfo OperatingCarrier="EI">Aer Lingus P.L.C.</air:CodeshareInfo>
                    <air:AirAvailInfo ProviderCode="1G"/>
                    <air:FlightDetails Key="Zcz0hC8Q2BKAvaJlBAAAAA==" Origin="LCY" Destination="DUB" DepartureTime="2020-08-18T13:30:00.000+01:00" ArrivalTime="2020-08-18T14:55:00.000+01:00" FlightTime="85" TravelTime="85"/>
                </air:AirSegment>
                <air:AirSegment ArrivalTime="2020-08-24T17:15:00.000+01:00" Carrier="EI" DepartureTime="2020-08-24T15:30:00.000+01:00" Destination="LCY" FlightNumber="288" Group="1" Key="Zcz0hC8Q2BKAwaJlBAAAAA==" Origin="DUB" ProviderCode="1G" FlightTime="105" TravelTime="105" Distance="293" ClassOfService="A" Equipment="AR8" ChangeOfPlane="false" OptionalServicesIndicator="false" ParticipantLevel="Secure Sell" LinkAvailability="true">
                <air:CodeshareInfo OperatingCarrier="EI">Aer Lingus P.L.C.</air:CodeshareInfo>
                <air:AirAvailInfo ProviderCode="1G"/>
                <air:FlightDetails Key="Zcz0hC8Q2BKAxaJlBAAAAA==" Origin="DUB" Destination="LCY" DepartureTime="2020-08-24T15:30:00.000+01:00" ArrivalTime="2020-08-24T17:15:00.000+01:00" FlightTime="105" TravelTime="105"/>
                </air:AirSegment>
                <air:AirPricingInfo ProviderCode="1G" Key="Zcz0hC8Q2BKA1aJlBAAAAA==" PricingMethod="Guaranteed" TotalPrice="GBP139.15" BasePrice="GBP46.00" ApproximateTotalPrice="GBP139.15" ApproximateBasePrice="GBP46.00" Taxes="GBP93.15">
                    <air:FareInfo Key="Zcz0hC8Q2BKA7aJlBAAAAA==" EffectiveDate="2020-03-05T16:09:00.000+00:00" FareBasis="AUK26GDS" Origin="LCY" Destination="DUB" PassengerTypeCode="ADT"></air:FareInfo>
                    <air:FareInfo Key="Zcz0hC8Q2BKA8aJlBAAAAA==" EffectiveDate="2020-03-05T16:09:00.000+00:00" FareBasis="AUK26GDS" Origin="DUB" Destination="LCY" PassengerTypeCode="ADT"></air:FareInfo>
                    <air:BookingInfo BookingCode="A" CabinClass="Economy" FareInfoRef="Zcz0hC8Q2BKA7aJlBAAAAA==" HostTokenRef="Zcz0hC8Q2BKAzaJlBAAAAA==" SegmentRef="Zcz0hC8Q2BKAuaJlBAAAAA=="/>
                    <air:BookingInfo BookingCode="A" CabinClass="Economy" FareInfoRef="Zcz0hC8Q2BKA8aJlBAAAAA==" HostTokenRef="Zcz0hC8Q2BKA0aJlBAAAAA==" SegmentRef="Zcz0hC8Q2BKAwaJlBAAAAA=="/>
                    <air:PassengerType Code="ADT"/>
                </air:AirPricingInfo>
                <com:HostToken Key="Zcz0hC8Q2BKAzaJlBAAAAA==">GFB10101ADT00  01AUK26GDS                              010001#GFB200010101NADTV3021760A0010000299#GFMCSIP021N760A EI ADTAUK26GDS</com:HostToken>
                <com:HostToken Key="Zcz0hC8Q2BKA0aJlBAAAAA==">GFB10101ADT00  02AUK26GDS                              010002#GFB200010102NADTV3021760A0010000299#GFMCSIP021N760A EI ADTAUK26GDS</com:HostToken>
            </air:AirPricingSolution>
            <com:ActionStatus ProviderCode="1G" TicketDate="2020-03-05T16:24:17+00:00" Type="TAW"/>
        </univ:AirCreateReservationReq>
    </soap:Body>
</soap:Envelope>

Response:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP:Body><SOAP:Fault><faultcode>Server.Data</faultcode><faultstring>Invalid provider specified.</faultstring><detail><common_v45_0:ErrorInfo xmlns:common_v45_0="http://www.travelport.com/schema/common_v45_0"><common_v45_0:Code>3003</common_v45_0:Code><common_v45_0:Service>WEBSVC</common_v45_0:Service><common_v45_0:Type>Data</common_v45_0:Type><common_v45_0:Description>Request data is invalid.</common_v45_0:Description><common_v45_0:TransactionId>AB7555930A07643B6BD5AB6563D59258</common_v45_0:TransactionId><common_v45_0:TraceId>1fb48150-4919-4f7a-8b5a-4a85267410e3</common_v45_0:TraceId></common_v45_0:ErrorInfo></detail></SOAP:Fault></SOAP:Body></SOAP:Envelope>

I have compared this to another reservation payload and cannot see where the problem may lay.

For completeness, here is the pricing payload: Request:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP:Body><air:AirPriceRsp TraceId="1fb48150-4919-4f7a-8b5a-4a85267410e3" TransactionId="AB75291F0A07643CCB6A47E019D370F0" ResponseTime="2187" xmlns:air="http://www.travelport.com/schema/air_v45_0" xmlns:common_v45_0="http://www.travelport.com/schema/common_v45_0"><common_v45_0:ResponseMessage Code="710401" Type="Warning" ProviderCode="1G">Taxes returned at the FareInfo level are for informational purposes only, and may differ from those returned at the Itinerary/Passenger Type levels.</common_v45_0:ResponseMessage><common_v45_0:ResponseMessage Code="4033" Type="Warning" ProviderCode="1G">Requested PermittedCabins are ignored during pricing in requested ClassOfService.</common_v45_0:ResponseMessage><common_v45_0:ResponseMessage Code="4400" Type="Warning" ProviderCode="1G">No Merchandising optional services returned for Flight(s) [EI][285]</common_v45_0:ResponseMessage><common_v45_0:ResponseMessage Code="4400" Type="Warning" ProviderCode="1G">No Merchandising optional services returned for Flight(s) [EI][288]</common_v45_0:ResponseMessage><air:AirItinerary><air:AirSegment Key="Zcz0hC8Q2BKAuaJlBAAAAA==" Group="0" Carrier="EI" FlightNumber="285" ProviderCode="1G" Origin="LCY" Destination="DUB" DepartureTime="2020-08-18T13:30:00.000+01:00" ArrivalTime="2020-08-18T14:55:00.000+01:00" FlightTime="85" TravelTime="85" Distance="293" ClassOfService="A" Equipment="AR8" ChangeOfPlane="false" OptionalServicesIndicator="false" ParticipantLevel="Secure Sell" LinkAvailability="true" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked"><air:CodeshareInfo OperatingCarrier="EI">Aer Lingus P.L.C.</air:CodeshareInfo><air:AirAvailInfo ProviderCode="1G"/><air:FlightDetails Key="Zcz0hC8Q2BKAvaJlBAAAAA==" Origin="LCY" Destination="DUB" DepartureTime="2020-08-18T13:30:00.000+01:00" ArrivalTime="2020-08-18T14:55:00.000+01:00" FlightTime="85" TravelTime="85" Equipment="AR8" DestinationTerminal="2" AutomatedCheckin="false"><air:Meals>Meal</air:Meals><air:InFlightServices>Non-smoking</air:InFlightServices></air:FlightDetails></air:AirSegment><air:AirSegment Key="Zcz0hC8Q2BKAwaJlBAAAAA==" Group="1" Carrier="EI" FlightNumber="288" ProviderCode="1G" Origin="DUB" Destination="LCY" DepartureTime="2020-08-24T15:30:00.000+01:00" ArrivalTime="2020-08-24T17:15:00.000+01:00" FlightTime="105" TravelTime="105" Distance="293" ClassOfService="A" Equipment="AR8" ChangeOfPlane="false" OptionalServicesIndicator="false" ParticipantLevel="Secure Sell" LinkAvailability="true" AvailabilityDisplayType="Fare Specific Fare Quote Unbooked"><air:CodeshareInfo OperatingCarrier="EI">Aer Lingus P.L.C.</air:CodeshareInfo><air:AirAvailInfo ProviderCode="1G"/><air:FlightDetails Key="Zcz0hC8Q2BKAxaJlBAAAAA==" Origin="DUB" Destination="LCY" DepartureTime="2020-08-24T15:30:00.000+01:00" ArrivalTime="2020-08-24T17:15:00.000+01:00" FlightTime="105" TravelTime="105" Equipment="AR8" OriginTerminal="2" AutomatedCheckin="false"><air:Meals>Meal</air:Meals><air:InFlightServices>Non-smoking</air:InFlightServices></air:FlightDetails></air:AirSegment></air:AirItinerary><air:AirPriceResult><air:AirPricingSolution Key="Zcz0hC8Q2BKAyaJlBAAAAA==" TotalPrice="GBP139.15" BasePrice="GBP46.00" ApproximateTotalPrice="GBP139.15" ApproximateBasePrice="GBP46.00" Taxes="GBP93.15" Fees="GBP0.00" ApproximateTaxes="GBP93.15" QuoteDate="2020-03-05"><air:AirSegmentRef Key="Zcz0hC8Q2BKAuaJlBAAAAA=="/><air:AirSegmentRef Key="Zcz0hC8Q2BKAwaJlBAAAAA=="/><air:AirPricingInfo Key="Zcz0hC8Q2BKA1aJlBAAAAA==" TotalPrice="GBP139.15" BasePrice="GBP46.00" ApproximateTotalPrice="GBP139.15" ApproximateBasePrice="GBP46.00" ApproximateTaxes="GBP93.15" Taxes="GBP93.15" LatestTicketingTime="2020-03-06T16:09:00.000+00:00" PricingMethod="Guaranteed" IncludesVAT="false" ETicketability="Yes" ProviderCode="1G"><air:FareInfo Key="Zcz0hC8Q2BKA7aJlBAAAAA==" FareBasis="AUK26GDS" PassengerTypeCode="ADT" Origin="LCY" Destination="DUB" EffectiveDate="2020-03-05T16:09:00.000+00:00" DepartureDate="2020-08-18" Amount="GBP23.00" NotValidBefore="2020-08-18" NotValidAfter="2020-08-18" TaxAmount="GBP61.35"><air:FareRuleKey FareInfoRef="Zcz0hC8Q2BKA7aJlBAAAAA==" ProviderCode="1G">6UUVoSldxwi9KRkymhYCM8bKj3F8T9EyxsqPcXxP0TLGyo9xfE/RMsuWFfXVd1OAly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovAz5NrDQfdAqW4bHmxr88+l3zd/VTAJtvZZ175ROw3MZ4Bu4q9wiVfVZ+CeOefa9UvManT7KB5fViIVUK6QkIvjcSf/LUFLuwczvQIlbeGa6Ahf6E18cRejF6+WRr8tqYPEU0x4SJcjhtdjLIDKqoLaNW8vSBNa8ZUmwC02UUzMsnKq7Q/dq4Mnb05ftYsD07Jo5vh8oQG7k9v4Xvb2u1Qx+/he9va7VDH7+F729rtUMfv4Xvb2u1Qx+/he9va7VDHzQapDbCAMr/TUGWlPDKj6v0aMBFljDuP9NE5OQYAbQxmQAWRDUl/8UQXzA28G3CD57+L498aQWP5W4bRuwrrPA=</air:FareRuleKey></air:FareInfo><air:FareInfo Key="Zcz0hC8Q2BKA8aJlBAAAAA==" FareBasis="AUK26GDS" PassengerTypeCode="ADT" Origin="DUB" Destination="LCY" EffectiveDate="2020-03-05T16:09:00.000+00:00" DepartureDate="2020-08-24" Amount="GBP23.00" NotValidBefore="2020-08-24" NotValidAfter="2020-08-24" TaxAmount="GBP31.80"><air:FareRuleKey FareInfoRef="Zcz0hC8Q2BKA8aJlBAAAAA==" ProviderCode="1G">6UUVoSldxwi9KRkymhYCM8bKj3F8T9EyxsqPcXxP0TLGyo9xfE/RMsuWFfXVd1OAly5qxZ3qLwOXLmrFneovA5cuasWd6i8Dly5qxZ3qLwOXLmrFneovAz5NrDQfdAqW4bHmxr88+l3zd/VTAJtvZRVzBtrZLShm6oYEP0XNzW9+CeOefa9UvManT7KB5fViIVUK6QkIvjcJASdl7n5t/zvQIlbeGa6Ahf6E18cRejF6+WRr8tqYPEU0x4SJcjhtdjLIDKqoLaNW8vSBNa8ZUmnWyFpl55B9ZaRRtz08FIBsGssmRhg1fo5vh8oQG7k9v4Xvb2u1Qx+/he9va7VDH7+F729rtUMfv4Xvb2u1Qx+/he9va7VDHzQapDbCAMr/TUGWlPDKj6v0aMBFljDuP9NE5OQYAbQxmQAWRDUl/8UQXzA28G3CD57+L498aQWP5W4bRuwrrPA=</air:FareRuleKey></air:FareInfo><air:BookingInfo BookingCode="A" CabinClass="Economy" FareInfoRef="Zcz0hC8Q2BKA7aJlBAAAAA==" SegmentRef="Zcz0hC8Q2BKAuaJlBAAAAA==" HostTokenRef="Zcz0hC8Q2BKAzaJlBAAAAA=="/><air:BookingInfo BookingCode="A" CabinClass="Economy" FareInfoRef="Zcz0hC8Q2BKA8aJlBAAAAA==" SegmentRef="Zcz0hC8Q2BKAwaJlBAAAAA==" HostTokenRef="Zcz0hC8Q2BKA0aJlBAAAAA=="/><air:TaxInfo Category="GB" Amount="GBP13.00" Key="Zcz0hC8Q2BKA2aJlBAAAAA=="/><air:TaxInfo Category="UB" Amount="GBP36.47" Key="Zcz0hC8Q2BKA3aJlBAAAAA=="/><air:TaxInfo Category="UP" Amount="GBP14.50" Key="Zcz0hC8Q2BKA4aJlBAAAAA=="/><air:TaxInfo Category="YQ" Amount="GBP27.18" Key="Zcz0hC8Q2BKA5aJlBAAAAA=="/><air:TaxInfo Category="YR" Amount="GBP2.00" Key="Zcz0hC8Q2BKA6aJlBAAAAA=="/><air:FareCalc>LON EI DUB 30.14AUK26GDS EI LON 30.14AUK26GDS NUC60.28END ROE0.762984</air:FareCalc><air:PassengerType Code="ADT"/><air:ChangePenalty PenaltyApplies="Anytime"><air:Amount>GBP40.00</air:Amount></air:ChangePenalty><air:CancelPenalty PenaltyApplies="Anytime"><air:Percentage>100.00</air:Percentage></air:CancelPenalty><air:BaggageAllowances><air:BaggageAllowanceInfo TravelerType="ADT" Origin="LON" Destination="DUB" Carrier="EI"><air:URLInfo><air:URL>VIEWTRIP.TRAVELPORT.COM/BAGGAGEPOLICY/EI</air:URL></air:URLInfo><air:TextInfo><air:Text>20K</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"><air:BaggageRestriction><air:TextInfo><air:Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</air:Text></air:TextInfo></air:BaggageRestriction></air:BagDetails><air:BagDetails ApplicableBags="2ndChecked"><air:BaggageRestriction><air:TextInfo><air:Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</air:Text></air:TextInfo></air:BaggageRestriction></air:BagDetails></air:BaggageAllowanceInfo><air:BaggageAllowanceInfo TravelerType="ADT" Origin="DUB" Destination="LON" Carrier="EI"><air:URLInfo><air:URL>VIEWTRIP.TRAVELPORT.COM/BAGGAGEPOLICY/EI</air:URL></air:URLInfo><air:TextInfo><air:Text>20K</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"><air:BaggageRestriction><air:TextInfo><air:Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</air:Text></air:TextInfo></air:BaggageRestriction></air:BagDetails><air:BagDetails ApplicableBags="2ndChecked"><air:BaggageRestriction><air:TextInfo><air:Text>CHGS MAY APPLY IF BAGS EXCEED TTL WT ALLOWANCE</air:Text></air:TextInfo></air:BaggageRestriction></air:BagDetails></air:BaggageAllowanceInfo><air:CarryOnAllowanceInfo Origin="LON" Destination="DUB" Carrier="EI"><air:TextInfo><air:Text>2P</air:Text></air:TextInfo><air:CarryOnDetails ApplicableCarryOnBags="1" BasePrice="GBP0.00" ApproximateBasePrice="GBP0.00" TotalPrice="GBP0.00" ApproximateTotalPrice="GBP0.00"><air:BaggageRestriction><air:TextInfo><air:Text>UPTO22LB/10KG AND UPTO45LI/115LCM</air:Text></air:TextInfo></air:BaggageRestriction></air:CarryOnDetails><air:CarryOnDetails ApplicableCarryOnBags="2" BasePrice="USD0.00" TotalPrice="USD0.00"><air:BaggageRestriction><air:TextInfo><air:Text>CARRYON HAND BAGGAGE ALLOWANCE</air:Text></air:TextInfo></air:BaggageRestriction></air:CarryOnDetails></air:CarryOnAllowanceInfo><air:CarryOnAllowanceInfo Origin="DUB" Destination="LON" Carrier="EI"><air:TextInfo><air:Text>2P</air:Text></air:TextInfo><air:CarryOnDetails ApplicableCarryOnBags="1" BasePrice="EUR0.00" TotalPrice="EUR0.00"><air:BaggageRestriction><air:TextInfo><air:Text>UPTO22LB/10KG AND UPTO45LI/115LCM</air:Text></air:TextInfo></air:BaggageRestriction></air:CarryOnDetails><air:CarryOnDetails ApplicableCarryOnBags="2" BasePrice="USD0.00" TotalPrice="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="Zcz0hC8Q2BKA/aJlBAAAAA==">SUM IDENTIFIED AS UB IS A PASSENGER SERVICE CHARGE</air:FareNote><air:FareNote Key="Zcz0hC8Q2BKAAbJlBAAAAA==">TICKETING WITHIN 24 HOURS AFTER RESERVATION</air:FareNote><air:FareNote Key="Zcz0hC8Q2BKABbJlBAAAAA==">LAST DATE TO PURCHASE TICKET: 06MAR20 / 1609 LON</air:FareNote><air:FareNote Key="Zcz0hC8Q2BKACbJlBAAAAA==">E-TKT REQUIRED</air:FareNote><air:FareNote Key="Zcz0hC8Q2BKADbJlBAAAAA==">TICKETING FEES MAY APPLY</air:FareNote><common_v45_0:HostToken Key="Zcz0hC8Q2BKAzaJlBAAAAA==">GFB10101ADT00  01AUK26GDS                              010001#GFB200010101NADTV3021760A0010000299#GFMCSIP021N760A EI ADTAUK26GDS</common_v45_0:HostToken><common_v45_0:HostToken Key="Zcz0hC8Q2BKA0aJlBAAAAA==">GFB10101ADT00  02AUK26GDS                              010002#GFB200010102NADTV3021760A0010000299#GFMCSIP021N760A EI ADTAUK26GDS</common_v45_0:HostToken></air:AirPricingSolution></air:AirPriceResult></air:AirPriceRsp></SOAP:Body></SOAP:Envelope>

Thank you.

vivekjyotipramanik commented 4 years ago

Hi ruthearle,

Are you facing this issue with all reservation requests or this particular one. I am not seeing any issues with the request as well. Could you please try with a different one. Thanks.

ruthearle commented 4 years ago

Hi vivekjyotipramanik,

Thanks for your quick reply.

I have just tried another payload and I am getting the same error back. So, to answer, yes I am getting the error with other reservation requests.

Any idea what could be causing this? Should I open a support ticket with My Travelport?

All the best,

Ruth

vivekjyotipramanik commented 4 years ago

Hi ruthearle,

Could you please confirm , the UAPI credentials you are using is valid for 1G. Also please confirm if you are using trial credential. Thanks.

ruthearle commented 4 years ago

We are not using trial credentials. Username: [REDACTED] This is our pre-prod user credentials.

vivekjyotipramanik commented 4 years ago

Hi ruthearle,

Could you please check the email you received with the trial credentials, it should specify the Provider as well either 1G, 1V or 1P. Thanks.

ruthearle commented 4 years ago

Actually, We have a bug in our code. The target branch is incorrect. It is using our 1V target branch NOT 1G. Thanks vivekjyotipramanik!!!