1. GetDestinationCountries
Version 42.1 by Giorgi Mdivnishvili on 2023/12/26 09:42
Contents
Method Description
GetDestinationCountries method is used to get all destination countries list, which is provided by Nugios.
Endpoint URL - [GET]
Request Parameters
In the system, Destination countries are two types: 1) Destinations where packages are available with flights, 2) Destination Countries with only hotels. So using parameter false, or true there is option given, to determine type of destination country.
Request Body
none
Response Body
{
"error": true,
"errorCode": "string",
"errorDescription": "string",
"userErrorDescription": "string",
"countries": [
{
"countryCode": "string",
"countryName": "string",
"note": "string",
"phoneCode": "string",
"isO2": "string",
"isO3": "string",
"status": 0,
"sortingOrder": 0,
"sellCurrency": "string"
}
]
}
"error": true,
"errorCode": "string",
"errorDescription": "string",
"userErrorDescription": "string",
"countries": [
{
"countryCode": "string",
"countryName": "string",
"note": "string",
"phoneCode": "string",
"isO2": "string",
"isO3": "string",
"status": 0,
"sortingOrder": 0,
"sellCurrency": "string"
}
]
}
example
{
"countryCode": "MV",
"countryName": "Maldives",
"phoneCode": "960",
"isO2": "MV",
"isO3": "MDV",
"status": 1,
"sortingOrder": 800,
"sellCurrency": "USD"
},
{
"countryCode": "GE",
"countryName": "Georgia",
"phoneCode": "995",
"isO2": "GE",
"isO3": "GEO",
"status": 1,
"sortingOrder": 900,
"sellCurrency": "USD"
}
"countryCode": "MV",
"countryName": "Maldives",
"phoneCode": "960",
"isO2": "MV",
"isO3": "MDV",
"status": 1,
"sortingOrder": 800,
"sellCurrency": "USD"
},
{
"countryCode": "GE",
"countryName": "Georgia",
"phoneCode": "995",
"isO2": "GE",
"isO3": "GEO",
"status": 1,
"sortingOrder": 900,
"sellCurrency": "USD"
}
Schema
Definitions
countrycode: string. ISO2 Country code
countryName : Name of the country
isO2 : country name in iso2 standard
isO3 : country name in iso3 standard
sellCurrency : Sell Currency in given country
countryName : Name of the country
isO2 : country name in iso2 standard
isO3 : country name in iso3 standard
sellCurrency : Sell Currency in given country