Attention: Please check the Hotel Release Notes page for the latest updates and enhancements.
Hotel Standard Search by ID API Reference
POST |
search/properties Base path: Pre-production https://api.pp.travelport.com/11/hotel/ Production https://api.travelport.com/11/hotel/ |
Related Content: Hotel Guide, Hotel Workflow Diagram, Hotel Standard Search by Location API Reference
The Hotel Standard Search by ID request searches for hotels by one or more property IDs. The response returns a list of properties based on the ID/s sent, and is in the same format as the response for Hotel Standard Search by Location.
Request
Also see Authorization and Common Hotel API Headers.
Query Parameters
None.
Request Body
Object |
Description |
Required/Optional |
---|---|---|
PropertiesQuerySpecificPropertyList |
Top level object. Includes RoomStayCandidate, PropertyKey and RateCandidates object. |
Required |
|
Check-in date in YYYY-MM-DD format. |
Required |
|
Check-out date in YYYY-MM-DD format. |
Required |
|
Number. Number of travelers. Must be a numeric value between 1 and 9. Though NumberOfGuests is still supported, the preferred guest object to code to is RoomStayCandidate to correctly handle children in room booking.
|
Required |
|
String. Send the currency code to return a conversion rate for. Rates are always returned in the currency of the hotel's location. You can use requestedCurrency to send a currency to request conversion rate information for. The response then returns the CurrencyRateConversion object, which provides the conversion rate of the specified currency that can be used to calculate, independently of the API, the conversion of the rates returned in the response. |
Optional |
ImageSize |
String. A size for the image to return, allowing you to set image quality. The following values are accepted:
|
Optional |
returnAllImagesInd |
Element to distinguish between requesting one or all images for each property returned in the response. Boolean values of true/false. Default when missing in request is false. |
Optional |
AggregatorList |
Restrict the search to a specific aggregator. Accepted values are:
User must be authorized for any aggregator selected. |
Optional |
Top level object for information associated with room searches. Includes GuestCounts object. |
Required |
|
GuestCounts |
Top level object for guest counts. Includes GuestCount object. |
Required |
GuestCount |
Guest count and age(s). |
Required |
|
Number. Number of travelers. Must be a numeric value between 1 and 9. |
Required |
|
Age of traveler. Required only when request includes a child in room. |
Optional |
|
Required only if traveler age is relevant to a code. |
Optional |
PropertyKey |
An array of up to 25 PropertyKey objects. Each PropertyKey object identifies a property to search. |
Required |
|
String. Code for the property within the hotel chain. |
Required |
|
String. Two-character code for the chain to search. |
Required |
RateCandidates |
An array of one to eight negotiated rate codes and / or one frequent guest number. Includes RateCandidate object. |
Optional |
RateCandidate |
Rate plan details and/or frequent guest number, if requesting. Includes CustomerLoyalty object. |
Optional |
|
String. Negotiated rate code. |
Optional |
|
String. An agency-created rate code that can be translated into up to 12 negotiated rate codes. |
|
|
For a rate category, send one or up to 8 rate categories to search for, such as Weekend or Government. If the supplier has rates available for the requested category, the response contains those rates and indicates them as such. Note that some properties do not return these rates unless explicitly requested. Categories are spelled for readability in this document. Please consult the swagger file for exact spelling. Travelport translates the category of “All” into the category set of Promotional, Package, Senior Citizen, Family Plan, Weekend, Association, Corporate, Government. Supported values are as follows:
|
Optional |
CustomerLoyalty |
String. One frequent guest number. |
Optional |
|
String. Two character hotel supplier code or brand code of the loyalty program. |
Optional |
|
String. Number on loyalty card. |
Optional |
Response
The response for the Hotel Standard Search by ID request is in the same format as the response for Hotel Standard Search by Location; see the Standard Search by Location API Reference.
Example Request
The example below sends three property IDs to search. All objects except requestedCurrency are required.
{
"PropertiesQuerySpecificPropertyList": {
"checkinDate": "2021-04-01",
"checkoutDate": "2021-04-04",
"numberOfGuests": "1",
"requestedCurrency": "INR",
"PropertyKey": [
{
"propertyCode": "A5748",
"chainCode": "HI",
”type": "PropertyKey"
},
{
"propertyCode": "47194",
"chainCode": "CY",
”type": "PropertyKey"
},
{
"propertyCode": "81388",
"chainCode": "HY",
”type": "PropertyKey"
}
]
}
}
Example Response
The response for the Hotel Standard Search by ID request is in the same format as the response for Hotel Standard Search by Location; see the Standard Search by Location API Reference.
Error Messages
See the Standard Search by Location API Reference for error messages.