Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Cannot add scope read_shopify_payments

Cannot add scope read_shopify_payments

supermamka
Visitor
3 0 1
Hi, I want to call graphql endpoint shopifyPaymentsAccount but its required access: Required access: `read_shopify_payments` access scope. Also: User must have the shopify_payments_transfers permission."

And the problem is that in my admin I dont see any read_shopify_payments. I saw some discussion in community and was require to writte ticket to your support --> https://community.shopify.com/c/graphql-basics-and/access-denied-for-balancetransactions-field/m-p/2...

this is the request and response to it.

{
"query": "{ shopifyPaymentsAccount { id balance { amount currencyCode } defaultCurrency payoutSchedule { interval monthlyAnchor weeklyAnchor } verifications { id status subject { familyName givenName } } } }"
}

and I am getting this error:
{
"errors": [
{
"message": "Access denied for payoutSchedule field. Required access: `read_shopify_payments` access scope. Also: User must have the shopify_payments_transfers permission.",
"locations": [
{
"line": 1,
"column": 79
}
],
"path": [
"shopifyPaymentsAccount",
"payoutSchedule"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`read_shopify_payments` access scope. Also: User must have the shopify_payments_transfers permission."
}
}
],
"data": {
"shopifyPaymentsAccount": null
},
"extensions": {
"cost": {
"requestedQueryCost": 4,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 2000.0,
"currentlyAvailable": 1998,
"restoreRate": 100.0
}
}
}
}

 

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 525

Hey @supermamka

 

Thanks for sharing that. The error messages around these API's are currently a bit confusing. The read_shopify_payments scope is no longer available to be requested. We've adopted more granular scopes depending on the access you're needing. 

 

Just looking at our documentation here, the scope you can request is read_shopify_payments_accounts. That should give you the access you need. The same goes for the other Shopify payment resources, the scope you should request is the alternative mentioned to read_shopify_payments. 

 

 

If you still get errors after that, when you have the proper scopes, reach out to our support teams with the affected store, app and description of the error (link to this forum thread as well if you can) and we can take a closer look. 

 

Hope that helps. 

 

- Kyle G. 

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

supermamka
Visitor
3 0 1

I have all scopes which you offer...

Michel00
Visitor
3 0 0

Hi Kyle,

I'm having the same issue.

I am able to summon the ShopifyPaymentsAccount object because my app has the read_shopify_payments_accounts access scope enabled (as well as every other access scope).

However, some objects within the ShopifyPaymentsAccount still require the read_shopify_payments access scope, which is not available anymore.

In my query, for instance, I queried chargeStatementDescriptors, but I got the same error, that I need the read_shopify_payments access scope, even though it is unavailable.

In @supermamka's request, the ShopifyPaymentsPayoutSchedule object requires the read_shopify_payments access scope.

In the docs, we see that both of these objects require the read_shopify_payments access scope.

So I suppose this is something that'll have to be fixed?

I'm on API version 2024-10 if that matters.