A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hey
I've been developing custom storefront for my Shopify store. Everything has went well until I've tried to implement newsletter/email opt in. There seems no specific mutation for that. The closes solution I could think of is creating an entirely new user for that. But implementing that there also seems to be some kind of issues. I've added write_customer permissions to my admin API as seen on the first image.
After that I tried using Shopify's Graphiql to test this out. It shows either I don't have write_customers access scope or user needs customers permissions. How should i grant user customer permission? Check the image below
Maybe there is different solution to integrate email/newsletter sign in to your custom front-end?
Solved! Go to the solution
This is an accepted solution.
The two images you are using are two apps. The first image shows the permission configuration of the custom app, and the second image shows the Shopify GraphiQL App. If you want to solve the error in the second image, you can try uninstalling and reinstalling the Shopify GraphiQL App as a testing tool. It is recommended to choose all the permissions you have.
https://shopify-graphiql-app.shopifycloud.com/login
This is an accepted solution.
The two images you are using are two apps. The first image shows the permission configuration of the custom app, and the second image shows the Shopify GraphiQL App. If you want to solve the error in the second image, you can try uninstalling and reinstalling the Shopify GraphiQL App as a testing tool. It is recommended to choose all the permissions you have.
https://shopify-graphiql-app.shopifycloud.com/login