question

agcarlson88 avatar image
agcarlson88 asked Jonathan Ryan Grice answered

Can I view "OPEN ORDERS" that I have deleted?

I deleted all open orders from our device dating back several months. I would like to be able to view the open orders that I deleted. Is there a way to do this?
Orders
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

Jonathan Ryan Grice avatar image
Jonathan Ryan Grice answered
If you are using the WEB Api you can use the orders endpoint and filter query with the field name deletedTime. The value has to be in the form of a unix timestamp.
https://api.clover.com/v3/merchants/{MID}/orders?filter=deletedTime%3C%3D1547570474&limit=10
Where "<=" lteq is url_encoded to %3C%3D.
"1547570474" is the current unix timestamp and "limit" is used only for this example to return only 10 results since the current timestamp.

Edited-Had to remove a MID from original answer.
10 |2000

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