Schedule a meeting

Geographic

Get Cities by State

This endpoint returns a list of cities within a specified state or province.

URL

PROD https://api.skypostal.com/

TEST https://api-test.skypostal.com/

Endpoint

POST /wcf-services/service-geographic.svc/geographic/get-cities-by-state

Request Parameters

Parameters

user_info

Object - Required

User Info Definition.

state_code

Integer - Required

This is the code from the state that you want to get the cities from.

User Info Definition

Parameters

user_code

Integer - Required

This is the user code provided by Skypostal.

user_key

String - Required

This is the app key provided by Skypostal.

app_key

String - Required

This is the app key provided by Skypostal.

Remember

user_code and app_key are generic credentials, make sure to request your own for TEST and PROD environemnts.

The command should be run as in the following example:

{
    "user_info": {
        "user_code": 123123,
        "user_key": "**",
        "app_key": "***"
    },
    "state_code": 001
}

The command will return the following format:

[
    {
        "_verify": true,
        "additional_info": {
            "internal": [],
            "server": {
                "server_id": null,
                "server_time": 0
            }
        },
        "city_code": 200685,
        "city_iata_code": null,
        "city_local_id": "",
        "city_name": "Acapulco",
        "country_code": 230,
        "country_iso_code": "UY",
        "error": {
            "error_code": "",
            "error_description": "",
            "error_location": "",
            "system_error": false
        },
        "state_code": 4442
    }
]