TrakIT API‎ > ‎Pending API‎ > ‎

Get Country List

The below API is used to get country list.


Request: GET

Signature: /api/mobile/GetCountry List?Token={Login_Token}&ByCode={Boolean_Value}&Mode={}



Sample: /api/mobile/GetCountryList?Token=VomYEMiECFFyAQ3==&ByCode=True&Mode=10


Response:

{
    "Code": 1,
    "Info": "",
    "RowsAffected": 0,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": [
        {
            "GEOCODE": "CN",
            "GEONAME": "China"
        },
        {
            "GEOCODE": "ID",
            "GEONAME": "Indonesia"
        },
        {
            "GEOCODE": "IN",
            "GEONAME": "India"
        },
        {
            "GEOCODE": "KE",
            "GEONAME": "Kenya"
        },
        {
            "GEOCODE": "LA",
            "GEONAME": "Los Angeles"
        },
        {
            "GEOCODE": "NE",
            "GEONAME": "Nigeria"
        },
        {
            "GEOCODE": "US",
            "GEONAME": "United States of America"
        }
    ]
}

Things to know about this API:

  1. Login_Token - You can use Login API to get token under Info

  2. Below are the Mode and their description:

     Mode  Description
    0 - 4 Country list with Entity Code
    10 Country list with Depots created in it
    Any Other Number Displays all the countries
Comments