cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 V1/Search with Sort Orders not working in REST API

Magento 2.3 V1/Search with Sort Orders not working in REST API

Magento 2.3 Search Criteria with REST API, SortOrders not working in V1/Search API.

I am trying to fetch Category products using Magento REST API by below request URL.

 

http://127.0.0.1/magento230ee/rest/V1/search?searchCriteria[requestName]=quick_search_container&sear...

 

Using Above query I have to get the same result whether a name field is ASC or DESC Order in Query.

Only SortOrder is not working for the above query. How to apply sortOrders filter in product collection using the above query.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial