API v1 Reference

List Address Types

Types of addresses, such as “Work”, “Home”, or “School” can be created within NeonCRM. Use this request to retrieve the list of address types.

REST

Request

https://api.neoncrm.com/neonws/services/api/account/listAddressTypes?userSessionId=[session id]

Response

{ "listAddressTypesResponse": { 
    "operationResult": "SUCCESS", 
    "responseMessage": "3records was found", 
    "responseDateTime": "2012-12-27T01:43:14.011-06:00", 
    "addressTypes": { 
        "addressType": [ 
            { "id": 1, "name": "Home" }, 
            { "id": 2, "name": "Business" }, 
            { "id": 3, "name": "School" } 
            ] 
        } 
    } 
}

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:listaddresstypesrequest>
             <usersessionid>T1357624094982</usersessionid>
          </neon:listaddresstypesrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:listaddresstypesresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>3 records were found</responsemessage>
         <responsedatetime>2013-01-08T00:40:30.333-06:00</responsedatetime>
         <addresstypes>
            <addresstype>
               <id>1</id>
               <name>Home</name>
            </addresstype>
            <addresstype>
               <id>2</id>
               <name>Business</name>
            </addresstype>
            <addresstype>
               <id>3</id>
               <name>School</name>
            </addresstype>
         </addresstypes>
      </ns2:listaddresstypesresponse>
   </soap:body>
</soap:envelope>

Response Parameters

Name Required Description
Address.addressType.id
Address.addressType.name