Shopify orders export guide

“Access denied for bulkOperationRunQuery field”

What you’ll need

  • Shopify’s free GraphiQL app (with read_orders; read_all_orders for orders older than 60 days access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

Build the export

The full error

Shopify’s reply
Access denied for bulkOperationRunQuery field. Required access: Only accessible by supported access tokens: https://shopify.dev/docs/api/usage/bulk-operations/queries#access-token-considerations.

Fix it

  1. Install Shopify’s GraphiQL app on the store with read_orders (and read_all_orders for orders older than 60 days).
  2. Paste the bulk query there and run it. It replies with status CREATED.
  3. For your own app, Shopify’s docs list which access tokens may run bulk queries; a client-credentials token from a custom app gets this error until bulk queries are enabled for the app.

Other permission problems

  • An “Access denied” error naming orders: the app is missing read_orders. Reinstall the GraphiQL app with it ticked.
  • Orders older than 60 days missing from the file: the app needs read_all_orders.

More guides