Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

how to get the shop owner Firstname and lastname using graphql api.

Solved

how to get the shop owner Firstname and lastname using graphql api.

1080
Shopify Partner
301 9 66

Hi all ,

I want to get the shopwner firstname and lastname. I have try to access the shop object but not able to get the shop ower data.

 

do i need to access the all custom ?

here sample code i am try to access with graphQl. 

 

{
  shop
  
  {
    email
    customerAccounts
    
   contactEmail
    features {
      avalaraAvatax
      branding
      
    }
    name 
    
    myshopifyDomain
    url
    setupRequired 
    description
billingAddress
    {
      company
      city
      country
      address1
      address2
      formattedArea
      phone
      zip
      provinceCode
    }
  }
}

 

Accepted Solution (1)
Shayne
Shopify Staff (Retired)
254 20 48

This is an accepted solution.

You can get the shop email as a part of the `shop` object — but you can't get the merchants name unless they're on a plan that supports the StaffMember resource.

Shayne | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 3 (3)

Shayne
Shopify Staff (Retired)
254 20 48

This isn't information that you're able to get through the API for all stores.

If the shop is on the Advanced or Plus plans, you can use the StaffMember resource in GraphQL to get the information that you're looking for.

Shayne | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

1080
Shopify Partner
301 9 66

@Shayne  Thanks for the answer, I understand.  but there is any way to get the user are accessing the app access user  name I can and automate chat bot replay to user if they need help. same as shopify app support making the user name and store url email automatic fill i want slimier things. 

Shayne
Shopify Staff (Retired)
254 20 48

This is an accepted solution.

You can get the shop email as a part of the `shop` object — but you can't get the merchants name unless they're on a plan that supports the StaffMember resource.

Shayne | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog