Replies posted by Steven P
Hi @alex.hong thank for the follow up here and hope you had a great weekend as well.If I had a way to query a Klaviyo profile from just their email (or phone number) I’d be able to get around this problem. It looks like the only way to fetch a Klaviyo profile is through their profile id. Perhaps I’m missing something here?Worst case I can fetch all Klaviyo profiles to my database and create an API internally to map the email addresses to Klaviyo profile ids - though that seems like bike shedding for what should be a simple task. Let me know if you uncover anything. Thanks!
Hi @alex.hong thanks for burning the late night oil with me to help me get this resolved. Much appreciated :) To answer your questions, a few points:The SMS message being sent to confirm consent is not being sent from any flow (if it were we could set up some flow filters to make sure they weren’t sent through it twice), it is being sent automatically by Klaviyo to confirm the double opt in to the list. In other words, as soon as the /subscribe endpoint is hit, Klaviyo sends a SMS text to the phone number. This isn’t related to any flow within Klaviyo - it’s the double opt in text from the list subscription. I’d expect Klaviyo to check if the customer has already consented to SMS before firing that text.To start, may I ask what purpose/utility there might be in having a customer having the ability to fill out the same form twice? This is a great question, and didn’t want to get too into the weeds (to avoid XY problem), but we’re looking to have separate forms on merchant websites that
Awesome David, thank you! I may have found a workaround though in case you were curious.We can fetch the customer’s email from their phone number via the Klaviyo `/identify` endpoint, and then pass the email into the backInStock endpoint. That would at least work for any SMS subscribers that already are in Klaviyo.
Most helpful members this week
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentialsLog in with Klaviyo
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.