GetCountries

Version 5.1 by Giorgi Mdivnishvili on 2023/12/14 09:20

Method Description

The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods. 

Endpoint URL - [GET]

Request Parameters

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": "UU",
           "countryName": "Ukraine.",
           "phoneCode": "111",
           "isO2": "UU",
           "isO3": "UA.",
           "status": 1,
           "sortingOrder": 0,
           "sellCurrency": "USD"
        },
        {
           "countryCode": "AE",
           "countryName": "United Arab Emirates",
           "phoneCode": "971",
           "isO2": "AE",
           "isO3": "ARE",
           "status": 1,
           "sortingOrder": 1000,
           "sellCurrency": "USD"
        },

Schema

GetCountriesResponse{
error boolean
errorCode string
nullable: true
errorDescription string
nullable: true
userErrorDescription string
nullable: true
countries [
nullable: true
Country{
countryCode string
nullable: true
readOnly: true
countryName string
nullable: true
note string
nullable: true
phoneCode string
nullable: true
isO2 string
nullable: true
isO3 string
nullable: true
status integer($int32)
sortingOrder integer($int32)
sellCurrency string
nullable: true
}]
}