question

j-mcnally avatar image
j-mcnally asked zgreathouse Deactivated answered

Unable to query customers by phone or email with v3 REST API

When i add a filter for email or phone which should be supported i get no results.



Without the filter it returns what should be a matching customer




This is causing us to create a new user for every order since were not finding a matching user email.
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

zgreathouse avatar image
zgreathouse Deactivated answered
Instead of the "==" you want to use "=".

Correct: " filter=emailAddresses=test@test.com..."
Incorrect: " filter=emailAddresses==test@test.com..."

Here are the docs: https://docs.clover.com/build/web-api/#filtering-c...

10 |2000

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