What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Oauth error invalid_scope: The access scope is invalid: shopify_payments_payouts

Solved

Oauth error invalid_scope: The access scope is invalid: shopify_payments_payouts

hasnainmalik
Shopify Partner
10 0 5

I am using transaction api https://shopify.dev/api/admin-rest/2022-07/resources/transactions. This api required shopify_payment_payouts scope. I am providing it in .env file but I'm getting this error how can I resolve it?

 

hasnainmalik_0-1674712976624.png

 

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

Hey @hasnainmalik - that is strange, from the screenshot you provided, it does look like you've formatted the scope properly in your env file. Can you try requesting the shopify_payments scope on the shop through your app and see if you're able to make the API call that way? This scope is valid for the transactions API endpoint too. If this works - we would recommend continuing to use the shopify_payments scope, but I will do some more troubleshooting to see why the other scope is returning that OAuth error as well. 

Hope to hear from you soon - if neither scope works, I'll look into this further with my team, just let us know. 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

Hey @hasnainmalik - that is strange, from the screenshot you provided, it does look like you've formatted the scope properly in your env file. Can you try requesting the shopify_payments scope on the shop through your app and see if you're able to make the API call that way? This scope is valid for the transactions API endpoint too. If this works - we would recommend continuing to use the shopify_payments scope, but I will do some more troubleshooting to see why the other scope is returning that OAuth error as well. 

Hope to hear from you soon - if neither scope works, I'll look into this further with my team, just let us know. 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

hasnainmalik
Shopify Partner
10 0 5

Yes, I resolve it. In private app I defined scope then uninstall the app after I installed it. It working fine.