Thread: REST API Module
View Single Post
  #1  
Old 06-01-2020, 08:21 AM
 
atclarkson atclarkson is offline
 

Newbie
  
Join Date: Mar 2015
Posts: 7
 

Default REST API Module

Trying to get all orders from 2020.

I have tried following the documentation and pass a condition with a start date and end date as an array. I have tried both Unix time and W3C time formats and all I can get is it returning all lifetime orders.

I have tried with W3Ctime:
https://agritronixcorp.com/admin.php?target=RESTAPI&_key=<rest-api-key>&_path=order&_cnd[dateRange]=[2020-01-01T00:00:01-04:00,2020-06-01T11:46:56-04:00]

I have tried with Unix Time:
https://agritronixcorp.com/admin.php?target=RESTAPI&_key=<rest-api-key>&_path=order&_cnd[dateRange]=[1577836801,1590693834]

I will point out that I have replaced my actual API key with a placeholder in the examples above.

Does anyone have any advice?
__________________
X-Cart Business 5.3.6.6
www.agritronixcorp.com
Reply With Quote