question

max avatar image
max asked max commented

What would be the result when using devices api

I am running an API: 'https://sandbox.dev.clover.com/v3/merchants/{merchants ID}/devices'

and I get { "elements": [], "href": "http://sandbox.dev.clover.com/v3/merchants/{merchants ID}/devices" } This is because I don't have any devices set. And I am not allowed to use API to add devices.

Anyone could provide what would be the result if you have Devices set up?

Thanks

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

Jeffrey Blattman avatar image
Jeffrey Blattman answered max commented

No, you may not add devices to a merchant. Provisioning devices is not under the control of developer apps. This endpoint is GET only, but does allow mutation of specific properties but not the addition of devices.

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.

max avatar image max commented ·

Thanks for your answer, what I would like to know is actually what would be returned if I have proper device linked. I suspect it would be elements:[ {id:123,...}{id:234,...}...] but what would be parameter other than id?

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

That's a bug that https://www.clover.com/api_docs#!/mer... does not show the response class. I've filed an internal issue to get that fixed. If you are using the Clover Android SDK, you can see what to expect in the Deviceclass: https://github.com/clover/clover-andr....

0 Likes 0 ·

Welcome to the
Clover Developer Community