question

4leaflabs avatar image
4leaflabs asked Mark Mullan Deactivated commented

Using phoneNumber in the GET Customer API

Hi,

I'm trying to use the phoneNumber filter to retrieve a customer by their phone number. It doesn't seem to work the way I'd expect.

Example API (sanitized) https://api.clover.com:443/v3/merchan...

This call seems to work in the SDK so I would assume it would work here. Any suggestions on how to update the API call so that we can call it correctly?

Thanks!

Customers
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

Mark Mullan avatar image
Mark Mullan Deactivated answered Mark Mullan Deactivated commented

Hi,

Looks like that request has one extra = which is causing it to not work as expected. This query works for me:

https://apisandbox.dev.clover.com/v3/merchants/{merchantID}/customers?filter=phoneNumber=567957968

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.

01928-7325x2 avatar image 01928-7325x2 commented ·

The API docs generating double =

https://www.clover.com/apidocs/#!/customers/DelegatedGetCustomers2

0 Likes 0 ·
Mark Mullan avatar image Mark Mullan commented ·

Yeah, it's a known issue on our end and we're working on a fix. Our API docs are dynamically generated. Our docs have more comprehensive information about using our REST APIs most effectively: https://docs.clover.com/build/web-api/

Cheers,

Mark

0 Likes 0 ·

Welcome to the
Clover Developer Community