Unable to suspend an account using xmlapi class

kavos1332

Active Member
Dec 17, 2012
40
0
6
cPanel Access Level
Root Administrator
Hi.

I want to suspend accounts using xmlapi class. First I search for the account to suspend by domain and get its username and then pass it to the suspendacct function. listaccts() gives me the correct username but when I pass it to suspedacct() and print the result it returns the status 0 with message "suspendacct called on an account that does not exist". The account exists and passed username is correct as have gotten from the server itself. It is notable that the account is under a reseller account and I'm authenticating api by root user. root should have access to all accounts.

Please help me!