Skip to main content
Contributor I
February 28, 2023
Solved

[Custom api] Get profile from Shopify customer id

  • February 28, 2023
  • 2 replies
  • 819 views

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,

    This topic has been closed for replies.
    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

    2 replies

    FischerenAuthor
    Contributor I
    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
    Klaviyo Alum
    March 1, 2023

    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