Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

Repricing a booked flight #251

Open MasoodRehman opened 4 years ago

MasoodRehman commented 4 years ago

I am doing Repricing a booked flight by following the steps mentioned in the below link. https://support.travelport.com/webhelp/uapi/Content/Booking/Modify/Modifying_Air_Bookings.htm#StorePrice

At AirPriceReq I am getting the following response

{
    "ResponseStatus": "fail",
    "ResponseMessage": "INVALID ENTRY-PRICE ALREADY EXISTS FOR FOLLOWING SEGMENTS/PTCS\n"
}

Yes, I know the AirPricingInfo already exists but that data no more valid after adding the second segment in AirReservation.

Before doing AirPriceReq, I had followed the below step for creating and modifying the AirReservation.

Created an AirReservation form (LHE -> KHI) by AirCreatReservationReq and then add another segment (KHI -> ISB) by UniversalCommand AirAdd. In AirAdd response I got a warning message (The reservation returned by the host changed. The segment information is now updated and the pricing data has not changed.) which is a valid message and PricingMethod in AirPricingInfo element become Reprice and PricingType remain StoredFare.

Note: I tried to drop the AirPricingInfo so I can get success response from AirPriceReq but upon dropping got fail response with a message (00000 INVALID TR NUMBER)

@vivekjyotipramanik

Thanks

vivekjyotipramanik commented 4 years ago

Hi MasoodRehman,

Please share the full flow xml request and responses to analyze the issue. Thanks.

RDGray commented 1 year ago

Hi @MasoodRehman,

Did you found a solution to this problem ? Trying to figure out this issue too.