Error: This app is not approved to access the CalculatedOrder object

Hi,

I am using the GraphQL Admin API to edit order’s line items. I do not request any shop customer data. My App has write_orders and write_order_edits access scope. When I try to create a calculated order by the following mutation:

mutation beginEdit($id: ID!){
 orderEditBegin(id: $id){
    calculatedOrder{
      id
    }
  }
}

I get the following error from the API:

This app is not approved to access the CalculatedOrder object. See https://partners.shopify.com/xxxxx/apps/xxxxx/customer_data for more details

So, do I need to request access to restricted customer data when using the orderEditBegin mutation, even when I am never requesting any customer data in my queries and mutations?

Hi Michael,

You will need the read_order_edits scope and to request access to restricted customer data as there could be customer data received with this mutation.

1 Like