Shopify GraphQL Admin API newsletter sign in

Solved

Shopify GraphQL Admin API newsletter sign in

Squishylight
Visitor
1 0 0

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.Screenshot from 2024-07-03 22-19-03.png

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 belowScreenshot from 2024-07-03 22-18-36.png

Maybe there is different solution to integrate email/newsletter sign in to your custom front-end?

Accepted Solution (1)

Kyle_liu
Shopify Partner
101 14 17

This is an accepted solution.

Hi @Squishylight 

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 

 

Kyle_liu_1-1720081149230.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on (liushuaicc@shinetechsoftware.com)

View solution in original post

Reply 1 (1)

Kyle_liu
Shopify Partner
101 14 17

This is an accepted solution.

Hi @Squishylight 

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 

 

Kyle_liu_1-1720081149230.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me on (liushuaicc@shinetechsoftware.com)