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.
Basically I want to access the current values of the metafields that was set with
discountAutomaticAppCreate so I can show the current value of the fields in the UI the merchant can use to configure the automatic discount. One way to access the information is via automatic discount nodes. querying all metafields is in the unstable API version, querying private metafields does not work (created the metafields with th $app: prefix in the namespace).
Kind regards,
-Louise