Search by destination
Search by destination is a feature to search by destinations codes in the Search query.
What it does
In order to use it, codes must be sent in ‘CriteriaSearch’. Destination codes will be converted to hotel codes, then merged with the hotel codes sent in criteria if any, and finally the request will be sent to the supplier. In order to achieve the destination to hotel conversion, a source must be specified in a plugin.
How to use it
Use this plugin by adding it to the settings in your HotelX Search Query.
The conversion must be done at the ‘REQUEST’ step, either in type ‘PRE_STEP’ or ‘POST_STEP’. The parameter with key “accessID” is mandatory and is the access used to convert destinations to hotel from its hotel list, which means that the hotel codes obtained are in the same context as the access.
Query get hotels & destination Get hotels & destinations
Query execute plugin search by destination Plugin search by destination
{
"plugins": {
"step": "REQUEST",
"pluginsType": [
{
"type": "POST_STEP",
"name": "search_by_destination",
"parameters": [
{
"key": "accessID",
"value": "x"
}
]
}
]
}
}
Example query destinations & hotels by access
First of all, you need to know destinations by access.

Example query with execution plugin search by destinations

### File format
No files are needed in order to use this plugin.