[Bug?] Shopify Order API couldn't query certain orders by name

Problem

We are using the REST API to query orders filter by the name field. It’s working fine previously but recently we noticed that we are not able to get back certain orders when we query with the order’s name. This does not happen to all the orders, other orders can still be queried with the order name just fine. We have also confirmed with the retailer that the Order’s page search filter on the admin dashboard isn’t working for them as well when they try to filter by name for those affected orders.

Actual Behaviour### Failed Queries

  1. Querying with the order’s name using both the REST and GraphQL Order’s endpoint returns an empty array.

  2. Querying with the order’s email using both the REST and GraphQL Order’s endpoint returns an empty array.

Success Queries

  1. Querying with the order’s ID using both the REST and GraphQL Order’s endpoint returns the Order object.

  2. Querying with the order’s customer_id using both the REST and GraphQL Order’s endpoint returns a list of Order objects.

Expected Behaviour

  1. Querying with the order’s name using both the REST and GraphQL Orders endpoint should return a list of Order objects

  2. Querying with the order’s email using both the REST and GraphQL Orders endpoint should return a list of Order objects

Appreciate it if anyone can confirm that this is a bug or there’s something that I should be aware of. It’s very difficult for our customers to get the Order’s ID or customer ID to use our app. What’s annoying is that this is only happening to certain orders and we aren’t able to debug it any further.

1 Like

I had the same problem as you!

Hi Jessica, did you manage to solve it? Or is there any workarounds that you have found?

I just ran into the same problem. There is a particular order name for which subsequent orders can be queried, and preceding orders show up as empty. Please get this resolved!