I hope to use the API to create new user accounts and to renew existing accounts.
Our members will renew their license via our association website (completely different website to the one this query is related to) and I will receive an email notification with their profile details.
I will pipe that email and retrieve the required info to set up an account for them in S2member using the 'create-user ' code displayed here: https://s2member.com/kb-article/pro-api-for-remote-operations/
As I will be creating new users and also modifying the subscription of current users I was wondering if there is a way to check if a member already exists using their email address instead of their username?
Does anything like this exist in S2member?: "modify_if_email_exists" => "1" ?
I can see that "modify_if_login_exists" => "1" is available to use, but I will not be able to determine the user's usernames for this check fro the piped email.