"Search is not available for Order" (or Product -- seems ok for Customer?)

Tristan3dt
Tourist
8 0 3

Hi, my first post here and new to Shopify so I hope I've come to the right place!

I'm using the phpclassic API SDK to write some tools to import our Magento store data into Shopify but when I attempt to use the 'search' method on Orders or Products I receive the response "Search is not available for Order".  I opened an issue on the phpclassic API github but they have said this would be an issue to be resolved on the Shopify side rather than on the SDK side.

What's going on here -- is there something I'm missing about how this works?  Is this lack of search function as intended and I just need to work around it (fetching all results and caching locally etc)?

Cheers,

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
213 27 39

Hey @Tristan3dt 

There is a search.json endpoint available in Shopify but it only functions for customers and gift cards. If you wanted to directly make API calls to Shopify using graphQL, you can use the query field to filter data. Checkout the orders connection in the docs for more details.

20-07-w8l4b-olbyf

 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes