Jump to content

Filter on date_add using PrestaShop Webservice Library


MadsWeship

Recommended Posts

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

  • Like 1
Link to comment
Share on other sites

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 by iang0ld (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...