If you set the parent_client_id with your script, then this means that you attach this client to a reseller. If this reseller does not exist or has reached its limits, then you can not add any new items as the reseller limit has been recahed.
The solution is to fix your script and set $reseller_id = 0 (its the second parameter) of the client_add function.
There is no need to change any code of the remote API.
|