Skip to main content
Solved

API Customer Events not all being created


no_robot
Problem Solver I
Forum|alt.badge.img+1

Hello folks,

 

I have a cron job which sends customer events requests to Klaviyo daily. 

When this request, “reminder”, is posted to Klaviyo’s API multiple times for the same person, it does not seem to create events for all (my test today showed 2 of 4 were created).

While the title and time are the same, the properties sent with the request can differ - could this be the cause of the missing events and, if so, how can I make them “unique” so none are missed?
I don’t want to change the name of the event as they should all be the same and are being used to trigger a flow.

Thanks for any advice!
 

Best answer by Kim Strauch

💯

Events for the same profile, metric combo may get de-duped if they’re sent at the same time. The best way to avoid this if you have a valid use case for multiple of the same kind of event (with different properties) for a profile is to use a unique_id as you’re doing 

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

2 replies

no_robot
Problem Solver I
Forum|alt.badge.img+1
  • Author
  • Problem Solver I
  • 4 replies
  • January 24, 2024

I should have looked more closely at the docs!

There’s a unique_id field in the “attributes” of the request. I’ve used UUID in my app to create a unique ID for each request going through now.

https://developers.klaviyo.com/en/reference/create_event


Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • Answer
  • January 24, 2024

💯

Events for the same profile, metric combo may get de-duped if they’re sent at the same time. The best way to avoid this if you have a valid use case for multiple of the same kind of event (with different properties) for a profile is to use a unique_id as you’re doing