Access Denied in Customer Account UI Extension

Hi Guys,

Having a bit of an issue with a Customer Account UI Extension I am working on. I am Building a custom self service return portal and am getting a missing scope error when trying to do an orderRequestReturn.

Which is strange because I have the scope set up in my toml and its showing up in the app setting in the shopify admin.

Here is the requestID: 51e3b91d-8f17-402c-b4a3-5be387ea994c-1751374184

Could someone have a look and let me know if I am doing something wrong?

Cheers,
Gary

Have you done a deployment with the access scopes and accepted them? Just to check

Yep, otherwise it wouldnt have shown up in the app admin under scopes. I did an extra deployment and it didn’t show any changes in the toml either.

Just to be on the safe side I did another deployment anyway, but no joy.

Cheers

I ended up querying the app installation to find out what scopes where listed for the app, and thats where the issue was. I thought that running the app automatically handled any new scopes as well. But if you change the scopes, publish the app and then run shopify app dev, the scopes do not get updated.

You need to actually re-install the app on the shop for the new scopes to be recognized.

Just in case anyone else gets caught by this.

Cheers,
Gary

1 Like