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

  • 7 years later...

hi only usage this filter

"id", "id_address_delivery", "id_address_invoice", "id_cart", "id_currency", "id_lang", "id_customer", "id_carrier", "current_state", "module", "invoice_number", "invoice_date", "delivery_number", "delivery_date", "valid", "date_add", "date_upd", "shipping_number", "note", "id_shop_group", "id_shop", "secure_key", "payment", "recyclable", "gift", "gift_message", "mobile_theme", "total_discounts", "total_discounts_tax_incl", "total_discounts_tax_excl", "total_paid", "total_paid_tax_incl", "total_paid_tax_excl", "total_paid_real", "total_products", "total_products_wt", "total_shipping", "total_shipping_tax_incl", "total_shipping_tax_excl", "carrier_tax_rate", "total_wrapping", "total_wrapping_tax_incl", "total_wrapping_tax_excl", "round_mode", "round_type", "conversion_rate", "reference"

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...