We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

SOLVED
Go to solution
KemiJ
Participant

Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

I have a Drupal 7 site which uses the Constant Contact Module (7.x-3.6) to sign people up on registration. It works fine out of the box, but I'd like to use a different 'Welcome' message than our default, so I've changed the action_type to 'ACTION_BY_CUSTOMER' to supress the default 'Welcome' message. However, I now get a 403 error on registration and no sign up occurs. I've verfied the XML differs only by the <OptInSource> tag, and I've added a few more debug statements, but I'm not clear on where the error is occuring.

 

After submitting, I compared the object used for submission under both successful and unsuccessful conditiona and it is confirmed to be alike in all ways except for action_type and response attributes.

 

Any help would be appreciated.

1 ACCEPTED SOLUTION
Shannon_W
Employee

Hi,

 

There is a scenario where you will get a 403 error when trying to add a contact when using action by customer instead of action by contact.  If the contact was previously opted out of Constant Contact mailings in the account, and you try to add them back with action by customer, a 403 will occur.

 

I would check to see if the email address you are entering is on the Do Not Mail list in your account.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

2 REPLIES 2
Shannon_W
Employee

Hi,

 

There is a scenario where you will get a 403 error when trying to add a contact when using action by customer instead of action by contact.  If the contact was previously opted out of Constant Contact mailings in the account, and you try to add them back with action by customer, a 403 will occur.

 

I would check to see if the email address you are entering is on the Do Not Mail list in your account.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

That was it. When deleting a user from Drupal (as I was doing to re-register with the same e-mail) it was adding that e-mail to the Do Not Mail list.

 

Thanks

Developer Portal

View API documentation, code samples, get your API key.

Visit Page