Tools and News for Developers using the AllClients Platform

SetAccountStatus

Overview

Disable or Re-enable an account within your White Label CRM server.  Please note, disabled / “pending delete” accounts may be deleted automatically after a period of time.

Please note: This API Function is not enabled by default in new White Label accounts. Please contact us to have this function enabled for your account.

Post Url

https://ReplaceWithYourWhiteLabelCRMDomain/api/2/SetAccountStatus.aspx
  • SSL is requred

Form Fields

Field Max Length* Required Notes
response_type No Default results will be returned in XML.Set this field value to json to return results in JSON format
apiusername Yes API User Name and password are assigned by AllClients
apipassword Yes API User Name and password are assigned by AllClients
accountid Yes
status 1 Yes “0” Inactive / Pending Delete

“1” Active

* An error will not result if Max Length is exceeded. Data will be trimmed to this length. 

Sample Results

Success Message

<?xml version="1.0"?>
<results>
    <message>Success</message>
    <accountid>2425</accountid>
    <newstatus>1</newstatus>
</results>

Sample Failure Message

<?xml version="1.0"?>
<results>
    <error>Authentication failed</error>
</results>