Buy
List regions
Changed onReturns 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 URLhttps://api.wavix.com
- URLhttps://api.wavix.com/v1/buy/countries/{country_id}/regions
- AuthHTTP 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
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the required property
to the response with the status
- breaking