What's your biggest current challenge? Have your say in Community Polls along the right column.

Manage legal policies

Manage legal policies

pablocao
Shopify Partner
2 0 0

Hello! 
Im trying to query the following grahpql:

 

 

 

 

 

query GetShopPolicies {
shop {
myshopifyDomain
shopPolicies {
id
title
body
type
url
createdAt
updatedAt
}
}
}

 

 

 

 

 

 

 

 


i have the scopes for it 

read_legal_policies,read_privacy_settings"


But this is what i get from the query:

 

 

 

 

 

{
"errors": [
{
"message": "Access denied for shopPolicies field. Required access: `read_legal_policies` access scope. Also: The user must have access to manage legal policies.",
"locations": [
{
"line": 4,
"column": 5
}
],
"path": [
"shop",
"shopPolicies"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`read_legal_policies` access scope. Also: The user must have access to manage legal policies."
}
}
],
"data": null,
"extensions": {
"cost": {
"requestedQueryCost": 2,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1998,
"restoreRate": 100
}
}
}
}

 

 

 

 

 

Where do i have to give "access to manage legal policies"?
It is written in the docs that you must, but it doesnt say "How to"

References: https://shopify.dev/docs/api/admin-graphql/2024-07/objects/ShopPolicy

Reply 1 (1)

pablocao
Shopify Partner
2 0 0

91 views, no responses, is this not clear from my side? is there something wrong in my post?