get customer logged in email before order is processed

get customer logged in email before order is processed

seixas
Shopify Partner
3 0 0

Cheers,

 

I'm using a private APP, and I'm calling shopify API in order to get the logged in user email after checkout by calling the endpoint: admin/api/2022-01/users/current.json but I allways get the HTTP 404 with the following message:

 

"{
"errors": "Not Found"
}"

 

From other endpoint I can retrieve information from admin/api/2022-01/orders.json but I still have "user_id": null, even though the order was made by a logged user.
Is there any way to get the user_id and logged email before the order is processed ?

 

Thanks

Replies 0 (0)