Destinations
What is the Destinations Query?β
The Destinations Query lets you retrieve destination master data from HotelX in two scopes:
- FastX Destination List: standardized destination values from Travelgate.
- Supplier Destination List: native destination values configured by each Seller.
This allows you to inspect either the FastX destination master or one Seller's native destination tree, depending on the access used in the query.
Check out our HotelX Pull Buyers API Documentation for a complete example of a Destinations Query! π
What Information is Included in the Destinations Query Response?β
The response typically includes the following fields:
- Code β The destination code from the selected Seller.
- Available β Indicates if the destination is available.
- DestinationLeaf β Specifies whether the destination is a final node in the hierarchy.
- Texts β Contains descriptions of the destination.
- ClosestDestinations β Lists nearby destinations.
- Parent β Indicates the parent destination in the hierarchy.
- Type β Specifies whether the destination is a zone or a city.
FastX and Supplier Scopeβ
How Do FastX and Supplier Destination Values Differ?β
- With FastX access, the destination list comes from the FastX standardized destination master.
- With Supplier access, the destination list comes from the Seller-native destination tree.
If your integration consumes both scopes, keep in mind that destination values and structure can vary depending on the selected access.
Understanding Destination List Logicβ
How Are Destinations Categorized?β
When you run a Destinations Query, the Supplier's destination codes are classified into two categories:
- Zone
- City
How Should I Use Zone and City Nodes in the Response?β
Suppliers structure their Destination Tree using both zone and city nodes. When you request their destination list, the response is categorized to facilitate the mapping process.
The amount of information, content, and categorization of destinations may vary across Sellers.
For example, one Seller might classify San Francisco as a "Zone," while another may categorize it as a "City."
How Can I Retrieve the FastX Destination Master?β
Use your FastX access in the Destinations Query. You can find it in MyConnections under the Seller "Travelgate".
How Can I Retrieve a Seller's Native Destination List?β
Use that Seller's access in the Destinations Query to retrieve the native destination tree configured for your account.
Destination Mapping and Filteringβ
What Destination Codes Should I Map as a Buyer?β
The destinations you choose to map depend on your business needs. If you're only interested in specific locations, you can filter them accordingly.
For example, if you're focused on Spanish destinations, you can filter the Destinations Query using the "destinationCodes" field with the value "ES", ensuring that only Spanish destinations are included in the response.
How Can I Determine the Total Number of Destinations Provided by a Seller?β
To retrieve the complete list of destinations, you need to use pagination.
By utilizing the token provided in each response, you can fetch subsequent sets of destinations. When you encounter an error message stating "destinations not found," it indicates that the entire list has been retrieved.
Availability Considerationsβ
Will All Destinations in the List Have Availability?β
No, the inclusion of a destination in the list does not guarantee hotel availability in that location.
To verify hotel availability, you should:
- Perform a Search Query to check hotel availability for your desired dates.
- Reach out to the Seller to inquire about the current availability of destinations and properties.
Explore our Documentation to learn more about Destinations Query with detailed examples! ππ