Hey there,
I got stuck on a point while working with shopify API’s. let me explain my scenario, I am redirecting the customer from my app to shopify store, I want to keep track of that customer until he places the Order and I want to differentiate each customer with their phone number which i want to pass from my app while redirecting the user. My question is, Is there any way I can achieve this like while redirecting the customer from app I will pass his phone number with the url and will need that number while the customer is placing the order. I have search the shopify sessions and cookies but didn’t get anything helpful.
Thanks and Regards,
Fawad Khan
1 Like
Hey @Fawadk327 , thanks for reaching out. There are a couple of ways you could do this based on what the customer data you need is/when you need it. The easiest way to do this is using the customer resource within our admin API. This does require customer-related access scopes from the merchant though.
An example of app logic that you could implement, would be allowing customers to input their contact information in your app. Then, your app redirects them to Shopify where an account for them is automatically created through the Customer resource API call linked above.
You could then use the customer/create and customer/update webhooks to confirm the customer account matches what is in your app. The customer would then be able to log into the merchant’s shop with the created account and checkout using the information they originally input.
Let us know if we can clarify anything further on our end here - hope this helps!