Showing results for 
Search instead for 
Did you mean: 
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.

Account is not authorized problem

Occasional Visitor

Account is not authorized problem

Hi everyone,


Currently I have multiple CC accounts and I'm doing a loop through all accounts and schedule a campaign for each. In some accounts I'm getting this error:

"Ctct\Exceptions\CtctException: [{"error_key":"","error_message":"Account is not authorized to schedule a campaign."}] in Ctct\Util\RestClient::httpRequest() (line 93 of /opt/bitnami/apache2/htdocs/sites/"


so my question is, is there any way I can suppress that error? so even there's that error, it will still continue the loop and finish the rest of the list. 


Help will be highly appreciate.



Tags (2)
Honored Contributor

Re: Account is not authorized problem



It is possible to specifically suppress a 403 error, but it will require making a temporary modification to the PHP wrapper code. In order to do this, you would need to test $body[0]['error_key'] for the value "" on line 94 of RestClient.php.


Let me know if you have any difficulty with this!



Elijah G.
API Support Engineer