question

javichaques avatar image
javichaques asked Jeffrey Blattman commented

List all customer with phones

Hi,

I'm developing with Clover Android SDK (191.6).
I want to list all customers and their phone numbers. I know how do it on API REST ( https://sandbox.dev.clover.com/v3/merchants/MYMERCHANT/customers/?expand=phoneNumbers) but i don't know how do it with the sdk.

Currently i'm listing all customers without phone numbers using this function.
https://clover.github.io/clover-android-sdk/com/clover/sdk/v1/customer/CustomerConnector.html#getCustomers-java.lang.String-

How can i do it?

Thanks
REST APICustomers
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

Raymond Lee avatar image
Raymond Lee Deactivated answered Jeffrey Blattman commented
It seems that calling getPhoneNumbers() on Customers returned from CustomerConnector returns an empty list.

I will submit a ticket to have this fixed, in the meantime the workaround would be to use the REST API call to retrieve the phone numbers for the customers.

Thanks for bringing this to our attention.
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.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Getting all the customers from the connector is not a reasonable solution as the list can be large and will exceed Android's binder limit.

1 Like 1 ·

Welcome to the
Clover Developer Community