Destinations
GET {{endpoint}}/hotel-content-api/1.0/locations/destinations?fields=all&language=ENG&from=1&to=100&useSecondaryLanguage=false
It will return the list of available destinations, zones and grouping zones.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | string | List of fields you want to receive in the response. If nothing is specified the hotelCode will be returned. Values: countryCode, isoCode, name, zones, groupZones, all | |
codes | string | Filter to limit the results for an specific destination or list of destinations. | |
countryCodes | string | Filter for a specific country of list of countries. | |
lastUpdateTime | string | Specifying this parameter will limit the results to those modified or added after the date specified. The allowed format is YYYY-MM-DD. | |
language | string | Language Code in which you want the descriptions to be returned. If not otherwise indicated, English is the default language. | |
from | number | Number of the initial record to receive, if nothing is indicated 1 is the default value. | |
to | number | Number of the final record to receive, if nothing is indicated 100 is the default value. | |
useSecondaryLanguage | boolean | "True" if you want to receive the descriptions in English if the description is not available in the language requested. | |
"False" (default value) if you dont want to receive the description in English if the language requested is not available. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-key | string | API Key used in the request | |
X-Signature | string | SHA256 hash in Hex format from your API Key, your secret plus current timestamps in seconds | |
Accept | string | Defines response format, posible values: application/xml, application/json | |
Accept-Encoding | string | Defines type of encoding used on the data |