Shopify:错误:[API]此操作需要商家批准write_themes范围

Jat*_*mar 2 shopify shopify-app

我是Shopify的新手,正在尝试在本地设置Shopify themekit。

我创建了一个私人应用程序并设置了我的商店,但是在尝试使用主题工具包访问商店时出现此错误:

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

Jos*_*own 13

私有应用程序具有与公共应用程序一样的有限权限。您可以通过打开管理员的“私人应用程序”部分并点击应用程序的名称来修复应用程序的权限。

向下滚动到标记的部分,ADMIN API PERMISSIONS然后点击? Review disabled Admin API permissions。设置Theme templates and theme assetsRead and write然后保存,它应该可以工作。

  • 值得注意的是,这必须在*商家*网站上完成,而不是在合作伙伴网站上完成。 (3认同)

mur*_*fel 7

2023年答案

转到您的商店管理网站 https://admin.shopify.com/store/{your-website-name}

转到Settings(左下角)-> Apps and sales channels-> Develop apps-> [选择您的应用程序] ->Configuration选项卡 -> 编辑Admin API integration-> 搜索所需的范围。

仅供参考:私人应用程序已停止使用,现在称为自定义应用程序。