question

cannonesite avatar image
cannonesite asked dewittbukater answered

Few or No Orders Returned from API

Is there any reason why this query would return few or no orders?

What I am essentially trying to do is get all orders from the previous day.

https://api.clover.com/v3/merchants/########/orders?filter=modifiedTime>=1631160000000&filter=modifiedTime<=1631246400000&expand=lineItems,discounts,payments,refunds

The request returns no elements.

{'elements': [], 'href': 'http://api.clov.....

Sometimes the request will return no orders and other times it will have very few. It just depends on the day.

I can also change the filter from modifiedTime to createdTime and get similar results over the 24 hour period.


Thank you!

Thomas

OrdersREST API
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

What is being returned, a few orders, or no orders? You probably want to filter on clientCreatedTime instead of modifiedTime.

2 comments
10 |2000

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

cannonesite avatar image cannonesite commented ·
Thank you for responding. question updated
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ cannonesite commented ·

Hmm, can you explain a bit about your use case, are you a merchant or developer (if so what is your developer/app id and are you using OAuth tokens)? Can you provide your merchant id in a moderators only comment (see Viewable by all users) below the submit button.

0 Likes 0 ·
dewittbukater avatar image
dewittbukater answered

Great to know the granny post and the problem is solved. Thank you a lot.

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community