approval of additional API calls for a custom app

Solved
thanos982
New Member
2 0 1

Hello,

I'm developing a custom app for my client. I'm running into a couple of API permissions errors.

One of them is about updating products via the Shopify API. The error I get is:

Forbidden ([API] This action requires merchant approval for write_products scope

How can I setup my custom app to request approval for additional API calls? (eg writing products and reading assets). I can't find any relevant settings in my partners apps config pages.

Am I missing something?

Thanos

0 Likes
Nitin_Kujur
Shopify Partner
79 19 25

This is an accepted solution.

@thanos982 you need to include the required access scopes, for your case its write_products in your app's shopify configuration code file.

Which technology platform you are using for the app development?

0 Likes
thanos982
New Member
2 0 1

Got it, thanks @Nitin_Kujur 

I'm developing with rails, so I needed to change the setting config.scope in config/initializers/shopify_app.rb

Thanks again!

Nitin_Kujur
Shopify Partner
79 19 25

@thanos982 yes that's correct.

0 Likes