How to get the products from magento 2 using REST API based on the updated_at criteria, so I can able to get products created/updated on particular date. how to achieve this task. please help me.
Thanks in advance...
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 communityHow to get the products from magento 2 using REST API based on the updated_at criteria, so I can able to get products created/updated on particular date. how to achieve this task. please help me.
Thanks in advance...
Try this
GET /V1/products?&searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][value]=2018-09-07&searchCriteria[filter_groups][0][filters][0][condition_type]=gteq
This endpoint will give you all products that being updated after 2018-09-07 it is working for me, I hope it will help you
catalogProductRepositoryV1
you can use search Criteria
http://<magento_host>/rest/V1/products/?
searchCriteria[filter_groups][0][filters][0][field]=updated_at&
searchCriteria[filter_groups][0][filters][0][value]=2018-09-17 00:00:00&
searchCriteria[filter_groups][0][filters][0][condition_type]=eq
method type : GET
The system creates an array, as shown in the following pseudo-code.
searchCriteria => [
'filterGroups' => [
0 => [
'filters' => [
0 => [
'field' => 'updated_at',
'value' => '2018-09-17 00:00:00',
'condition_type' => 'eq'
]
]
]
]