Error from API: "a is not a valid status for member ### with current status o"

  • 0
  • 2
  • Question
  • Updated 3 years ago
  • Answered
I'm testing the API, specifically updating a member's subscription preferences (http://api.myemma.com/api/external/me...).

I'm able to create a new member and set the member's status to opt-out, but I can't switch it back. When I do I get the following error:

"a is not a valid status for member 336875713 with current status o"

If I was able to set the status to "o" why couldn't I switch it back to "a"? Is there another endpoint I should use instead of PUT /:account_id/members/:member_id?

Should I be using a different status (other than "o") to turn off emails for the members? Or should I just be deleting the members instead of setting the status to "o"?

Thanks.
Photo of Brian Ecker

Brian Ecker

  • 6 Posts
  • 1 Reply Like

Posted 5 years ago

  • 0
  • 2
Photo of Katie Lewis

Katie Lewis, Official Rep

  • 3414 Posts
  • 309 Reply Likes
Official Response
Hi Brian! You aren't able to change someone from Opt-Out status to Active using the API for the same reason you can't do this within your account: We have to protect the person who has chosen to opt out of your emails.

There are four ways someone who has opted out can be changed back to Active, but you aren't able to do this using the API.
You can continue using the o status to opt someone out of receiving your emails -- just know that they'll have to choose to opt back in. You can delete them if you want to remove them entirely from your view, but it isn't necessary.

However, you can undelete members yourself without waiting on the action of those members. So whether you opt someone out or delete them depends on your expectation down the line -- whether they'll want to rejoin your list (requires action on their part) or you want to add them back to your audience to send to them (by undeleting them).

I hope this helps, Brian, but let me know if you have any other questions!