Solved

How to avoid duplicated 'Subscribed to Email Marketing' events

  • 20 March 2024
  • 2 replies
  • 22 views

Badge

I have a service that executes daily to sync all customers to Klaviyo via the Create or Update Profile API v2024-02-15. Each customer has an ID (to be used as external_id) and an Email, which can serve as identifiers in the Klaviyo system.

The issue arises because I'm unaware of which customers are already synced and subscribed to marketing emails. Therefore, after sending the customer information via the aforementioned API, I also send another request to subscribe the customer's email for marketing purposes using the Subscribe Profiles API. However, this leads to the creation of duplicated events for 'Subscribed to email marketing' within the customer profiles.

My question is: How can I avoid the creation of duplicated 'Subscribed to email marketing' events when the email is already subscribed? Alternatively, is there a way to check if a profile is already subscribed to marketing emails?

Thank you in advance for your assistance!

icon

Best answer by an-nguyen-codeleap 20 March 2024, 10:29

View original

2 replies

Badge

I just checked again. It seems to be resolved. I don’t see duplication events anymore.

Userlevel 7
Badge +36

Hi @an-nguyen-codeleap!

Glad to hear it resolved!

Best,
Brian

Reply