Buy

Returns a list of regions (states or provinces) for countries where has_provinces_or_states is true.

get/v1/buy/countries/{country_id}/regions

Request

  • Base URL
    https://api.wavix.com
  • URL
    https://api.wavix.com/v1/buy/countries/{country_id}/regions
  • Auth
    HTTP bearer

Path parameters

country_idinteger required
Example:1892

The unique ID of the country.

Query parameters

text_enabled_onlyboolean

When true, returns only regions that offer text-enabled numbers.

Response

Returns the list of regions.

Example response

{
  "regions": [
    {
      "id": 17,
      "name": "California"
    }
  ]
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status