We would like to get the list of closed orders by passing from and to date filter in magento soap api.
Help me great.
Thanks
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityPlease test with below filters which is done with status and create_at filter :
/rest/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=status&searchCriteria[filterGroups][0][filters][0][value]=complete&searchCriteria[filter_groups][0][filters][0][field]=created_at&searchCriteria[filter_groups][0][filters][0][value]=2016-02-29%2017:12:00&searchCriteria[filterGroups][0][filters][0][conditionType]=eq
When i pass the parameters like below, its working:
$params = array('filter' => array(
array(
'key' => 'status',
'value' => 'closed'
),
),'complex_filter'=>
array(
array('key'=>'created_at','value'=>array('key' =>'from','value' => '2013-03-20 01:01:01'))
),
array(
array('key'=>'created_at','value'=>array('key' =>'to','value' => 2019-03-20 01:01:01))
)
);