Skip to main content

Destinations

Overview​

The Destinations method returns a comprehensive destination list from a supplier's access, listing all the destinations configured by the Seller for a given set of credentials. The returned fields include: code, names, availability status, and parent-child relationships between zones and cities.

Request​

The Request is structured to accommodate access information for the content retrieval.

Overview​

The request that receives the Connector is a Task with essential information that allows it to execute the operation properly:

  • Access: Represents access credentials and related information required for a connection.
  • Operation: Operation to be executed.

Sample​

{
"Task": {
"Access": {
"Code": 11111,
"User": "tgx",
"Password": "password",
"Urls": {
"Generic": "https://api.hotelsupplier.com/generic"
},
"Parameters": {
"maxResults": "50",
"cacheEnabled": "true",
"requestTimeout": "5000",
"preferredSupplier": "SupplierX"
}
},
"Operation": "Destinations",
"Languages": [ "en" ],
"Platform": "HOTELTEST",
"Supplier": "HOTELTEST",
"SupplierGroup": "HOTELTEST"
}
}

Details​

The object ContentRq represents the structure of the content request as expected by the supplier.

NameTypeDescription
TaskIdIntegerUnique identifier of the task, automatically assigned by the system.
SupplierStringSupplier code associated with the access.
SupplierGroupStringSupplier group associated with the access.
PlatformStringThe platform that this supplier belongs to.
OperationServiceOperationEnumOperation to be executed.
TimeoutStringMaximum time to wait for a supplier response before timing out.Specified as a timestamp string (e.g., "24:00:00" for 24 hours).
AccessAccessAccess information required for the operation, including API credentials, endpoints,and other integration-specific connection details.
Access/CodeIntegerThe unique code identifying the access configuration.
Access/UserStringThe username used for authentication with the supplier.
Access/PasswordStringThe password used for authentication with the supplier.
Access/ApiKeyStringThe API key used for authentication or authorization.
Access/UrlsUrlsThe URLs associated with the access configuration.
Access/Urls/BookStringThe URL used for booking operations.
Access/Urls/SearchStringThe URL used for Search operations.
Access/Urls/QuoteStringThe URL used for Quote operations.
Access/Urls/GenericStringA generic URL for additional operations.
Access/ParametersAccessParametersAdditional parameters related to the connection.
LanguagesList<Iso2LanguageEnum>Language codes for the operation, represented as a list of ISO 639-1 2-character codes (e.g., "en", "es").

Response​

The response contains the mapped destination information.

Overview​

The Destinations response provides a structured, hierarchical view of the supplier's destination data. Each destination entry includes information such as the code, names, availability status, and parent-child relationships between zones and cities.

  • Zone: Destinations with destination leafs.
  • City: Destinations without destination leafs.

This hierarchical structure facilitates accurate mapping and organization of supplier destinations.

Sample​

Example with multiple destinations for better undestanding the hierarchical view.

  • The destination code ES (Spain) is a parent zone for BAL (Balearic Islands), AST (Asturias), and AND (Andalucia).
  • The destination code BAL (Balearic Islands) is itself a parent of the cities PAL0 (Palma de Mallorca) and ALC0 (Alcudia).
{
"Code": "ES",
"Available": false,
"Names": {
"es": "EspaΓ±a",
"en": "Spain"
},
"ParentCode": null,
"Type": 0,
"DestinationLeafCodes": [
"BAL",
"AST",
"AND"
]
},
{
"Code": "BAL",
"Available": true,
"Names": {
"es": "Baleares"
},
"ParentCode": "ES",
"Type": 0,
"DestinationLeafCodes": [
"PAL0",
"ALC0"
]
},
{
"Code": "AST",
"Available": true,
"Names": {
"es": "Asturias"
},
"ParentCode": "ES",
"Type": 0,
"DestinationLeafCodes": null
},
{
"Code": "AND",
"Available": true,
"Names": {
"es": "Andalucia"
},
"ParentCode": "ES",
"Type": 0,
"DestinationLeafCodes": null
},
{
"Code": "PAL0",
"Available": true,
"Names": {
"es": "Palma de Mallorca",
"en": "Balearic Islands"
},
"ParentCode": "BAL",
"Type": 1,
"DestinationLeafCodes": null
},
{
"Code": "ALC0",
"Available": true,
"Names": {
"es": "Alcudia"
},
"ParentCode": "BAL",
"Type": 1,
"DestinationLeafCodes": null
}

Details​

The AccumulativeDestination object represents the standardized structure of the mapped destination element.

NameTypeDescription
CodeStringCode of the destination.
AvailableBooleanValue indicating whether the destinations can be requested in Search.
NamesDictionary<Iso2LanguageEnum, String>Names of the destination in different languages.
ParentCodeStringParent code of the destination.
TypeDestinationTypeEnumType of the destination.
DestinationLeafCodesList<String>List of destination leaf codes.