A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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?
Solved! Go to the solution
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
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
Yes, I resolve it. In private app I defined scope then uninstall the app after I installed it. It working fine.