GET /countries/{country_code}

Retrieve all supported states for a specific country.

Request

  • Base URL
    https://developers.whmcs.com/api/v2
  • Auth
    none declared

Path parameters

country_codestring required
Example:US

The ISO 3166-1 alpha-2 country code or the customized country code.

Query parameters

pageinteger
Example:1

Page number

page_sizeinteger
Example:10

Number of items per page. The maximum allowed value is 500. The default value is 50.

Response

Success

Example response

{
  "data": {
    "code": "US",
    "name": "United States",
    "states": [
      {
        "code": "CA",
        "name": "California"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.