Have your say in Community Polls: What was/is your greatest motivation to start your own business?

'This app is not approved to access the Order object.' error on Development store

'This app is not approved to access the Order object.' error on Development store

StephenThorpe
Shopify Partner
1 0 0

Hey there,
I am getting the following error: 

Error: This app is not approved to access the Order object.

on my local shopify app connected to a development store.

I've already requested 'Protected customer access data' on my 'Partner' dashboard for the app (I have not submitted them for review).
The scopes for my app as defined in the 'shopify.app.toml' file are:
scopes = "read_customers,read_draft_orders,read_orders,write_products"

I am simply trying to list orders with the following query in my remix app:

  const { admin } = await authenticate.admin(request);
  const response = await admin.graphql(
    `#graphql
     query listOrders {
        orders(first: 10) {
          pageInfo {
            hasNextPage
          }
          edges {
            node {
              createdAt
            }
          }
  }
}`
  );
  const responseJson = await response.json();


It seems like I am following all of the guidelines.
What am I doing wrong?


Replies 0 (0)