API v1 Reference

List Credit Card Types

This method returns a list of credit card types that have been enabled in a given NeonCRM system. This is used for retrieving the list of credit cards for payment forms.

REST

Request

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

Response

{ 
    "listCreditCardTypesResponse": {
        "operationResult": "SUCCESS",
        "responseMessage": "4 records were found.",
        "responseDateTime": "2012-12-26T00:53:39.586-06:00",
        "creditCardTypes": { 
            "creditCardType": [ 
                { 
                "code": "A", 
                "name": "American Express" 
                }, 
                {
                "code": "D", 
                "name": "Discover" 
                }, 
                {
                "code": "M", 
                "name": "Master Card" 
                }, 
                {
                "code": "V", 
                "name": "Visa" 
                } 
            ]
        }
    }
}

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

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:listcreditcardtypesresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>4 records were found.</responsemessage>
         <responsedatetime>2013-01-07T23:49:16.826-06:00</responsedatetime>
         <creditcardtypes>
            <creditcardtype>
               <code>A</code>
               <name>American Express</name>
            </creditcardtype>
            <creditcardtype>
               <code>D</code>
               <name>Discover</name>
            </creditcardtype>
            <creditcardtype>
               <code>M</code>
               <name>Master Card</name>
            </creditcardtype>
            <creditcardtype>
               <code>V</code>
               <name>Visa</name>
            </creditcardtype>
         </creditcardtypes>
      </ns2:listcreditcardtypesresponse>
   </soap:body>
</soap:envelope>

Response Parameters

Name Type Required Description
creditCardType.code Yes Predefined code for this credit card.
creditCardType.name Yes Display name for this credit card. This is a common name such as Visa or Mastercard.