UProfile Traveler Group Search
This entry is available through Universal API and is fully documented in the Search for a Profile topic of the Universal API online help. It is being shown here to demonstrate how uProfile accountId data can be obtained for specific credentials.
Supply the ProfileID of the agency you wish to retrieve traveler groups for in the ProfileSearchReq element and set the ProfileType to TravelerGroup.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<upr:ProfileSearchReq ProfileParentID="451698" ProfileType="TravelerGroup" ReturnParentSummary="true" xmlns:upr="http://www.travelport.com/schema/uprofile_v32_0" xmlns:com="http://www.travelport.com/schema/common_v32_0">
<com:BillingPointOfSaleInfo OriginApplication="UAPI"/>
<upr:ProfileSearchModifiers MaxResults="200" StartFromResult="1"/>
</upr:ProfileSearchReq>
</soapenv:Body>
</soapenv:Envelope>
The response will contain the ProfileID / information of the traveler groups associated with the requested Agency ProfileID in the ProfileSummary elements. There will be one ProfileSummary element for each traveler group associated with the Agency – the response below has been truncated to two traveler groups for brevity.
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<uprofile:ProfileSearchRsp TransactionId="AD18FAD40A07643BD914C58AAB0E010F" ResponseTime="180" MoreResults="false" xmlns:uprofile="http://www.travelport.com/schema/uprofile_v32_0">
<uprofile:ProfileSummary ProfileID="698837" ProfileType="TravelerGroup" Status="Active" HierarchyLevelID="33105" Version="0">
<uprofile:TravelerGroupInfo AdditionalIdentifier="PP Policy 1G ATPI Demo" Description="PP Policy 1G ATPI Demo TG1" Name="PP Policy 1G ATPI Demo TG1"/>
<uprofile:ImmediateParentProfile ImmediateParentRef="698836"/>
</uprofile:ProfileSummary>
<uprofile:ProfileSummary ProfileID="698838" ProfileType="TravelerGroup" Status="Active" HierarchyLevelID="33105" Version="0">
<uprofile:TravelerGroupInfo AdditionalIdentifier="PP Policy 1G ATPI Demo" Description="PP Policy 1G ATPI Demo TG2" Name="PP Policy 1G ATPI Demo TG2"/>
<uprofile:ImmediateParentProfile ImmediateParentRef="698836"/>
</uprofile:ProfileSummary>
<uprofile:ProfileParentSearchSummary ProfileID="698836" ProfileType="Account" Name="PP ATPI Demo" Version="2" HierarchyLevelID="33103" Status="Active" ImmediateParentRef="451698"/>
</uprofile:ProfileSearchRsp>
</SOAP:Body>
</SOAP:Envelope>
Sample Request and Response
See the Downloads page to download a zip file containing the following XML files.
Sample request:
ProfileTGSearchRQ.xml
Sample response:
ProfileTGSearchRS.xml