How can I grant write_discounts access to my developed app?

Solved

How can I grant write_discounts access to my developed app?

Nortski
Shopify Partner
20 0 5

How do I grant the write_discounts access scope to the app I'm developing?
I have included it in the .env file and have restarted the server numerous times but still access is denied.

Please advise. Thank you.

Accepted Solution (1)
toobiza
Shopify Partner
35 5 7

This is an accepted solution.

To reinstall you can use the cli `shopify app serve` then click on the link https://XXX-XXX-XXX.ngrok.io/login?shop=your_shop_dev_store.myshopify.com (basically your ngork link).

View solution in original post

Replies 6 (6)

toobiza
Shopify Partner
35 5 7

Did you try to reinstall the app to grant permission?

Also can you share the scope in your session? (You can get that by printing the session object that is generated at the beginning of oauth).

Nortski
Shopify Partner
20 0 5

I'm developing on my local machine so how do I uninstall then reinstall my app on my development store? I'm using the Shopify cli with node.
This is all new to me.

toobiza
Shopify Partner
35 5 7

Go to your https://YOUR_SHOP_DEV_STORE.myshopify.com/admin/apps where YOUR_SHOP_DEV_STORE should be replaced by the name of dev store. Once there you should see your app, then click on delete.

Nortski
Shopify Partner
20 0 5

But how do I reinstall? My app isn't in the app store, is there a Shopify cli command that will resinstall it?

toobiza
Shopify Partner
35 5 7

This is an accepted solution.

To reinstall you can use the cli `shopify app serve` then click on the link https://XXX-XXX-XXX.ngrok.io/login?shop=your_shop_dev_store.myshopify.com (basically your ngork link).

Nortski
Shopify Partner
20 0 5

Thank you, that worked.