question

yilipiao avatar image
yilipiao asked David Marginian Deactivated edited

Can I get list of customers with deviceId?

I have 4 device for one Merchant ID,

Can I filter customers with deviceId?

REST 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.

1 Answer

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

I am not sure what you are asking, do you mean can you filter merchants by deviceId? The answer is no, our APIs are largely tied to a merchant. If you want to obtain all of the devices for a particular merchant you would need to make 4 API calls to https://docs.clover.com/reference#devicegetmerchantdevices.

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.

yilipiao avatar image yilipiao commented ·
I want get all the customer list from one deviceId
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ yilipiao commented ·

I am sorry, I don't understand your question. If by "customer" you mean a patron of one of your merchants then customers are not directly tied to a device, they belong to the merchant. If you want to obtain all of the customers for a merchant you would use the customers API - https://docs.clover.com/reference#handlersgetcustomers-1.. If you want to see all customers associated to orders taken on a specific device you can use the orders API (https://docs.clover.com/reference#ordergetorders-2), filter on device.id and expand on customers. This will provide you with a list of customers that have orders on that device but a given customer may have orders on 1-n of your merchant's devices.

0 Likes 0 ·

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