Terminals

This method is used to obtain a TERMINALS portfolio.

Terminals Request

Endpoint

GET https://api.test.hotelbeds.com/transfer-cache-api/1.0/locations/terminals?fields= {{FIELDS}} &language= {{LANG}} &countryCodes= {{COUNTRY}} &codes= {{CODES}} &offset= {{OFFSET}} &limit= {{LIMIT}}
TIMEOUT: 60 seconds

 

Request parameters

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 terminal 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)

Request Example

https://api.test.hotelbeds.com/transfer-cache-api/1.0/locations/terminals?fields=ALL&language=es&countryCodes=ES&codes=MAD,BCN,PMI

 

Terminals Response

The response of Terminals provides information of the available Terminals.

Response Parameters

Name Type Description
code String Destination code (Atlas code)
content Element Information of the terminal
content/type String Single character code that identifies the type of terminal
content/description String Description or name of the terminal
countryCode String ISO 3166 (2 digit) country code
coordinates Element latitude & longitude coordinates for the hotel
coordinates/latitude Float Latitude data for geolocation
coordinates/longitude Float Longitude data for geolocation
language String Language code

Response JSON Example

[
  {
    "code": "PMI",
    "content": {
      "type": "A",
      "description": "Palma De Mallorca, Aeropuerto De Son Sant Joan"
    },
    "countryCode": "ES",
    "coordinates": {
      "latitude": 39.547654,
      "longitude": 2.730388
    },
    "language": "CAS"
  }
]

Docs Navigation