I installed the GraphiQL explorer app with all admin and storefront permissions. When querying the ShopifyPaymentsAccount object, I get a permissions error. I am logged in as the store owner.
Hey @Michael_Zareno - happy to take a look into this! Would you be able to share the full GraphQL query youâre using and your Shopâs ID/myshopify.com URL? I can take a look on our end here to see if we can determine whatâs causing the issue/try to replicate it.
Hope to hear from you soon!
Hi Alan,
Iâm working in the Shopify GraphiQL app. The site is:
The query is a simple one:
query MyQuery {
shopifyPaymentsAccount {
payouts(query: âid:123546239282â) {
edges {
node {
id
}
}
}
}
}
The response:
{
âerrorsâ: [
{
âmessageâ: âAccess denied for payouts field.â,
âlocationsâ: [
{
âlineâ: 3,
âcolumnâ: 5
}
],
âpathâ: [
âshopifyPaymentsAccountâ,
âpayoutsâ
],
âextensionsâ: {
âcodeâ: âACCESS_DENIEDâ,
âdocumentationâ: âShopify API access scopesâ
}
}
],
âdataâ: {
âshopifyPaymentsAccountâ: null
},
âextensionsâ: {
âcostâ: {
ârequestedQueryCostâ: 3,
âactualQueryCostâ: 3,
âthrottleStatusâ: {
âmaximumAvailableâ: 4000,
âcurrentlyAvailableâ: 3997,
ârestoreRateâ: 200
}
}
}
}
I uninstalled and reinstalled the app, selecting all permissions in the admin and storefront scopes. Iâll change that after development, which is going to be with n8n. We have working workflows in n8n already, but we want to migrate them away from the REST API.
Mike
Thanks @Michael_Zareno - I was able to do some more digging into this on my end and there does seem to be something odd happening here. We might have to move this to DM since there is some shop-specific info weâll have to share, but Iâll loop back with you as soon as I have more info here.
Speak soon!
I have the same issue, also have granted all access scopes while installing the app and am logged in as shop admin.
Please let me know when you find a solution or explaination.
I can access the balance, but not balance transactions or payouts.
Example query for payouts that returns an access denied error:
query MyQuery {
shopifyPaymentsAccount {
bankAccounts(first: 5) {
nodes {
payouts(first: 10) {
nodes {
status
net {
amount
currencyCode
}
}
}
}
}
}
}
Response:
{
âerrorsâ: [
{
âmessageâ: âAccess denied for payouts field.â,
âlocationsâ: [
{
âlineâ: 5,
âcolumnâ: 9
}
],
âpathâ: [
âshopifyPaymentsAccountâ,
âbankAccountsâ,
ânodesâ,
0,
âpayoutsâ
],
âextensionsâ: {
âcodeâ: âACCESS_DENIEDâ,
âdocumentationâ: âShopify API access scopesâ
}
}
],
âdataâ: {
âshopifyPaymentsAccountâ: null
},
âextensionsâ: {
âcostâ: {
ârequestedQueryCostâ: 24,
âactualQueryCostâ: 6,
âthrottleStatusâ: {
âmaximumAvailableâ: 2000,
âcurrentlyAvailableâ: 1994,
ârestoreRateâ: 100
}
}
}
}
I am also getting this same error. It has been driving me crazy for the past few days and I am unsure what is going on.
Even running a simple payout request gets me an access denied. Iâve tried on 3 different Shopify stores and nothing charged.
{
shopifyPaymentsAccount {
payouts {
nodes {
net {
amount
}
}
}
}
}
{
"errors": [
{
"message": "Access denied for payouts field.",
"locations": [
{
"line": 3,
"column": 5
}
],
"path": [
"shopifyPaymentsAccount",
"payouts"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes"
}
}
],
"data": {
"shopifyPaymentsAccount": null
},
"extensions": {
"cost": {
"requestedQueryCost": 3,
"actualQueryCost": 3,
"throttleStatus": {
"maximumAvailable": 20000,
"currentlyAvailable": 19997,
"restoreRate": 1000
}
}
}
}
Looking deeper into the scopes, I see I have access to view shopify payments, which should allow access to payouts
query AccessScopeList {
currentAppInstallation {
accessScopes {
handle
}
}
}
{
"data": {
"currentAppInstallation": {
"accessScopes": [
{
"handle": "read_fulfillments"
},
{
"handle": "read_payment_customizations"
},
{
"handle": "read_payment_gateways"
},
{
"handle": "read_payment_mandate"
},
{
"handle": "read_payment_terms"
},
{
"handle": "read_products"
},
{
"handle": "read_shopify_payments"
},
{
"handle": "write_shopify_payments_accounts"
},
{
"handle": "read_shopify_payments_bank_accounts"
},
{
"handle": "write_shopify_payments_dispute_evidences"
},
{
"handle": "write_shopify_payments_dispute_file_uploads"
},
{
"handle": "write_shopify_payments_disputes"
},
{
"handle": "unauthenticated_read_content"
},
{
"handle": "unauthenticated_read_product_listings"
},
{
"handle": "read_shopify_payments_accounts"
},
{
"handle": "read_shopify_payments_dispute_evidences"
},
{
"handle": "read_shopify_payments_dispute_file_uploads"
},
{
"handle": "read_shopify_payments_disputes"
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 2,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 20000,
"currentlyAvailable": 19998,
"restoreRate": 1000
}
}
}
}
Just bumping this as weâre approaching 2 weeks without a solution, and a number of users have a similar issue
Bumping again! I would love to have solution for this issue!
helloo! it seems that all scopes of all Shopify GraphiQL Apps have been modified to this:
âdata": {
âcurrentAppInstallation": {
âaccessScopes": [
{
âhandle": âread_contentâ.
},
{
âhandle": âread_productsâ
},
{
âhandle": âunauthenticated_read_contentâ
},
{
âhandle": âunauthenticated_read_product_listingsâ
}
]
}
Also, I canât change the permissions by uninstalling the app and reinstalling it with all the scopes enabled.
Hey folks - - still looking into the larger issue, but hope to have an update soon - thank you for your patience on this.
@victor Iâm not seeing those changes on my end here, my GraphiQL app is still retaining the scopes Iâve set for it. Are you still encountering the issue there?
If so, just let me know and if you can share your shopâs ID/myshopify.com URL, I can for sure take a look into this for you.