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.
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.
1 Answer 1
Please try with below api, I hope its working for you.
http://127.0.0.1/magento230ee/rest/V1/search?searchCriteria[requestName]=quick_search_container&searchCriteria[filterGroups][0][filters][0][field]=search_term&searchCriteria[filterGroups][0][filters][0][value]=Test&searchCriteria[sortOrders][0][field]=created_at&searchCriteria[sortOrders][0][direction]=DESC&searchCriteria[pageSize]=10
- 
 I created custom API to update details but I want to update detail based on store code and store code is collected from payload any idea?Roshan Rakesh Yadav– Roshan Rakesh Yadav2020年05月14日 07:22:39 +00:00Commented May 14, 2020 at 7:22
ascanddesc? I mean in small caps instead of all caps