Getting a 500 error when making the below request. I only want item objects that have visible ecom_visibility. Reading the docs here https://developer.squareup.com/docs/catalog-api/search-catalog-objects 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 https://connect.squareup.com/v2/catalog/search \
-X POST \
-H 'Square-Version: 2023-06-08' \
-H 'Content-Type: application/json' \
-d '{
"object_types": [
"ITEM"
],
"include_deleted_objects": false,
"include_related_objects": false,
"query": {
"exact_query": {
"attribute_name": "ecom_visibility",
"attribute_value": "VISIBLE"
}
}
}'