question

greg avatar image
greg asked ·

Deleted devices

When you query the REST API like this:

https://apisandbox.dev.clover.com/v3/merchants/mId/orders/orderId

you get a result element that contains an object with a device id (no further name/value pairs). However if you then use this id to do

https://apisandbox.dev.clover.com/v3/merchants/mId/devices/deviceId

one gets the following for a deleted device:

{
"details":"No device with id abcded"
"message":"Not Found"
}

And also this query

https://apisandbox.dev.clover.com/v3/merchants/merchantId/devices

does not contain above received, deleted device.

Then I wonder what sense makes the deleted_time filter in this query?

https://apisandbox.dev.clover.com/v3/merchants/mId/devices?filter=deleted_time<1579595813000

It returns zero elements. Also without the deleted_time filter I don't the get the deleted device. I tested by disassociating a device and the result is exactly as described above. The device disappears from the API, the only thing that remains is the device_id in the response to the order request. So is there any way to retrieve deleted devices? Is the deleted_time filter not working?


REST API
4 comments
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.

I agree, it doesn't seem to make sense. I am going to have to look into this one. If you don't hear anything back in a few days please ping me so I don't forget. For clarification, you questions are, is there a way to obtain the details for a deleted/disassociated device? And, If not, what is the point of the deleted_time filter?

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

Questions correctly understood!

0 Likes 0 · ·

Looking at the code, it doesn't appear we ever had the ability to retrieve deleted/disaassociated devices. So, I agree with you the deleted_time filter doesn't seem to make much sense. The question I have for you is that is retrieving deleted devices something you require?

0 Likes 0 · ·
Show more comments

0 Answers

· Write an Answer

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