Hi, I am selling some products and services and i am taking OptIn confirmation from customers to send them marketing emails and SMS.
Now when i create customer on Klaviyo and than use API “https://a.klaviyo.com/client/subscriptions?” they are still not subscribed to email and SMS Marketing. When i run above API,an email is sent to the customer to confirm the subscription.
Is there a way to automatically subscribe a customer to a particular list without sending a confirmation email to the customer?
Below is request body -
{
"data": {
"type": "subscription",
"attributes": {
"profile": {
"data": {
"type": "profile",
"attributes": {
"email": "test@gmail.com",
"phone_number": "+9797979"
},
"subscriptions": {
"email": {
"marketing": {
"consent": "SUBSCRIBED"
}
},
"sms": {
"marketing": {
"consent": "SUBSCRIBED"
},
"transactional": {
"consent": "SUBSCRIBED"
}
},
"whatsapp": {
"marketing": {
"consent": "SUBSCRIBED"
},
"transactional": {
"consent": "SUBSCRIBED"
}
}
}
}
}
},
"relationships": {
"list": {
"data": {
"type": "list",
"id": "Rt4K9n"
}
}
}
}
}