user-1
(User 1)
September 8, 2023, 7:27pm
1
This topic was automatically generated from Slack. You can find the original thread here .
Hi, anyone else having permission issues connecting / writing to their Shopify instance? I’m getting an error:
This app is not approved to access the Order object. See https://partners.shopify.com/______/apps/_______/customer_data for more details ....
user-1
(User 1)
September 8, 2023, 7:27pm
2
Hm, interesting. Are you using a built-in action or trigger, or are you making a custom request to Shopify using code or the HTTP action?
user-1
(User 1)
September 8, 2023, 7:27pm
4
using axios to do a graphql call
user-1
(User 1)
September 8, 2023, 7:27pm
5
using the oauth_access_token associated to the account
user-1
(User 1)
September 8, 2023, 7:27pm
6
const response = await axios($, {
method: "post",
url: `https://${this.shopify.$auth.shop_id}.[myshopify.com/admin/api/2023-07/graphql.json](http://myshopify.com/admin/api/2023-07/graphql.json)`,
headers: {
"X-Shopify-Access-Token": `${this.shopify.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
data,
})
user-1
(User 1)
September 8, 2023, 7:27pm
7
Thank you, that’s helpful. Can you confirm what API you’re making a request to?
user-1
(User 1)
September 8, 2023, 7:27pm
8
"query": `{
order(id: "${gid}") {
fulfillmentOrders(first: 1) {
edges {
node {
id
createdAt
status
lineItems (first: 100) {
edges {
node {
id
sku
productTitle
variantTitle
requiresShipping
totalQuantity
weight {
unit
value
}
}
}
}
assignedLocation {
name
city
zip
location {
id
}
}
}
}
}
}
}
user-1
(User 1)
September 8, 2023, 7:27pm
9
give you more context, we didn’t make any changes and it’s been working well for the past few weeks
user-1
(User 1)
September 8, 2023, 7:27pm
10
Is this the actual response it returned, or was there a real link there?
This app is not approved to access the Order object. See https://partners.shopify.com/______/apps/_______/customer_data for more details ....
user-1
(User 1)
September 8, 2023, 7:27pm
11
oh no, lemme paste the real one
user-1
(User 1)
September 8, 2023, 7:27pm
12
[{"message":"This app is not approved to access the Order object. See https://partners.shopify.com/1150772/apps/3141151/customer_data for more details.","locations":[{"line":2,"column":9}],"path":["order"],"extensions":{"code":"ACCESS_DENIED","documentation":"https://partners.shopify.com/1150772/apps/3141151/customer_data"}}]
user-1
(User 1)
September 8, 2023, 7:27pm
13
I suspect it’s due to the customer data permissions shopify is enforcing, but i think the update needs to be done in your partners portal
user-1
(User 1)
September 8, 2023, 7:27pm
14
Yea, that’s how I interpret that message as well, but Shopify isn’t supposed to be enforcing that requirement on our app yet. We’re working with Shopify on getting our app approved, but that path is less than straightforward unfortunately.
user-1
(User 1)
September 8, 2023, 7:27pm
16
is there a way to create a “new connected” account so I can just select it
user-1
(User 1)
September 8, 2023, 7:27pm
17
Sorry, can you elaborate?
user-1
(User 1)
September 8, 2023, 7:27pm
18
You should be able to connect a new account in the builder
user-1
(User 1)
September 8, 2023, 7:27pm
19
sorry wanted to see if I could use my own custom app credentials
user-1
(User 1)
September 8, 2023, 7:27pm
20