helpscout / helpscout-api-php

PHP Wrapper for the Help Scout API
MIT License
98 stars 62 forks source link

Question: How to get a Customer based on a Property #299

Closed PeterOcansey closed 1 year ago

PeterOcansey commented 1 year ago

I added a location (Accra) property to customer and want to list the customers base on this property

$filter = (new CustomerFilters())
        ->withQuery('property:"Accra');

$customers = $client->customers()->list($filter);

This returns an empty result. is it possible to query customers based on a Property?

miguelrs commented 1 year ago

Hey @PeterOcansey! Unfortunately customer properties are not searchable at the moment in the List Customers endpoint. We're planning to add that functionality in the future, and when we do that, it will be automatically available to this SDK.