approval of additional API calls for a custom app

Solved
thanos982
Tourist
6 0 3

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

Accepted Solution (1)

Accepted Solutions
Nitin_Kujur
Shopify Partner
81 19 33

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?

View solution in original post

Replies 3 (3)
Nitin_Kujur
Shopify Partner
81 19 33

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?

thanos982
Tourist
6 0 3

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
81 19 33

@thanos982 yes that's correct.