MadsWeship Posted September 16, 2014 Share Posted September 16, 2014 Hi All Has anyone succeeded in using the filter for the date_add, using the webservice library? I would like set an time interval for retrieving a specific list of orders. My attempt was for defining the options input for the webservice library is $opt = array( 'resource' => 'orders', 'display' => 'full', 'filter[date_add]' => '[2014-09-01 21:00:00 | 2014-09-01 22:00:00]'); where the error: 'Internal error. To see this error please display the PHP errors.' is returned! Thanks in advance BR\Mads 1 Link to comment Share on other sites More sharing options...
iang0ld Posted September 17, 2014 Share Posted September 17, 2014 (edited) I am suffering the same problem trying to get recent invoices: This does not work .../api/orders?filter[invoice_date] = [2014-09-01 | 3000-09-01] nor .../api/orders?filter[invoice_date] = [2014-09-01 00:00:00 | 3000-09-01 00:00:00] Any ideas greatly appreciated. Edited September 17, 2014 by iang0ld (see edit history) Link to comment Share on other sites More sharing options...
MadsWeship Posted September 17, 2014 Author Share Posted September 17, 2014 Hi I found a solution where you can define a date greater or less then: api/orders?display=full&filter[date_add]=>[2014-09-01 09:00:00]&date=1 if you are using the webservice library you need to add the 'date' as an option in the class 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now