get_country_states (GET)

This function retrieves the provinces or states of a country, that are registered and active in our platform. It takes as input the token, ISO country (get_countries calls) and languaje (get_languages calls). It returns a string serialized in JSON format with full name of the country, states and their ISO codes (International Standard Organization).

  • Endpoint : preview.ilsbsys.com/apirest_v1/information

Fields Input

Tag Name Type Size Priority
token string 16 (Mandatory)
iso_country string 2 (Mandatory)
language string 3 (Mandatory)


Fields

{
    "request" : "get_country_states",
    "token" : "123456789ABC",
    "iso_country" : "CO",
    "language" : "spa"
}

Results

[
    {
        "countries_description": "Colombia",
        "states_description": "Atlantico",
        "iso_state": "CO.04"
    },
    {
        "countries_description": "Colombia",
        "states_description": "Bogota D.C.",
        "iso_state": "CO.34"
    },
    {
        "countries_description": "Colombia",
        "states_description": "Cundinamarca",
        "iso_state": "CO.33"
    }
]

Common Error Codes

  • 1030 : language not implemented
  • 6021 : language is emply
  • 9015 : no results
  • 9173 : ISO country is invalid
  • 9174 : ISO country is emply
  • 1005 : supplied token is invalid