Skip to main content

Country & Region Management

Vendasta maintains a list of countries and subregions within them that is based on an early version of the ISO 3166 standard.

When building a UI in your system you may use the following API calls to generate dropdown lists for the countryCode and regionCode fields on various resources.

List Countries

curl -X GET 'https://prod.apigateway.co/platform/countries?page%5Bsize%5D=10' \
-H 'Authorization: Bearer <Token with "business" scope>' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept-Language: en-CA'

List Regions in country

Once a user has selected a country you can request a list of regions within that country. This example gets the list of regions in Canada (CA).

curl -X GET 'https://prod.apigateway.co/platform/countryRegions?page%5Bsize%5D=20' \
-H 'Authorization: Bearer <Token with "business" scope>' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept-Language: en-CA'