@mike digital101 I am sure you can use v2 api calls as they are deprecated. I recommend leveraging this call instead:
https://developers.klaviyo.com/en/reference/create_client_subscription
which you can pass a JSON data like below:
{
"data": {
"type": "subscription",
"attributes": {
"profile": {
"data": {
"type": "profile",
"attributes": {
"subscriptions": {
"email": {
"marketing": {
"consent": "SUBSCRIBED"
}
},
},
"email": "user@example.com"
}
}
}
},
"relationships": {
"list": {
"data": {
"type": "list",
"id": "YOUR_LIST_ID"
}
}
}
}
}
— Jad A | Klaviyo + Shopify + API Integrations Specialist • 7+ Years' Experience Helping with new setups, seamless integrations, and API connections—happy to connect. http://ja-technical-consulting.xyz/