For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
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
}
}
}
Solved! Go to the solution
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
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
@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.
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