How to add read_all_orders option to custom app

How to add read_all_orders option to custom app

szczepan
Shopify Partner
5 0 0

I created a custom app and in the scope of permissions I gave read_orders,write_orders.

I need to take orders older than 60 days. This setting only allows you to take orders from the last 60 days.

I found information that there is permission: read_all_orders and it allows you to take more orders.

When I added this to the scope settings in the .env file on startup I got the error:

Oauth error missing_shopify_permission: read_all_orders

 

How can I give this permission to my app?

Replies 7 (7)

umershoukat91
Shopify Partner
8 1 1

Hello,

You are doing everything right just one thing you need to request order permission from your partner account first before using this read_all_orders scope in your app .toml /.env file. Check this link below for reference.

https://shopify.dev/apps/auth/oauth/getting-started#orders-permissions

MERN STACK
DD16
Shopify Partner
2 0 0

The original question is about custom apps. Custom apps do not use OAuth, instead use access tokens.

 

https://shopify.dev/docs/apps/auth/admin-app-access-tokens

samarth30
Shopify Partner
2 0 0

hi were you able to resolve this 

I am facing the same issue 
Bro it will be a great help if you can help me solve this

DD16
Shopify Partner
2 0 0

I have the same question. Did you ever figure out how to do this?

 

The documentation for custom apps mentions read_all_orders, but it is not found in the list when setting Admin API Permissions.

 

Screenshot 2023-02-18 at 10.41.25.png

https://shopify.dev/docs/apps/auth/admin-app-access-tokens

 

Screenshot 2023-02-18 at 10.41.11.png

kps_analytics
Shopify Partner
2 0 0

I have the same issue - did you resolve?

samarth30
Shopify Partner
2 0 0

HI,


I put read_orders in access scope but i am not able to get orders even 60 days older can you help me with this if you have resolved this issue

tzvishmuel1
New Member
4 0 0

I'm having the same problem.  My custom admin app was designed on the shopify store, so there is nothing in my partners account to request.  It's not going to be used anywhere but the one store.

 

I've tried following numerous pages of docs, but no luck...the site owner tried using this section to give me access to read_all_orders and couldn't find it.

 

Failing that, is there a way to get a csv dump of all old orders?  This is only a one-time need, so I could try to do it that way.