Skip to main content
Solved

[Custom api] Get profile from Shopify customer id

  • February 28, 2023
  • 2 replies
  • 575 views

Forum|alt.badge.img+1

I’m currently working on a custom api that lets you update custom properties on a klaviyo profile for use on my Shopify store.

However, I have an issue. I cannot seem to fetch a Klaviyo profile based off of a Shopify customer id? How do i fetch the Klaviyo profile associated with a specific Shopify customer?

Kind regards,

Best answer by Brian Turcotte

Hi @Fischeren!

 

That’s a good point and interesting use case. I will definitely reach out to Product and/or Engineering to determine if this functionality (or an equivalent) will be included in the new APIs at some point. 

 

I’ll update the thread as soon as I know more, and thanks for using the Community!

 

- Brian

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

2 replies

Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 2 replies
  • February 28, 2023

So after a big of digging I’ve found that you can retrieve a Profile ID from an email by using the legacy api.

https://developers.klaviyo.com/en/v1-2/reference/get-profile-id

But how future proof is this?

 

I imagine calling this endpoint first, to retrieve the Klaviyo Profile ID, then using the latest Klaviyo API to update the custom properties using the Update Profile endpoint:
https://developers.klaviyo.com/en/reference/update_profile


Brian Turcotte
Forum|alt.badge.img+37

Hi @Fischeren!

 

That’s a good point and interesting use case. I will definitely reach out to Product and/or Engineering to determine if this functionality (or an equivalent) will be included in the new APIs at some point. 

 

I’ll update the thread as soon as I know more, and thanks for using the Community!

 

- Brian