Question about add member API

  • 1
  • 1
  • Question
  • Updated 6 months ago
If I call the add member api with a email address and a group I want to add them to, if that email is already a member and belongs to other groups, will the api recognize them and just add that group to the existing member id? Also, if that member has opted out of mailings, will they remain opted out if I make this call? What if I call the api with an email of somebody who already belongs to that group?

Basically I'm working for somebody who has a shop that rents equipment. He's got mailings to specific groups corresponding to categories of what he rents. So if somebody rents something in category "A", they get added to the group for that category. If they subsequently rent something in category "B", I want to add them to that additional group, but also if they got the previous "A" mailing and thought "Oh, I don't want these mailings any more", I don't want them to start getting mails again just because they rented something else from us.
Photo of Paul Tomblin

Paul Tomblin

  • 6 Posts
  • 0 Reply Likes

Posted 6 months ago

  • 1
  • 1
Photo of Ross Cochran

Ross Cochran, Official Rep

  • 133 Posts
  • 10 Reply Likes
Hi Paul,

TheĀ POSTĀ /#account_id/members/addAdds or updates a single audience member. So if you use that, you will add a new member if they don't exist and update an existing member that is in your audience. This wouldn't remove any group assignments.

If a member has opted out, that call won't opt them in. There are a few ways that a customer would be able to opt in, but the easiest is with an actual Emma signup form. You can find instructions on how to do that here:
https://support.e2ma.net/Resource_Center/Account_how-to/How_to_opt_someone_back_in

I hope that helps! Let us know if we can help with anything else.

Cheers!
Photo of Paul Tomblin

Paul Tomblin

  • 6 Posts
  • 0 Reply Likes
Awesome, that's exactly what I'd hoped.