Remove Address

This request deletes an address record from an individual or organization account.

If you delete the primary address from an account, you must also make another address become the primary address.

REST

Request

https://api.neoncrm.com/neonws/services/api/account/removeAddress?responseType=json&userSessionId=T1356677110009&addressId=3135&accountId=3451

Response

{ "removeAddressResponse": {
    "operationResult": "SUCCESS",
    "responseDateTime": "2012-12-28T00:47:35.731-06:00" }
}

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:removeaddressrequest>
             <usersessionid>T1357624094982</usersessionid>
                  <addressid>3453</addressid>
                 <accountid>3553</accountid>
          </neon:removeaddressrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:removeaddressresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsedatetime>2013-01-08T01:31:16.761-06:00</responsedatetime>
      </ns2:removeaddressresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
accountId Yes Account ID
addressId Yes ID of the address to be deleted.

Error Codes

Code Text Description
10131 Account id is required.
10132 Account id is invalid.
10135 Address id is required.
10136 Address id is invalid.
10139 Account id is invalid. Cannot add/update/remove address for organization account. Please refer to linkIndividualToOrganizationAccount and removeIndividualFromOrganizationAccount requests.