Jump to content

API - List order with filter DATE_ADD


LMPG

Recommended Posts

Hello,

 

I have a problem retrieving orders from a specific date in PHP using this :

 

$opt = array(
'resource' => 'orders',
'display' => 'full',
'filter[date_add]' => '[2017-01-16,2017-01-17]',
'date' => '1'
);
 
When I remove the filter, my script is working, but not with the filter "date_add".
I've been looking everywere for 2 days without finding any answer :(
 
If I use the same filter in an URL : myshop/api/orders?filter[date_add]='[2017-01-16,2017-01-17]&date=1 it's working
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...