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

GetPNR :- Error : The reservation '030S68' has no tickets yet #559

Open viveksingh111 opened 6 years ago

viveksingh111 commented 6 years ago

Hello @NirandaG @vivekjyotipramanik ,

When i try to get PNR then it return this error please revert as soon as possible

Request is <?xml version="1.0" encoding="utf-16"?><AirRetrieveDocumentReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TraceId="doesntmatter-8176" AuthorizedBy="USER" TargetBranch="P7009857" ProviderCode="1G"><BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v40_0" /><AirReservationLocatorCode xmlns="http://www.travelport.com/schema/air_v40_0">030SE0</AirReservationLocatorCode></AirRetrieveDocumentReq>

Regards. Vivek

vivekjyotipramanik commented 6 years ago

Hi viveksingh111,

This request will only work if the reservation have been ticketed. Could you please confirm if you ticketed the reservation. Thanks.

viveksingh111 commented 6 years ago

Hi @vivekjyotipramanik ,

I am using this trial credentials for getting pnr through your demo application.

Universal API User ID:  Universal API/uAPI6277943435-b1539aaa Universal API Password:  XXXXXXXXXXX Branch Code (TargetBranch) for ProviderName (ProviderCode):  Branch Code for Galileo (1G): P7009857

But I am not able to get pnr please help how can i get pnr.

Regards. Vivek

vivekjyotipramanik commented 6 years ago

Hi viveksingh111,

The PNR gets generated in the AirCreateReservationRsp and the PNR is the Locator Code inside ProviderReservationInfo element in the AirCreateReservationRsp. Please find below the sample response and the PNR for the response. Thanks.

view-source:https://support.travelport.com/webhelp/uapi/Content/SampleWeb/SampleFiles/001-03_1G_AirBook_Rs.xml

<universal:ProviderReservationInfo CreateDate="2015-08-13T10:06:53.850+00:00" HostCreateDate="2015-08-13" Key="htrfNpmQSl+yzgl3hrAgHw==" LocatorCode="BQ3MTG" ModifiedDate="2015-08-13T10:06:53.850+00:00" OwningPCC="5X19" ProviderCode="1G"/>