- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Firstly I should let you know I am a newbie to Magento. Our configuration is Magento 2.3, and Boomi, on a Linux box on our local network. I would like to query the sample Magento site that was installed when Magento was installed. I am trying to get all orders between 2 dates and that has not worked for me so I thought I would try to get all orders after a certain date. I am trying to use Postman to get all orders after the date 1/12/2019 by using this request
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @joled
I think you are using enter between filters. So please use this URL.
https://localserver.com/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=created_at&searchCriteria[filter_groups][0][filters][0][value]=2019-01-12&searchCriteria[filter_groups][0][filters][0][condition_type]=gt
Thanks

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @joled
I think you are using enter between filters. So please use this URL.
https://localserver.com/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=created_at&searchCriteria[filter_groups][0][filters][0][value]=2019-01-12&searchCriteria[filter_groups][0][filters][0][condition_type]=gt
Thanks

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2REST API searchCriteria date range
Thank you Geeta, That was the problem. In Postman it looked like it was just a line wrap but there were returns at those positions where the line ended.
Best regards,
Joe
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2REST API searchCriteria date range
I got the same error while i am trying to search in the name field in my custom table in Magento here is the link. can you please help me with this?
GET http://vatsal.magento.com/rest/V1/affiliate_member/search?
searchCriteria[filter_groups][0][filters][0][field]=name&
searchCriteria[filter_groups][0][filters][0][value]=%25A%25&
searchCriteria[filter_groups][0][filters][0][condition_type]=like