Is Anyone Else Experiencing Permission Issues When Connecting or Writing to Their Shopify Instance?

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 ....

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?

it’s a custom request

using axios to do a graphql call

using the oauth_access_token associated to the account

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,
    })

Thank you, that’s helpful. Can you confirm what API you’re making a request to?

"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
                  }
                }
              }
            }
          }
        }
      }

give you more context, we didn’t make any changes and it’s been working well for the past few weeks

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 ....

oh no, lemme paste the real one

[{"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"}}]

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

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.

:cold_sweat:

is there a way to create a “new connected” account so I can just select it

Sorry, can you elaborate?

You should be able to connect a new account in the builder

sorry wanted to see if I could use my own custom app credentials

Ah, yes you can — check out https://pipedream.com/apps/shopify-developer-app