List Countries
This request retrieves a list of countries from NeonCRM. This list cannot be customized by users. This method serves primarily as a “helper” for other API methods.
REST
Request
https://api.neoncrm.com/neonws/services/api/account/listCountries?usersessionid=[session id]
Response
{
"listCountriesResponse": {
"operationResult": "SUCCESS",
"responseMessage": "242 records was found.",
"responseDateTime": "2012-12-29T02:43:00.023-06:00",
"countries": {
"country": [
{
"id": 1,
"name": "United States"
},
{
"id": 2,
"name": "Canada"
},
{
"id": 3,
"name": "Afghanistan"
},
{
"id": 4,
"name": "Albania"
},
{
"id": 5,
"name": "Algeria"
},
{
"id": 6,
"name": "American Samoa"
},
{
"id": 7,
"name": "Andorra"
},
...
}
}
SOAP
Request
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:neon="http://www.z2systems.com/schemas/neonws/">
<soapenv:header>
<soapenv:body>
<neon:listcountriesrequest>
<usersessionid>T1357624094982</usersessionid>
</neon:listcountriesrequest>
</soapenv:body>
</soapenv:header>
</soapenv:envelope>
Response
<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:body>
<ns2:listcountriesresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
<operationresult>SUCCESS</operationresult>
<responsemessage>242 records were found.</responsemessage>
<responsedatetime>2013-01-08T00:41:56.172-06:00</responsedatetime>
<countries>
<country>
<id>1</id>
<name>United States</name>
</country>
<country>
<id>2</id>
<name>Canada</name>
</country>
<country>
<id>3</id>
<name>Afghanistan</name>
</country>
<country>
<id>4</id>
<name>Albania</name>
</country>
<country>
<id>5</id>
<name>Algeria</name>
</country>
<country>
<id>6</id>
<name>American Samoa</name>
</country>
<country>
<id>7</id>
<name>Andorra</name>
</country>
...
</countries>
</ns2:listcountriesresponse>
</soap:body>
</soap:envelope>