Hey guys, I’m looking to send alerts via SMS for Back In Stock events. The Klaviyo BIS API currently only supports sending events via email, see curl request:
curl 'https://a.klaviyo.com/api/v1/catalog/subscribe' --data 'a=AccountID&email=test@klaviyo.com&variant=5000149172256&platform=shopify'
What we are currently doing is forcing every customer who enters their phone number to also enter their email. This works, as we can just pass in the email to the BIS endpoint, and then within the BIS Flow we can configure it to send text messages to customers who have their phone numbers set up. This works fine, however we are running into the following issue:
We are looking at pulling in customer back in stock notification data that don’t have any emails associated with them (just phone numbers), so this method (of requiring the customer to have an email) won’t work. If we could send data to the catalog/subscribe endpoint using SMS that would be perfect, or a Klaviyo profile id, but that isn’t supported.
What I’m considering doing is for these customers who only have phone numbers and no emails, creating a spoofed email, e.g. “backinstock1@gmail.com”, that I can just use effectively as an identifier to pass into the BIS endpoint. This would work, but it wouldn’t be ideal, as now you have contacts with random email addresses. And depending on the rest of the back in stock workflow you could end up sending emails to these addresses. Perhaps I’m missing something, can anyone think of a better workaround?
Thanks in advance!
Steven