question

richa avatar image
richa asked ·

order list for 24 hours using node js

Hello,

I am trying to get orders of past 24 hours using node js but unable to fetch it. Can you please help on how to fetch orders between two datetime using node js

Orders
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

David Marginian avatar image
David Marginian answered ·

The first example here - https://docs.clover.com/docs/applying-filters shows you how to do this.

9 comments Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi David,

Thanks for your reply.But when I try it using nodejs it is not returning me proper answer.Following is my request url :

https://sandbox.dev.clover.com/v3/merchants/**/orders?filter=clientCreatedTime>=1602633600&filter=clientCreatedTime<=1602719999

0 Likes 0 · ·

I believe you need 3 more digits (millis) in the timestamp you are passing.

0 Likes 0 · ·
richa avatar image richa David Marginian ♦♦ ·

Hello David,

I tried with milliseconds as well but no change in response.

0 Likes 0 · ·
Show more comments

Welcome to the
Clover Developer Community