/address

GET /address/countries restricted

This request returns the list of countries and their states, when available.

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

Request example

GET /v2/address/countries HTTP/1.1
Host: api.lions.at
X-Authorization: access-token
Optional parameters
Name Type Description
locale string de, fr, ... to get localized country and states names (when possible). Defaults to English.

Response example

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{
    "success": true,
    "countries": [
        {
            "id": "AT",
            "name": "Austria",
            "states": [
                {
                    "id": "1",
                    "name": "Burgenland"
                },
                {
                    "id": "2",
                    "name": "K\u00e4rnten"
                },
                {
                    "...": "..."
                }
            ]
        },
        {
            "id": "CH",
            "name": "Switzerland",
            "states": [
                {
                    "id": "AG",
                    "name": "Argau"
                },
                {
                    "id": "AI",
                    "name": "Appenzell Innerrhoden"
                },
                {
                    "...": "..."
                }
            ]
        },
        {
            "...": "..."
        }
    ]
}