cancel
Showing results for 
Search instead for 
Did you mean: 

REST API - /orders - Filter orders by products purchased in the order

REST API - /orders - Filter orders by products purchased in the order

Hello, 

 

I want to figure out how to use the /orders endpoint and use the searchCriteria parameter to only get orders that contain a specified product. 

 

So far, I am able to successfully get all orders, and use the searchCriteria[pageSize] and searchCriteria[currentPage] for pagination. 

 

I'm guessing I can use the searchCriteria[filterGroups] parameter, but I'm not sure what field I would use to filter by items purchased. 

 

Thanks.