API v1 Reference

List Sources

Sources can be customized from within NeonCRM. This request retrieves a list of available Sources.

REST

Request

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

Response

{ "listSourcesResponse": { 
    "operationResult": "SUCCESS", 
    "responseMessage": "71 records was found.", 
    "responseDateTime": "2012-12-27T01:16:22.899-06:00", 
    "sources": { 
        "source": [ 
            { "id": 1, "name": "Website" }, 
            { "id": 2, "name": "Former Member" }, 
            { "id": 3, "name": "Other" } ] 
        }
    }
}

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

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:listsourcesresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
        <operationresult>SUCCESS</operationresult>
        <responsemessage>No record was found</responsemessage>
        <responsedatetime>2013-01-08T01:22:13.708-06:00</responsedatetime>
        <sources>
        </sources>
      </ns2:listsourcesresponse>
   </soap:body>
</soap:envelope>

Response Parameters

Name Required Description
source.id Yes Source ID
source.name Yes Display name for a source