API v1 Reference

List Genders

Genders can be customized within NeonCRM. Use this request to retrieve the list of available gender types.

REST

Request

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

Response

    { "listGendersResponse": { 
        "operationResult": "SUCCESS", 
        "responseMessage": "2 records was found.", 
        "responseDateTime": "2012-12-27T01:31:28.793-06:00", 
        "genders": { 
            "gender": [ 
                {"code": "F", "name": "Female" }, 
                { "code": "M", "name": "Male" } ] 
            } 
        } 
    }

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

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:listgendersresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>2 records were found.</responsemessage>
         <responsedatetime>2013-01-08T00:43:42.884-06:00</responsedatetime>
         <genders>
            <gender>
               <code>F</code>
               <name>Female</name>
            </gender>
            <gender>
               <code>M</code>
               <name>Male</name>
            </gender>
         </genders>
      </ns2:listgendersresponse>
   </soap:body>
</soap:envelope>

Response Parameters

Name Required Description
gender.code Yes Code for a particular gender type.
gender.name Yes Display name for a particular gender type.