How to get/retrieve customer ID by using Graphql

New Member
1 0 1


I'm working on a mobile app and I need the customer ID to let the user upload his own products  (I use customer id to insert it in custom db "private app in shopify"). I searched many place and found not result, I have the customer access token and customer encrypted id but i really need the short customer Id, kindly advise thank you

Reply 1 (1)
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 185

Hey @Sodyda ,


You can Base64 decode the encrypted Customer ID returned from the Shopify Storefront API to get the unencrypted Customer ID. A resource like this will help:


Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution