HubSpot · Schema
Filter
A single filter criterion
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales
Properties
| Name | Type | Description |
|---|---|---|
| propertyName | string | The property to filter on |
| operator | string | The comparison operator |
| value | string | The value to compare against |
| values | array | Values for IN/NOT_IN operators |
| highValue | string | Upper bound for BETWEEN operator |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/commerce-payments-api-filter-schema.json",
"title": "Filter",
"description": "A single filter criterion",
"type": "object",
"properties": {
"propertyName": {
"type": "string",
"description": "The property to filter on",
"example": "Example Record"
},
"operator": {
"type": "string",
"enum": [
"EQ",
"NEQ",
"LT",
"LTE",
"GT",
"GTE",
"BETWEEN",
"IN",
"NOT_IN",
"HAS_PROPERTY",
"NOT_HAS_PROPERTY",
"CONTAINS_TOKEN",
"NOT_CONTAINS_TOKEN"
],
"description": "The comparison operator",
"example": "EQ"
},
"value": {
"type": "string",
"description": "The value to compare against",
"example": "example-value"
},
"values": {
"type": "array",
"description": "Values for IN/NOT_IN operators",
"items": {
"type": "string"
},
"example": [
"example-value"
]
},
"highValue": {
"type": "string",
"description": "Upper bound for BETWEEN operator",
"example": "example-value"
}
},
"required": [
"propertyName",
"operator"
]
}