getCountryRegions

get

/ccstore/v1/countries/{id}

Get Country Regions. Get Country and all its regions. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getCountryRegions_response
Type: object
Show Source
Nested Schema : regions
Type: array
The list of regions for particular country.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "regions":[
        {
            "regionCode":"US-AL",
            "displayName":"Alabama",
            "repositoryId":"US-AL",
            "abbreviation":"AL"
        },
        {
            "regionCode":"US-AK",
            "displayName":"Alaska",
            "repositoryId":"US-AK",
            "abbreviation":"AK"
        },
        {
            "regionCode":"US-AZ",
            "displayName":"Arizona",
            "repositoryId":"US-AZ",
            "abbreviation":"AZ"
        },
        {
            "regionCode":"US-AR",
            "displayName":"Arkansas",
            "repositoryId":"US-AR",
            "abbreviation":"AR"
        },
        {
            "regionCode":"US-CA",
            "displayName":"California",
            "repositoryId":"US-CA",
            "abbreviation":"CA"
        },
        {
            "regionCode":"US-CO",
            "displayName":"Colorado",
            "repositoryId":"US-CO",
            "abbreviation":"CO"
        },
        {
            "regionCode":"US-CT",
            "displayName":"Connecticut",
            "repositoryId":"US-CT",
            "abbreviation":"CT"
        },
        {
            "regionCode":"US-DE",
            "displayName":"Delaware",
            "repositoryId":"US-DE",
            "abbreviation":"DE"
        },
        {
            "regionCode":"US-DC",
            "displayName":"District of Columbia",
            "repositoryId":"US-DC",
            "abbreviation":"DC"
        },
        {
            "regionCode":"US-FL",
            "displayName":"Florida",
            "repositoryId":"US-FL",
            "abbreviation":"FL"
        },
        {
            "regionCode":"US-GA",
            "displayName":"Georgia",
            "repositoryId":"US-GA",
            "abbreviation":"GA"
        },
        {
            "regionCode":"US-GU",
            "displayName":"Guam",
            "repositoryId":"US-GU",
            "abbreviation":"GU"
        },
        {
            "regionCode":"US-HI",
            "displayName":"Hawaii",
            "repositoryId":"US-HI",
            "abbreviation":"HI"
        }
    ],
    "countryCode":"US",
    "displayName":"United States",
    "repositoryId":"US"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top