Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shopify : Errors: [API] This action requires merchant approval for write_themes scope

I am new to Shopify and I'm trying to setup Shopify themekit locally.

I have created an private app and setup my store, but while trying to access store using theme kit I get this error:

Errors: [API] This action requires merchant approval for write_themes scope.

like image 675
Jatin Parmar Avatar asked May 16 '18 07:05

Jatin Parmar


2 Answers

Private apps have limited permissions like public apps do. You can fix your app's permissions by opening the private apps section of the admin and tapping on the name of your app.

Scroll down to the section labelled ADMIN API PERMISSIONS and tap on ▼ Review disabled Admin API permissions. Set Theme templates and theme assets to Read and write and then save and it should work.

like image 175
Josh Brown Avatar answered Nov 08 '22 12:11

Josh Brown


After going into Settings > Apps & Channels, you need to click on 'Develop Apps' button, and then select the related app to access the API settings.

This error may occur for any number of permissions (though the OP asked about 'write_themes' scope).

Errors: [API] This action requires merchant approval for {PERMISSION} scope.

{PERMISSION} may be any number of the listed API permissions. Those without access are now listed under 'Inactive' (vs. 'Disabled').
Search for the permission most closely related to the one listed in your error: e.g. "errors": [api] this action requires merchant approval for read_content scope. is related to "Store Content" permission = Read.

It's also worth checking that your webhook API version is aligned between the Shopify App config and your private app.

Once you've made your edits and save, you'll be asked to confirm that you want to edit these settings. This is just to make sure you understand what within your store you are giving the app access to; if you are good with the implications, approve and submit and retry the API call from your private app.

like image 1
Rob Riccio Avatar answered Nov 08 '22 13:11

Rob Riccio