Skip to main content
Solved

custom signup form in Magento 2


Forum|alt.badge.img+1

Hi,

We have a custom signup form in our magento site. It was using the old api api/v2/list/members and we would pass email, first name, last name and consent. 

In the new api I have tried to create a type=profile to api/profiles/ ( https://developers.klaviyo.com/en/reference/create_profile) then add the profile to a list using api/profile-subscription-bulk-create-jobs/ 

I have also tried to just use api/profile-subscription-bulk-create-jobs/ (but do not know how to get the first name and last name in as https://developers.klaviyo.com/en/reference/subscribe_profiles does not show those fields). 

To do it the way we did in v2 would be https://developers.klaviyo.com/en/reference/create_list_relationships based on what I read on the comparison chart but I do not see what data I can pass or how it is expected. 

The first two ways I am trying work to get the user signed up to the list that I specified that is not double opt in, but in both cases it also sends the double opt in for another general list that I did not intend. Any ideas what I am doing wrong ? 

--Vince

Best answer by Brian Turcotte

Hi @VinceB!

My apologies for the delay here!

Would you mind sharing the exact API calls you used there (with any sensitive information redacted)?

Best,

Brian

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Brian Turcotte
Forum|alt.badge.img+37

Hi @VinceB!
 

I’m going to check on this internally and I’ll update the thread ASAP!

Best,

Brian


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • February 8, 2024

Hi @VinceB!

My apologies for the delay here!

Would you mind sharing the exact API calls you used there (with any sensitive information redacted)?

Best,

Brian