Discussing APIs and development related to customers, discounts, and order management.
As of Shopify API version 2019-10 searching for orders by name no longer works using this endpoint: https://help.shopify.com/en/api/reference/orders/order?api[version]=2019-10#index-2019-10
It does work up through 2019-07.
All reference to searching for orders by name seems to have been removed from the API docs and I cannot find any changelogs about this functionality being removed.
Is there any way to find an order via the API if we only have the order name or number, and not the ID?
Hello CR-Will,
For order search by name use below API
GET /admin/orders.json?name=1012
That's exactly my point. That API call no longer works as of API version 2019-10. And if you check the API docs you'll see they no longer mention anything about being able to search by the name field.
Hi @CR-Will,
My understanding is that this functionality has always been undocumented. That said, enough apps were using it that we are looking into a fix to allow this function in the 2019-10 version. To continue using this functionality, please use an older version for now.
Cheers,
To learn more visit the Shopify Help Center or the Community Blog.
Hey @Busfox, wanted to know if the fix was implemented into 2019-10 and possibly further?
I noticed the same problem today when testing 2019-10. Since the order 'name' is generally the most prominent and/or the only order identifier that the customer sees on their receipts, not being able to search by that value is a bit perplexing. I don't know if it was ever documented or not, but the forums have several comments about using it, including from Shopify staff (eg: https://community.shopify.com/c/Shopify-APIs-SDKs/HowTo-find-an-order-via-API-call-using-order-numbe... ) It would definitely be appreciated to have this functionality re-enabled!
Any word on this? We're looking to upgrade API versions, but our app depends on being able to search by order name to look up the customers order.
In case anyone else needs to search by order name AND email, you can still search by email using /customers/search.json.
Then you can search by order name from customers:
/customers/orders.json?name=xxx