Web Method: getAllCountries

What is the getAllCountries Method?

This method returns a list of available countries from the Apptivo database. These countries can then be used to generate user accounts, shipping quotes, or other reasons you may need to list countries in your application.

Method Definition

@WebMethod(action = "getAllCountries", operationName = "getAllCountries")
public List getAllCountries(String siteKey)

Expected Response

stdClass Object
(
[return] => Array
(
[0] => stdClass Object
(
[countryCode] => AF
[countryId] => 1
[countryName] => Afghanistan
)

[1] => stdClass Object
(
[countryCode] => AL
[countryId] => 2
[countryName] => Albania
)

[2] => stdClass Object
(
[countryCode] => DZ
[countryId] => 3
[countryName] => Algeria
)
)

Back to API reference.