Travelport / travelport-uapi-tutorial-c-sharp

The travelport-uapi-tutorial-c-sharp is a C# project for Universal API that will help you connect and code a standard Air availablity call and Hotel search, details, and booking flow.
35 stars 30 forks source link

General Air Service Error #222

Open salmanelahi93 opened 3 years ago

salmanelahi93 commented 3 years ago

Im receiving following exception while booking a flight.

General air service Error.

Please find the req xml 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="42201-5464346-4" TravelerType="ADT" DOB="2020-08-11" xmlns="http://www.travelport.com/schema/common_v49_0">
    <BookingTravelerName Prefix="Mr" First="SARFARAZ" Last="KHAN" />
    <PhoneNumber CountryCode="" Number="03432244666" />
    <Email EmailID="salman@gmail.com" />
  </BookingTraveler>
  <AirPricingSolution xmlns="http://www.travelport.com/schema/air_v49_0">
    <AirSegment Key="qbIEfkkxnDKArHZ1tHAAAA==" Group="0" Carrier="EY" FlightNumber="222" Origin="KHI" Destination="AUH" DepartureTime="2022-01-13T05:05:00.000" ArrivalTime="2022-01-13T06:35:00.000" ClassOfService="E" />
    <AirSegment Key="qbIEfkkxnDKAtHZ1tHAAAA==" Group="0" Carrier="EY" FlightNumber="19" Origin="AUH" Destination="LHR" DepartureTime="2022-01-13T08:05:00.000" ArrivalTime="2022-01-13T12:00:00.000" ClassOfService="E" />
    <AirPricingInfo PricingMethod="Auto" PlatingCarrier="EY" Key="qbIEfkkxnDKAwHZ1tHAAAA==">
      <FareInfo EffectiveDate="2021-05-05T12:59:00.000+05:00" Destination="LHR" Origin="KHI" PassengerTypeCode="ADT" FareBasis="EV1PK" Key="qbIEfkkxnDKA2HZ1tHAAAA==" />
      <BookingInfo BookingCode="E" FareInfoRef="qbIEfkkxnDKA2HZ1tHAAAA==" />
      <BookingInfo BookingCode="E" FareInfoRef="qbIEfkkxnDKA2HZ1tHAAAA==" />
      <PassengerType Code="ADT" BookingTravelerRef="42201-5464346-4" />
    </AirPricingInfo>
  </AirPricingSolution>
  <ActionStatus Type="TAW" TicketDate="2021-05-05T13:01:04.553+05:00" ProviderCode="1G" xmlns="http://www.travelport.com/schema/common_v49_0" />
</AirCreateReservationReq> 
RicOsiro commented 3 years ago

hi,

many required data are not in the request. The AirPricingSolution are missing many attributes and other children elements, there are only one FareInfo. Please, compare the AirPricingSolution on this request to AirPricingSolution of AirPrice response, it not necessary to be the same, but it is very similar and many attributes comes from AirPrice response.