I’m having a problem with the Search endpoint on the Customers API when filtering by group_id. The following request returns a 200 response and an empty object. I’m using the Square API Explorer to test this. The Customer API search endpoint successfully returns results on a search with no query filters. I’m certain that the group_id is valid because I obtained it from one such search. I’ve also tried several other group_ids with no luck.
I’ve replaced my access token with “MY_TOKEN” in this example, but am using the correct token in my actual search. Any ideas what I’m missing?
curl https://connect.squareup.com/v2/customers/search \
-X POST \
-H 'Square-Version: 2020-12-16' \
-H 'Authorization: Bearer MY_TOKEN \
-H 'Content-Type: application/json' \