Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Restrict Api Orders Result? Rate Topic   - - - - -

 
  • tdonj
  • Junior Member
  • Members
  • Join Date: 23-Apr 07
  • 19 posts

Posted 10 February 2014 - 04:22 PM #1

I'm having trouble pulling specified sets of Orders through the API

The docs state the following:

Filtering
It is possible to send additional URL parameters to particularize the selection.
For example, you get all products with non-free shipping:
curl --user admin@example.com:APIkey -X GET 'http://example.com/a...free_shipping=N'


I can't get this to work reliably for Orders.

These parameters work:
/api/orders?status=X
/api/orders?user_id=X

These do not:
/api/orders?order_id>X
/api/orders?timestamp=X
/api/orders?timestamp>X
/api/orders?firstname=X
/api/orders?total=X
/api/orders?total>X

Does anyone know a way to retrieve only orders placed after a certain date, or newer than a specified order number?


thanks,
Don

 
  • iamlili
  • Member
  • Members
  • Join Date: 19-Jul 12
  • 34 posts

Posted 03 July 2014 - 07:45 AM #2

Hi Don,

Did you manage to work out the filtering by timestamp or order_id?

Or does anyone else know how?