I am trying to use the V3 api to fetch back orders between a time. I convert the data time to unix and pass it to the backend but for some reason the api returns every order back from december.
my code is:
maxDate= 1614018958000; minDate= 1582327252000 const options = { method: 'get', url: config.cloverApiUrl +'/v3/merchants/'+data.merchant_id +'/orders?limit=1000&expand=lineItems&filter=clientCreatedTime>' +minDate +'&filter=clientCreatedTime<'+maxDate, qs: {access_token: data.token} }; return response = request(options);
but instead of getting orders between that time frame, I get orders ranging between the following time. I tried everything but it still returns back orders between the below date rather than the date specified in the code
- max: 1614018958000
- min: 1582327252000