Contact status in bulk import/update

SOLVED
Go to solution
Frequent Participant

Contact status in bulk import/update

I'm syncing up my CC's opt out list with my local system list. I need to update multiple contact opt out status at once but the bulk import end point does not provide this option. (http://developer.constantcontact.com/docs/bulk_activities_api/bulks-activities-import-contacts-api.h... It lets you update the email address but not the status.

 

The status option is available through the individual contact end point though. http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT.

 

I'm currently looping through my contacts and using the individual endpoint to update them but this is not resource-effective and there's also a call limit on CC's API. I wonder if there's a better way to sync the opt out list.

1 ACCEPTED SOLUTION
Member

Hello,

 

Because of the nature of an opt-out being linked directly to a user action, we have designed the system so that opt-outs must be managed using the individual contact endpoints. It is also worth mentioning that the status property of a contact cannot be changed to determine their opt-out status.

 

If you want to unsubscribe a contact, you would make a DELETE request to their individual contact endpoint:

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=DELETE

 

If you want to resubscribe a contact, you would make a PUT request to their individual contact endpoint with ACTION_BY_VISITOR and adding them to a list:

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

 

Please let me know if you ahve any questions!

 

EDIT: I also want to note that we can work with you on your daily quota for the API, and you can reach us at webservices@constantcontact.com for help.

 

Best Regards,

Elijah G.
API Support Engineer

View solution in original post

3 REPLIES 3
Member

Hello,

 

Because of the nature of an opt-out being linked directly to a user action, we have designed the system so that opt-outs must be managed using the individual contact endpoints. It is also worth mentioning that the status property of a contact cannot be changed to determine their opt-out status.

 

If you want to unsubscribe a contact, you would make a DELETE request to their individual contact endpoint:

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=DELETE

 

If you want to resubscribe a contact, you would make a PUT request to their individual contact endpoint with ACTION_BY_VISITOR and adding them to a list:

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

 

Please let me know if you ahve any questions!

 

EDIT: I also want to note that we can work with you on your daily quota for the API, and you can reach us at webservices@constantcontact.com for help.

 

Best Regards,

Elijah G.
API Support Engineer

View solution in original post

Frequent Participant

Thanks for the explanation Elijah, I'll try the sync with the default call limit for a few days and let you know if we need a higher quota.

 

I'm now trying to use the single contact post with the .NET wrapper and I'm getting a json error. I created a separate entry for this issue (https://community.constantcontact.com/t5/Developer-Support-ask-questions/json-array-issue-when-posti...

Thanks for the link to your other topic! I've provided some information there and please feel free to reply in that thread if you have any questions or problems!

 

Sincerely,

Elijah G.
API Support Engineer
Developer Portal

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

Visit Page