question

dck avatar image
dck asked dck commented

How to get first order date from clover rest api

@Jeff Davies @Sam
Is there any api for getting the first order created date so that i can figure it out how much data is synced in clover rest api.
Clover Mobile
10 |2000

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

1 Answer

Dan avatar image
Dan answered dck commented
You should be able to determine this by using the /v3/merchants/{mId}/orders endpoint with a GET request specifying that the orders are sorted by modified time ascending with a limit of 1 (limit is not necessary, but will result in faster queries and less server load). Orders are synced to the clover devices based on modified time rather than created time.

See https://docs.clover.com/build/web-api/ and https://www.clover.com/api_docs/#orders_Orders regarding specifying the sort order and the endpoint.
1 comment
10 |2000

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

dck avatar image dck commented ·

Thanks Dan,

But can we rely on this, I mean Does clover APIs provides data that has been created before 3 months?

What I want is first order created time, It may be a year back or more. SO does this API work for that?

0 Likes 0 ·

Welcome to the
Clover Developer Community