Getting Orders List Via Api

Hi all,

It is possibile to get by cs-cart API (http://cscart.dev/api/orders/ or other endpoint) list of orders sorted by 'last update timestamp' - the last updated order is first item on the first page.

I know that there is such an information in order details, but I nedd this information on the list.

Thanx in advance

Hello

It seems to me that this is not possible as standard.
You would need to add a timestamp field in the cscart_orders table in database and then use a hook in the fn_get_orders function to add sort this field.
Best regards
Robert

I think this is possible. Try to add the list of parameters

sort_by=timestamp&sort_order=desc

Hello

Field "timestamp" does not change when updating the order.

Best regards

Robert