This method is used to obtain a DESTINATIONS portfolio.
| Name | Type | Description |
| fields | String | comma separated list of response fields to return (mandatory) |
| language | String | ISO 639-1 (2 digit) Language code (mandatory) |
| countryCode | String | ISO 3166 (2 digit) country code (optional) |
| codes | String | comma separated list of destination codes (optional) |
| offset | int | it's the position in the dataset of a particular record. By specifying offset, you retrieve a subset of records starting with the offset value (optional) |
| limit | int | allows you to set the number of objects returned in one page (optional) |
https://api.hotelbeds.com/transfer-cache-api/1.0/locations/destinations?fields=ALL&language=es&countryCodes=ES&codes=MAD,BCN,PMI
The response of Destinations provides information of the available destinations.
| Name | Type | Description |
| code | String | Destination code (Atlas code) |
| name | String | Destination Name |
| countryCode | String | ISO 3166 (2 digit) country code |
| language | String | ISO 639-1 (2 digit) Language code |
[
{
"code": "BCN",
"name": "Barcelona",
"countryCode": "ES",
"language": "ENG"
},
{
"code": "MAD",
"name": "Madrid",
"countryCode": "ES",
"language": "ENG"
},
{
"code": "PMI",
"name": "Majorca",
"countryCode": "ES",
"language": "ENG"
}
]