Orders REST Endpoint Returning Empty For Speficied IDs

We’re noticing an intermittent issue where using the GET endpoint for Orders in the Admin REST API is returning 0 orders when we specify one or more IDs in the params with “ids=order_id1,order_id2”. We have already verified existence of the Order(s) and the validity of the ID(s). We have full permissions to read_all_orders, and in many cases the orders were created within the last 48 hours so they’re well within the default 60 day lookback mentioned in the API docs. The requests are coming back with a 200 response.

Hi Kyle,

It does seem unusual for the GET endpoint to return 0 orders when valid IDs are passed.

Here’s a few suggestions we can take to troubleshoot:

  1. Double-check the syntax of your request URL. It should look like this: https://{shop}.myshopify.com/admin/api/{api_version}/orders.json?ids=order_id1,order_id2. Make sure there’s no extra spaces or characters.

  2. Ensure that the API version you’re using is up-to-date. Older versions might have different behaviors or bugs that have been fixed in later versions.

  3. Try retrieving a single order with its ID to see if the issue persists: https://{shop}.myshopify.com/admin/api/{api_version}/orders/{order_id}.json.

  4. Test your API call with a different REST client or even with a simple cURL command to rule out any possible issues with the tool you’re currently using.

If none of these suggestions work, please provide the exact request you’re making (without any sensitive information) so we look into this a bit deeper.

Hope this helps,