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

Travelport get Ticket Api Details #340

Open Sapanesh opened 7 years ago

Sapanesh commented 7 years ago

Hi,

We are dong with booking flow(Flight and Hotel)..but Now we need to show tickets to user. what will be best approach.What api we will use to get ticket status .and travelport also keep history of tickets or we need to save all ticket ticket in our db

Thanks

vivekjyotipramanik commented 7 years ago

Hi Sapnesh,

We can use AirRetrieveDocumentReq to display the ticket information. Please find below the links with complete details. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Air_Ticketing/Displaying_Ticket_Information.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7CAir%2520Ticketing%2520(Document%2520Production)%7C_____2

https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Air_Ticketing/Air_Ticketing.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7CAir%2520Ticketing%2520(Document%2520Production)%7C_____0

Sapanesh commented 7 years ago

Hi @vivekjyotipramanik ,

Thanks For reply This is for air Reservation-> https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Air_Ticketing/Displaying_Ticket_Information.htm%3FTocPath%3DAir%7CAir%2520Shopping%2520and%2520Booking%7CAir%2520Ticketing%2520(Document%2520Production)%7C_____2

but What about Hotel How we get Hotel Booking Detail

Thanks

vivekjyotipramanik commented 7 years ago

Hi Sapanesh,

There is no ticket for Hotel. To see Hotel Reservation we, can use the UniversalRecordRetrieve to see the Hotel Reservation details after booking. Please find below the sample flow. Please let us know how it goes. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#SampleWeb/Individual_Sample_Pages/007-1G_Hotel_MinimumData.htm%3FTocPath%3DHotel%7CHotel%2520Samples%7CHotel%2520Workflows%7CGalileo%2520(1G)%2520Workflows%7C_____1

RajshreeTathe commented 6 years ago

Hi Vivek,

I have integrated hotel detail api but didn't get response. It returns me "Property not available in vendor database" . I have tried for more other properties but getting same response.

Kindly help.

Thanks, Rajshree.

vivekjyotipramanik commented 6 years ago

Hi RajshreeTathe,

Could you please share the request xml you are using. Please try dates at least 30-60 days from today's date. Thanks.

RajshreeTathe commented 6 years ago

Hi Vivek,

Please find the xml request, I also tried with dates which is greater than 30 to 60 days from today's date.

2018-05-12 2018-05-22 Also tried for below property 2018-05-12 2018-05-22 I am getting string(672) "Server.Business0101046 INVALID PROPERTY CODE $TT$5420HTLSVCBusinessINVALID PROPERTY NUMBERB9D504F60A07643B16CB05020254825B" this error. Kindly assist. Thanks, Rajshree
vivekjyotipramanik commented 6 years ago

Hi RajshreeTathe,

Could you please share the HotelAvailability request you are sending to get the property. Thanks.

RajshreeTathe commented 6 years ago

Hi Vivek,

Please find the request

4 4 2018-04-19 2018-04-30 Thanks, Rajshree
RajshreeTathe commented 6 years ago

Hi Vivek,

From where I can get hotel brand list?

How can I use Neighborhood and hotel brand search parameter for HotelSearchAvailabilityReq. Can you please share with me sample request for the same. Thanks, Rajshree

vivekjyotipramanik commented 6 years ago

Hi RajshreeTathe,

Did you mean Brand as HotelChain, If so, Please find below the details about how to get all the HotelChains.

Getting Hotel Chain Codes

Sources of encode/decode data for hotel chains vary by provider. OpenChain Codes for Galileo (1G), Apollo (1V), Worldspan (1P), and Axess (1J)

Chain codes can be retrieved from either:

The ReferenceDataRetrieve utility in Universal API
The Reference Data tables available from the Travelport Developers site.

OpenDownloading Data Tables Using Reference Data Retrieve

    In Utility.xsd, use ReferenceDataRetrieveReq to download the data tables.
    Set ReferenceDataRetrieveReq @TypeCode to "HotelSupplierType".
    Set the provider for the desired table:

    Set ReferenceDataRetrieveReq/ReferenceDataSearchModifiers @ProviderCode to "1G" to point to the Reference Data table shared by Galileo and Apollo.
    Set ReferenceDataRetrieveReq/ReferenceDataSearchModifiers @ProviderCode to "1P" to point to the Reference Data table shared by Worldspan and Axess.

OpenDownloading Reference Data Tables from the Universal API Resource Center

    Go to the Universal API Resource Center page of the Travelport Developers support site at: https://developer.travelport.com/app/developer-network/resource-centre-uapi..
    In the Tools and Resources section of the Resource Center page, click Travelport Reference Data Tables link to save the latest ReferenceData.zip file.
    Extract the downloaded ReferenceData.zip file.
    Open RHTL.TXT, which contains the encoded and decoded hotel chain data.

Please elaborate what do you mean by neighborhood. Do you mean by ReferencePoints. Thanks.

RajshreeTathe commented 6 years ago

Thanks Vivek,

Where I can get data for car type for ex. Mini van, Truck, Convertable, compact, full size. In ReferenceData.zip this data is not available.

Which parameter we have to use for this and car company

Thanks.

vivekjyotipramanik commented 6 years ago

Hi RajshreeTathe,

Please find below the link with all the Vehicle Class details. Thanks.

https://support.travelport.com/webhelp/uapi/uAPI.htm#Vehicle/Vehicle_Search/Vehicle_Search_by_Vehicle_Modifiers.htm%3FTocPath%3DVehicle%7CVehicle%2520Search%7CVehicle%2520Search%2520Modifiers%7C_____3

RajshreeTathe commented 6 years ago

Hi Vivek,

I have to implement currency filter for the low fare search , I am using AirPricingModifiers element with CurrencyType attribute but it return me an error.

Below is the request I am using:

I am getting following response: XmlException ---------------------------------------------------------- Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 1021. XML Document ---------------------------------------------------------- Server.InvalidRequestException [Error] :27:78: cvc-complex-type.2.4.a: Invalid content was found starting with element \'air:AirPricingModifiers\'. One of \'{"http://www.travelport.com/schema/air_v42_0":SplitTicketingSearch, "http://www.travelport.com/schema/air_v42_0":JourneyData, "http://www.travelport.com/schema/common_v42_0":SearchPassenger}\' is expected. 1000 WEBSVC Data Validation failed on request message. F169A1160A07643B7AA7CD768DDE060B LastElement Provider CurrencyType=GBP FaresIndicator=AllFares ', 'AirAvailabilitySearchRsp' => ' Server.InvalidRequestException [Error] :27:78: cvc-complex-type.2.4.a: Invalid content was found starting with element \'air:AirPricingModifiers\'. One of \'{"http://www.travelport.com/schema/air_v42_0":SplitTicketingSearch, "http://www.travelport.com/schema/air_v42_0":JourneyData, "http://www.travelport.com/schema/common_v42_0":SearchPassenger}\' is expected. 1000 WEBSVC Data Validation failed on request message. F169A1160A07643B7AA7CD768DDE060B LastElement Provider CurrencyType=GBP FaresIndicator=AllFares Please assist. Thanks, Rajshree
vivekjyotipramanik commented 6 years ago

Hi RajshreeTathe,

The AirPricingModifiers should be after SearchPassenger. Please change the location and give it a try. Thanks.

RajshreeTathe commented 6 years ago

Thanks Vivek.

Now working.