Getting the store owner email on an app install

LeoMedeiros
Shopify Partner
1 0 2

Hi,

 

We are building an app to integrate our product to Shopify and we want to retrieve the store owner email to use that as a master account credential that will group all the store owned by the user. But we can't get that. The Shop object returns the owner name but not his email. And the Shop->email and Shop->customer_email are returning the Store contact information, not the Store owner information. 

 

Is there a way to get the Store owner email? 

 

Regards,

Leonardo.

Replies 5 (5)
ColinCW
New Member
2 0 0

Having the same issue, did you manage to find a solution?

HunkyBill
Shopify Expert
4838 60 590

The store owner's email is and always has been the Shop object email. I am not sure why you think different on this. It is easy to prove. Just examine the current Shop object and compare with reality in the Admin of your test shop.

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
ColinCW
New Member
2 0 0

Because its not. Shop.email is corresponds to the "Store contact email" not the email of the store owners account. It does however default to the store owners email but can be changed at any time.

HunkyBill
Shopify Expert
4838 60 590

And just what email does the person paying the bill for the shop use? How is that different from the store owner? In other words, what phantom are you asking for?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
BStubbs
Shopify Partner
136 16 61

It might be easier to reference the docs here.

https://shopify.dev/api/admin-rest/2021-07/resources/shop#resource_object

email
The contact email used for communication between Shopify and the shop owner.

Versus:

customer_email
The contact email used for communication between the shop owner and the customer.
 
Shop.email
The shop owner's email address. Shopify will use this email address to communicate with the shop owner.
If you are really trying to find a unique email address that you can apply to an individual, who might own multiple shops but have different shop emails for the shops, then you are probably out of luck here. You can't get the 'user' details of the shop owner. 
Was this helpful? Press like!
Did it fix the problem? Mark it as the solution for others!
Buy me a beer? Well, sure!