App reviews, troubleshooting, and recommendations
Hello Team,
I have encountered some issues with my Shopify app and would appreciate some assistance from the community. Here are the details:
I'm trying to extract all order data using the "read_all_orders" scope with my public app. However, when querying the orders, I'm getting 0 results. Inside my shopify.app.toml file I have these scopes:
scopes = "read_all_orders,read_products,read_orders,write_orders,read_customers,write_customers,write_discounts"
Additionally, the access has been granted by Shopify via App Settings > Request Access to Orders > 60 Days.
This is the result from my postman:
"orders": []
with a 200 status.
When attempting to fetch orders specific to a customer, both the SDK and API are returning an empty list in the response. I have verified the correct endpoint and API version, as well as the customer ID used for filtering. Only when the order is recently created am I able to retrieve orders with the same access token from the customers' last_order_id. Any insights into why the orders are not being fetched for this customer?
Here is the result:
{ "errors": "Not Found" }
with a 404 status.
I noticed that the documentation for the Order resource states that only the last 60 days' worth of orders is accessible by default. To access orders beyond this timeframe, developers need to request the "read_all_orders" scope from both Shopify and the merchant. I have followed the documentation and followed oAuth for several test stores after pushing to my Heroku. The scopes are inside my GitHub as well and are in the permissions section of the app when installed or inside the apps' information section.
I am using the admin API with this resource: https://shopify.dev/docs/api/admin-rest/2023-04/resources/order. I also would like to note the orders for the test store were created via API greater than 60 days ago. I did try using graphql with similar results (or lack there of).
I would greatly appreciate any guidance or suggestions to resolve these issues. Thank you in advance for your help.
Best regards.
Solved! Go to the solution
This is an accepted solution.
I figured out the problem:
You need to update the toml file as expected (listed above) and assuming you have the app already deployed you then need to add the scopes into your env variables. Heroku for example would be in the settings and env vars. Edit the scores and add
read_all_orders
Redeploy the app.
Your merchants may need to reinstall the app to get the new scopes applied.
BUMP
This is an accepted solution.
I figured out the problem:
You need to update the toml file as expected (listed above) and assuming you have the app already deployed you then need to add the scopes into your env variables. Heroku for example would be in the settings and env vars. Edit the scores and add
read_all_orders
Redeploy the app.
Your merchants may need to reinstall the app to get the new scopes applied.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025