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

Error setting Known Traveler Id in AirCreateReservationRq #289

Open hnguyen14 opened 7 years ago

hnguyen14 commented 7 years ago

Hi, We're trying to make an AirCreateReservationRq with the Known Traveler Id. We're using DOCO SSR along with a DOCS SSR (this is needed for Apollo according to documentation). However, we still get the error ERR- DOCUMENT TYPE REQUIRES A DOCUMENT NUMBER AND COUNTRY CODE even though it's already input in DOCS SSR.

Here's the RQ/RSP xml bookReq.txt bookRsp.txt

vivekjyotipramanik commented 7 years ago

Hi hnguyen14,

The SSR element is missing some attributes and also the FreeText is missing some details. Please find below the sample SSR element. Please find below the link with some samples and details. Please let us know how it goes. Thanks.

<SSR Type="DOCS" FreeText="P/GB/S12345678/GB/12JUN63/M/23OCT14/SMITH/JOHN" Carrier="U2"/>

https://support.travelport.com/webhelp/uapi/uAPI.htm#Air/Shared_Air_Topics/SSRs_(Special_Service_Requests).htm

hnguyen14 commented 7 years ago

Hi, We've added Carrier attribute and still get the same error. The example you mentioned is for adding a passport entry but we are trying to add a Known Travel Id entry. You can see in our request, we've provided the number and the country code in the request, but the response still say we're not passing in such data. What is an example of Known Traveler Id SSR FreeText (Apollo)?

Update Req/Rsp bookReq.txt bookRsp.txt

vivekjyotipramanik commented 7 years ago

Hi hnguyen14,

The Gender and DOB of the passenger and passenger first and last names are missing in the FreeText. Those are required fields in FreeText for DOCS. For DOCO the visa information like Visa number, Visa issuing date, issuing country etc are required fields along with Passenger first and last name. Could you please try adding the DOB, Gender, passenger first and last name. Please let us know how it goes. Thanks.