We are trying to fetch a list of orders specific to a customer. But we are getting an empty list in the response.
We tried using both SDK and API, and neither of them worked.
API: https://customer.myshopify.com/admin/api/2022-01/orders.json
API Response:
I’m wondering if the orders you’re trying to retrieve are over 60 days old? If that’s the case, your app will need to have the read_all_orders access scope added in order to access orders older than 60 days. Please let me know if you have further questions!
Okay, thanks for confirming that. The correct format for making this request via the REST API directly would be /admin/api/2021-10/customers/207119551/orders.json
If you’re still having trouble with this, we’re going to need a little more info for this issue - could you please fill out all fields on the Report an Issue form found under the Partners Support section? Any additional information you can provide around this issue would be very helpful. This will let us take a look in the logs and at the store, to see what might be causing the behaviour.
Maybe the same issue here. We are receiving orders but only one or two, when we may have taken 50 - 100 orders over the day. We are using the created_at_min and _max parameters. Or is this another issue?