Internal Server Error when searching catalog api

Getting a 500 error when making the below request. I only want item objects that have visible ecom_visibility. Reading the docs here I was able to search by the name attribute just fine, however when I change this to ecom_visibility I get an internal server error. Is this a bug in the api or is there another method I should be using to refine a query?

curl \
  -X POST \
  -H 'Square-Version: 2023-06-08' \
  -H 'Content-Type: application/json' \
  -d '{
    "object_types": [
    "include_deleted_objects": false,
    "include_related_objects": false,
    "query": {
      "exact_query": {
        "attribute_name": "ecom_visibility",
        "attribute_value": "VISIBLE"

I’ll let the team know about the 500 error. We definitely should be returning a 4xx. As for the fields your querying for they’re not documented and shouldn’t be relied on. :slightly_smiling_face: