Solved

klaviyo exchange id returns multiple klaviyo profiles

  • 19 February 2024
  • 5 replies
  • 76 views

Badge +1

Hello,

recently we’ve been using the klaviyo exchange id which exists on the client in order to fetch the profile.
we use this api call:
https://a.klaviyo.com/api/profiles/
and with filters set to filter=equals%28_kx%2C%27exchange_ID…

for some reason, we sometimes get multiple profiles as the response, and are unsure why it happens, any hint will help.
 

Thanks,

icon

Best answer by KeviSunshine 19 February 2024, 21:30

View original

5 replies

Userlevel 4
Badge +7

I’ve never used Exchange IDs and am curious how they work; are these definitely unique IDs?

Is there anything noticeable in the response when you get multiple profiles? I’d look for potential duplicate profiles, a missing exchange ID (i.e., all profiles w/o exchange IDs are returned), etc.

Also, can you show the exact endpoint you’re using to get the profile? (A link to the Klaviyo API documentation would be perfect).

 

Any additional details will help!

 

Best,

Kevin.

Badge +1

yes, klaviyo stores a signed id which help identification in the backend (they used to store the email but moved to a more secure way).
i’ll research a bit the data to see if i’m finding something interesting about why there are multiples.

re link, here it is:
https://developers.klaviyo.com/en/reference/get_profiles
you’ll see that there’s a _kx filter you can use (5th in the list of filters)

Userlevel 4
Badge +7

Ahh, okay, and these IDs are in the format `01HP7C33YVB0N24TP22Z0XH76G`? Is the exchange ID the same thing as the Klaviyo profile ID?

Badge +1

no, it’s in a different format. you can find some more info in this link..
https://community.klaviyo.com/developer%2Dgroup%2D64/access%2Dklaviyo%2Demail%2Daddresses%2Din%2Djavascript%2Dto%2Dpass%2Dto%2Dlucky%2Dorange%2D4998?postid=18106#post18106

Userlevel 4
Badge +7

Okay, that thread is referring to entities that seem to be deprecated or in the process of being deprecated; I am not sure how to proceed.

Is it possible for you to identify an exchange ID that returned multiple profiles? I have a feeling this exchange ID might not be unique and that’s what the problem is; I must assume it’s possible to have multiple profiles with the same exchange ID.

Reply