Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Error calling cancel order api in public app.

Solved

Error calling cancel order api in public app.

vikramforsk2019
Tourist
5 1 0
but giving this error:
      This action requires merchant approval for write_orders scope
my app is public app not private.pls help me.
Accepted Solution (1)
vikramforsk2019
Tourist
5 1 0

This is an accepted solution.

SHOPIFY_API_SCOPE = os.environ.get('SHOPIFY_API_SCOPE', 'read_products,write_products,read_orders,write_orders').split(',')

 

yes before installation i changed  permission as above write_orders.

View solution in original post

Replies 2 (2)

Gregarican
Shopify Partner
1033 86 293

The OAuth process where the Shopify user accepts the prompted access permissions should have this option included. Your app that you have created should include this, so that when the user completes the OAuth process they have granted access to all of the proper scopes.

vikramforsk2019
Tourist
5 1 0

This is an accepted solution.

SHOPIFY_API_SCOPE = os.environ.get('SHOPIFY_API_SCOPE', 'read_products,write_products,read_orders,write_orders').split(',')

 

yes before installation i changed  permission as above write_orders.