Solved

I am getting "Access denied for automaticDiscountNodes field." even though I have scope

LouiseEH
Shopify Partner
36 3 4

Hi,

 

I have an app with the scope write_discounts.
I try the following query:

{
  automaticDiscountNodes (first: 3) {
    edges {
      node {
        id       
      }
    }
  }
}

And I get:

{
    "data": null,
    "errors": [
        {
            "message": "Access denied for automaticDiscountNodes field.",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "automaticDiscountNodes"
            ],
            "extensions": {
                "code": "ACCESS_DENIED",
                "documentation": "https://shopify.dev/api/usage/access-scopes"
            }
        }
    ],
    "extensions": {
        "cost": {
            "requestedQueryCost": 5,
            "actualQueryCost": 2,
            "throttleStatus": {
                "maximumAvailable": 1000.0,
                "currentlyAvailable": 998,
                "restoreRate": 50.0
            }
        }
    }
}

I use API version 2023-10.

 

Kind regards,

-Louise

Accepted Solution (1)

LouiseEH
Shopify Partner
36 3 4

This is an accepted solution.

Reply 1 (1)

LouiseEH
Shopify Partner
36 3 4

This is an accepted solution.