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 2 (2)

ShopifyDevSup
Shopify Staff
1432 234 488

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...