cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch all updated orders since date

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Fetch all updated orders since date

I have tried to create a filter to get all updated orders since date...

 

rest/V1/orders/searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][value]=2018-01-01T14:01:54.9571247Z&searchCriteria[filter_groups][0][filters][0][condition_type]=gt

 

I get the following error

 

{ "message": "Invalid type for value: \"searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][value]=2018-01-01T14:01:54.9571247Z&searchCriteria[filter_groups][0][filters][0][condition_type]=gt\". Expected Type: \"int\".", "trace": null }

 

I read this as ... cant use a date with a gt condition. How do I get the result I am looking for?

 

Thanks -Sean

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Fetch all updated orders since date

This query parameter works perfectly if you remember to include the ? to start the query string. User error.

 

rest/V1/orders?searchCriteria[filter_groups][0][filters][0]...

View solution in original post

1 REPLY 1

Re: Fetch all updated orders since date

This query parameter works perfectly if you remember to include the ? to start the query string. User error.

 

rest/V1/orders?searchCriteria[filter_groups][0][filters][0]...