FROM CACHE - en_header

Shopify Post Purchase Extension - retrieving customer information

New Member
2 0 3


We are in the process of building an app that leverage the post-purchase extension. I have a question related to getting the buying customer's information in the ShouldRender extension point.

I can see that in the PostPurchaseShouldRenderApi interface, I can get the customer id by going to inputData.initialPurchase.customerId. However, we would like to be able to get more information of the customer like name, email... Is there an API we can call from the extension to retrieve that information?

One possible solution is to make a call the our app backend so that the backend can then call Shopify API to retrieve the information. However, with this approach, we will be hitting the Shopify API rate limits pretty quickly if we do that for every single purchase.

Any thoughts?

Replies 0 (0)