1. GetDestinationCountries

Version 47.1 by Giorgi Mdivnishvili on 2024/04/10 03:28

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"
    }
  ]
}

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"
 }

Schema

Success

GetCountriesResponse{

errorboolean
errorCodestring
nullable: true
errorDescriptionstring
nullable: true
userErrorDescriptionstring
nullable: true
countries[
nullable: trueCountry{
countryCodestring
nullable: true
readOnly: true
countryNamestring
nullable: true
notestring
nullable: true
phoneCodestring
nullable: true
isO2string
nullable: true
isO3string
nullable: true
statusinteger($int32)
sortingOrderinteger($int32)
sellCurrencystring
nullable: true

}]

}

 

Definitions

Warning

- `countries`: (array) An array of objects, each representing a country.

- `countryCode`: (string) The ISO 3166-1 alpha-2 country code. For example, "AZ" for Azerbaijan.

- `countryName`: (string) The name of the country.

- `phoneCode`: (string) The international dialing code for the country. For example, "994" for Azerbaijan.

- `isO2`: (string) The ISO 3166-1 alpha-2 code for the country. This is typically the same as `countryCode`.

- `isO3`: (string) The ISO 3166-1 alpha-3 code for the country. For example, "AZE" for Azerbaijan.

- `status`: (integer) The status of the country. This could represent whether the country is active or not. For example, 1 could represent an active status.

- `sortingOrder`: (integer) The sorting order for the country. This could be used to sort countries in a list. For example, 700.

- `sellCurrency`: (string) The currency in which transactions are conducted in the country. This is typically in ISO 4217 format. For example, "USD" for United States Dollar.

Important

Error

It's Important to in every other request header, put Auth token

Key - Authorization

Value - Bearer Token what is given in this response. (Authorization type Bearer Token)

also note in headers that:

Content-Type - application/json

Key - X-nugios-timezone

Value - 240