Use these endpoints to configure product filters for storefront listings. Reads require read_products; creating, updating, reordering, or deleting a filter requires write_products.
Built-in filters cover price, availability, sale status, vendor, brand, categories, tags, rating (rating: the average of a product's approved reviews, 1 to 5, as a range) and discount (discount: the whole percent a running sale takes off a product's regular price in the shopper's currency, 0 without a sale, as a range). You can change their labels, enabled state, and order; their filter behavior is fixed. On a storefront listing, an enabled filter appears only when it can narrow that listing's results (for example, no price filter when every product has one price); an applied filter always appears. To add a filter, list eligible attribute or metafield sources first. Each source lists its compatible filter and display types and a recommended configuration. An app can use only metafield definitions it can read, and product and variant metafields have distinct filter keys. Configuration endpoints return base-language labels. Product filter translations read and write only label for an enabled non-default locale and additionally require read_translations or write_translations. Labels accept up to 100 characters; an empty string removes a translation. Storefront listings show the translated heading and each choice's translated label from its source; a heading without a translation shows its base-language label. Filter keys and choice values remain unchanged. Built-in yes/no, availability, and sale-state phrases use Storefront Messages, including per-language overrides.
For an update, send that definition’s current revision. For a reorder, fetch the unfiltered list, then send its top-level revision and every definition ID, including disabled ones. A stale revision returns 409 FILTER_REVISION_STALE. Every filter has its own position. Reordering changes the revision of each definition whose position moves, so fetch the list again before updating one. A sort_order on create or update places that one filter at the position and shifts the others; past the end it goes last.
Configuration changes publish webhooks: product_filters/create, product_filters/update (with changed_fields; saving unchanged values publishes nothing), product_filters/delete (also when uninstalling the app that owns a filter's metafield definition deletes the filter) and one product_filters/reorder per changed order (a reorder, a filter moved with sort_order, or a filter added in front of others), carrying every filter in the new order and the new list revision. Deleting a filter with label translations also sends product_filters/translations/delete per language; deliveries can arrive in any order. Label translations publish product_filters/translations/update and product_filters/translations/delete. Every event carries the same product_filter object. Subscribing requires read_products (translation events also read_translations); store endpoints need edit access to products. Hiding a filter on a listing where it cannot narrow the results is decided per page view and publishes nothing.
Endpoints#
Product filter contract
Get product filter limits and supported presentation choices.
max_per_store includes built-in and disabled filters. The query_max_* and facet_values_* limits govern storefront selections. Use the sources endpoint to see which presentation choices a specific attribute or metafield definition supports.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List product filter sources
List attributes and metafield definitions available as filter sources.
Each source includes compatible filter types, display choices, and a recommended configuration. Sources already used by a filter are omitted. A metafield definition must be readable by the token, visible on the storefront, and enabled for filtering. metafield_owner_type distinguishes product and variant definitions.
Query parameters
| Name | Type | Description |
|---|---|---|
source_type
required
|
string |
Source family to list: attribute or metafield. |
search
|
string |
Match a source by its name, namespace, key, or slug. |
limit
|
integer |
Number of sources, from 1 to source_list_max. Omission uses source_list_default; an oversized limit is rejected. |
offset
|
integer |
Number of matching sources to skip. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400FILTER_SOURCE_TYPE_INVALIDsource_type must be attribute or metafield.
-
400INVALID_INPUTlimitis outside 1 tosource_list_max,offsetis negative, orsearchis longer thansource_search_max_length.error.details.fieldnames the parameter. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List product filters
Search, filter, and sort the store's storefront product filters.
Search matches label or filter_key. store_total counts every definition, including disabled ones, even when search or filters narrow the response. The top-level revision covers the complete list; use it when reordering. Each definition has its own revision for updates. source_available reflects whether its source remains eligible and readable by the token. platform_labelled marks a built-in filter that still has its platform label: its label is returned in the store's default language, and Tringify provides it in every storefront language. Sorting this response does not change storefront order.
Query parameters
| Name | Type | Description |
|---|---|---|
search
|
string |
Match label or filter_key. |
source_type
|
string |
Filter by system, attribute, or metafield. |
enabled
|
boolean |
Filter by enabled state. |
sort_by
|
string |
One of the contract's sort_columns. |
sort_direction
|
string |
asc or desc. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400FILTER_SOURCE_TYPE_INVALIDsource_type is not system, attribute, or metafield.
-
400INVALID_INPUTsearchis longer thanlist_search_max_length,enabledis nottrueorfalse, orsort_byorsort_directionis not supported.error.details.fieldnames the parameter. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a product filter
Create a storefront filter from an attribute or metafield definition.
Choose a filter type and display type supported by the source. The service derives filter_key: for example, the Material attribute yields attribute:material, while a product metafield with namespace specs and key material yields metafield:product:specs.material. enabled defaults to true. The filter type decides selection: shoppers pick one value of an enum, boolean or range filter and any number of values of a multi_enum or color filter. A successful create publishes product_filters/create; when it goes in before other filters, their new positions also send product_filters/reorder. Where the filter shows: page_types lists the listing pages it appears on (shop, category, collection, vendor, brand, search; all of them by default); show_on limits it to specific pages (a category, optionally with all its subcategories, a collection, a vendor or a brand), overriding page_types; hide_on never shows it on the pages it names, and wins over both. A filter a shopper has already applied always stays so it can be removed, and a filter that cannot narrow the page's results is hidden anyway.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
source_type
required
|
string |
Filter source: attribute or metafield. |
source_id
required
|
string |
Attribute id or Metafield Definition id returned by List product filter sources. |
label
required
|
string |
Shopper-facing label in the store's default language. |
filter_type
required
|
string |
Filter behavior supported by the selected source: enum lets shoppers pick one value, multi_enum any number. |
display_type
required
|
string |
Storefront control supported by the selected source and filter type. |
enabled
|
boolean |
Whether the filter is enabled immediately. Defaults to true when omitted. |
sort_order
|
integer |
Storefront position, from zero through sort_order_max. The filter goes in at that position and the filters from it on move down by one; a position past the end, or none, adds it last. Every filter keeps its own position. |
page_types
|
array<string> |
Listing page types the filter shows on, from shop, category, collection, vendor, brand and search. Omitted on create: all of them. An empty list shows it on none of them, so only on its show_on pages.
Allowed values
shopcategorycollectionvendorbrandsearch |
show_on
|
array<object> |
Show the filter only on these pages, whatever page_types says. At most visibility_targets_max entries across show_on and hide_on. |
hide_on
|
array<object> |
Never show the filter on these pages. A page in hide_on cannot also be in show_on. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_INVALID_REQUEST_BODYThe body is malformed, contains trailing JSON, or contains an unknown field.
-
400FILTER_VISIBILITY_INVALIDpage_types, show_on or hide_on is invalid: an unknown page type or rule type, a rule id that does not exist in this store, a page in both show_on and hide_on, or more than visibility_targets_max rules.
error.details.fieldnames the field. -
409FILTER_SYSTEM_MANAGEDThe request tries to create a built-in filter or change its filter type or display type.
-
400FILTER_LABEL_INVALIDLabel contains control characters.
-
400FILTER_LABEL_REQUIREDLabel is empty after trimming.
-
400FILTER_LABEL_TOO_LONGLabel exceeds label_max_length.
-
400FILTER_SORT_ORDER_INVALIDsort_order is outside zero through sort_order_max.
-
400FILTER_SOURCE_TYPE_INVALIDsource_typeis notattributeormetafield. -
400FILTER_SOURCE_ID_REQUIREDA non-system filter requires a source id.
-
400FILTER_TYPE_INVALIDfilter_type is not supported.
-
400FILTER_DISPLAY_TYPE_INVALIDdisplay_type is not supported.
-
400FILTER_TYPE_DISPLAY_INVALIDThe display type is not compatible with the filter type.
-
400FILTER_SOURCE_DISPLAY_INVALIDThe filter type or display type is not supported by the selected source.
-
400FILTER_SOURCE_NOT_FOUNDThe selected source does not exist in this store or the token cannot read it.
-
400FILTER_METAFIELD_NOT_FILTERABLEThe Metafield Definition is not storefront-visible and filterable.
-
409FILTER_DEFINITION_DUPLICATEA filter already exists for this source.
-
409FILTER_LIMIT_REACHEDThe store has reached its Product Filter limit.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Reorder product filters
Replace the complete storefront filter order atomically.
Read the unfiltered list, then send its top-level revision and every definition id once, including disabled filters. A changed revision returns FILTER_REVISION_STALE; an incomplete or duplicate set returns FILTER_ORDER_INVALID. The operation is atomic. Reordering changes the revision of each definition whose position moves, so read the list again before a later update. A changed order publishes one product_filters/reorder event with every filter in the new order; sending the current order changes nothing and publishes nothing.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
revision
required
|
integer |
Complete-list revision from an unfiltered List product filters response. |
definition_ids
required
|
array<string> |
Every current definition id in the desired order. Replace these example IDs with the full unfiltered list from your store. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_INVALID_REQUEST_BODYThe body is malformed, contains trailing JSON, or contains an unknown field.
-
400FILTER_REVISION_REQUIREDThe update or reorder request has no usable revision.
-
409FILTER_REVISION_STALEThe definition or list changed since the supplied revision.
-
400FILTER_ORDER_INVALIDThe ID set is incomplete, contains duplicates, or includes an ID that is not a filter of this store (including one that is not a UUID).
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a product filter
Update a filter's label, state, supported presentation, or position.
Send the current definition revision. This is a merge update: omitted fields stay unchanged. A stale revision is rejected without saving. You can disable a filter even if its source is no longer eligible or readable. Built-in filter type and display are fixed; their labels, enabled state, and order can change. A built-in filter keeps its platform label, which Tringify provides in every storefront language, while its label equals that platform label in English or in the store's default language; any other label is the store's own text, translated like a custom filter's. Changing a base-language label marks its translations outdated without deleting them. A request that changes nothing leaves the revision unchanged and publishes no webhook; a successful change publishes product_filters/update with changed_fields. A new sort_order moves the filter and sends product_filters/reorder (with every filter's new position) instead of listing sort_order in changed_fields. Where the filter shows: page_types lists the listing pages it appears on (shop, category, collection, vendor, brand, search; all of them by default); show_on limits it to specific pages (a category, optionally with all its subcategories, a collection, a vendor or a brand), overriding page_types; hide_on never shows it on the pages it names, and wins over both. A filter a shopper has already applied always stays so it can be removed, and a filter that cannot narrow the page's results is hidden anyway.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
string |
Product filter definition id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
revision
required
|
integer |
The definition revision from the latest list or mutation response. Re-read after reordering. |
label
|
string |
New base-language label; the source name does not change. |
filter_type
|
string |
Filter behavior supported by the definition's source: enum lets shoppers pick one value, multi_enum any number. |
display_type
|
string |
Storefront control supported by the source and resulting filter type. |
enabled
|
boolean |
Whether the filter appears on storefront listings. |
sort_order
|
integer |
Storefront position, from zero through the contract's sort_order_max. The filter moves there and the filters between its old and new position shift by one; a position past the end moves it last. A move sends |
page_types
|
array<string> |
Listing page types the filter shows on, from shop, category, collection, vendor, brand and search. Omitted on create: all of them. An empty list shows it on none of them, so only on its show_on pages.
Allowed values
shopcategorycollectionvendorbrandsearch |
show_on
|
array<object> |
Show the filter only on these pages, whatever page_types says. At most visibility_targets_max entries across show_on and hide_on. |
hide_on
|
array<object> |
Never show the filter on these pages. A page in hide_on cannot also be in show_on. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_INVALID_REQUEST_BODYThe body is malformed, contains trailing JSON, or contains an unknown field.
-
400FILTER_VISIBILITY_INVALIDpage_types, show_on or hide_on is invalid: an unknown page type or rule type, a rule id that does not exist in this store, a page in both show_on and hide_on, or more than visibility_targets_max rules.
error.details.fieldnames the field. -
400FILTER_REVISION_REQUIREDThe update or reorder request has no usable revision.
-
409FILTER_REVISION_STALEThe definition or list changed since the supplied revision.
-
409FILTER_SYSTEM_MANAGEDThe request tries to create a built-in filter or change its filter type or display type.
-
400FILTER_LABEL_INVALIDLabel contains control characters.
-
400FILTER_LABEL_REQUIREDLabel is empty after trimming.
-
400FILTER_LABEL_TOO_LONGLabel exceeds label_max_length.
-
400FILTER_SORT_ORDER_INVALIDsort_order is outside zero through sort_order_max.
-
400FILTER_TYPE_INVALIDfilter_type is not supported.
-
400FILTER_DISPLAY_TYPE_INVALIDdisplay_type is not supported.
-
400FILTER_TYPE_DISPLAY_INVALIDThe display type is not compatible with the filter type.
-
400FILTER_SOURCE_DISPLAY_INVALIDThe filter type or display type is not supported by the selected source.
-
400FILTER_SOURCE_NOT_FOUNDThe selected source does not exist in this store or the token cannot read it.
-
400FILTER_METAFIELD_NOT_FILTERABLEThe Metafield Definition is not storefront-visible and filterable.
-
404FILTER_DEFINITION_NOT_FOUNDNo filter of this store has this id (including an id that is not a UUID).
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a product filter
Delete an attribute or metafield-backed filter.
Deleting a custom filter removes its label translations but leaves the source attribute or metafield definition and products intact. Built-in filters cannot be deleted; disable one with the update endpoint. A successful delete publishes product_filters/delete.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
string |
Product filter definition id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404FILTER_DEFINITION_NOT_FOUNDNo filter of this store has this id (including an id that is not a UUID).
-
400FILTER_SYSTEM_UNDELETABLEBuilt-in filters cannot be deleted.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Product filter created
Fired when a storefront product filter is created from an attribute or metafield definition.
Payload fields
| Field | Type | Description |
|---|---|---|
product_filter |
object |
Always present |
product_filter.id |
string |
Always present
Stable UUID of the filter definition. |
product_filter.filter_key |
string |
Always present
The key storefront filter URLs use, derived from the source and never changed: a built-in key such as |
product_filter.source_type |
string |
Always present
system for a built-in filter, attribute, or metafield. |
product_filter.source_id |
string | null |
Always present
The attribute id or metafield definition id the filter reads. null for a built-in filter. |
product_filter.source_owner_type |
string | null |
Always present
product or variant for a metafield filter. null for a built-in or attribute filter. |
product_filter.label |
string |
Always present
The filter's base-language heading. A platform-labelled built-in filter carries its platform label in the store's default language; changing the store's default language does not send product_filters/update. |
product_filter.platform_labelled |
boolean |
Always present
True for a built-in filter that still shows its platform label, which Tringify provides in every storefront language. |
product_filter.system_managed |
boolean |
Always present
True for a built-in filter: its filter type and display type are fixed, and it cannot be deleted. |
product_filter.filter_type |
string |
Always present
enum, multi_enum, range, boolean or color. It decides selection: shoppers pick one value of an enum, boolean or range filter and any number of values of a multi_enum or color filter. |
product_filter.display_type |
string |
Always present
checkbox, swatch, image_swatch, range, toggle or pills. |
product_filter.enabled |
boolean |
Always present
Whether the filter is offered on storefront listings. An enabled filter is still left out of a listing where it cannot narrow the results; that is decided per page view and sends no event. |
product_filter.sort_order |
integer |
Always present
Storefront position, from zero. Every filter of the store has its own position. |
product_filter.revision |
integer |
Always present
The filter's revision. Send it with the next update; it changes on every saved change, including a reorder that moves the filter. |
product_filter.page_types |
array |
Always present
The listing page types the filter shows on: shop, category, collection, vendor, brand, search. Not used while show_on lists any page. |
product_filter.show_on |
array |
Always present
The pages the filter shows only on, overriding page_types. Empty when it follows page_types. |
product_filter.show_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filter.show_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filter.show_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
product_filter.hide_on |
array |
Always present
The pages the filter never shows on. Wins over page_types and show_on. |
product_filter.hide_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filter.hide_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filter.hide_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
Product filter deleted
Fired when a product filter is deleted, including when uninstalling the app that owns its metafield definition deletes it. The payload carries the filter as it was before deletion. The same deletion also sends product_filters/translations/delete for each locale the filter had a label translation in; deliveries can arrive in either order.
Payload fields
| Field | Type | Description |
|---|---|---|
product_filter |
object |
Always present |
product_filter.id |
string |
Always present
Stable UUID of the filter definition. |
product_filter.filter_key |
string |
Always present
The key storefront filter URLs use, derived from the source and never changed: a built-in key such as |
product_filter.source_type |
string |
Always present
system for a built-in filter, attribute, or metafield. |
product_filter.source_id |
string | null |
Always present
The attribute id or metafield definition id the filter reads. null for a built-in filter. |
product_filter.source_owner_type |
string | null |
Always present
product or variant for a metafield filter. null for a built-in or attribute filter. |
product_filter.label |
string |
Always present
The filter's base-language heading. A platform-labelled built-in filter carries its platform label in the store's default language; changing the store's default language does not send product_filters/update. |
product_filter.platform_labelled |
boolean |
Always present
True for a built-in filter that still shows its platform label, which Tringify provides in every storefront language. |
product_filter.system_managed |
boolean |
Always present
True for a built-in filter: its filter type and display type are fixed, and it cannot be deleted. |
product_filter.filter_type |
string |
Always present
enum, multi_enum, range, boolean or color. It decides selection: shoppers pick one value of an enum, boolean or range filter and any number of values of a multi_enum or color filter. |
product_filter.display_type |
string |
Always present
checkbox, swatch, image_swatch, range, toggle or pills. |
product_filter.enabled |
boolean |
Always present
Whether the filter is offered on storefront listings. An enabled filter is still left out of a listing where it cannot narrow the results; that is decided per page view and sends no event. |
product_filter.sort_order |
integer |
Always present
Storefront position, from zero. Every filter of the store has its own position. |
product_filter.revision |
integer |
Always present
The filter's revision. Send it with the next update; it changes on every saved change, including a reorder that moves the filter. |
product_filter.page_types |
array |
Always present
The listing page types the filter shows on: shop, category, collection, vendor, brand, search. Not used while show_on lists any page. |
product_filter.show_on |
array |
Always present
The pages the filter shows only on, overriding page_types. Empty when it follows page_types. |
product_filter.show_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filter.show_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filter.show_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
product_filter.hide_on |
array |
Always present
The pages the filter never shows on. Wins over page_types and show_on. |
product_filter.hide_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filter.hide_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filter.hide_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
Product filters reordered
Fired when the storefront order of product filters changes: a complete reorder, a filter moved with a new sort_order, or a filter added in front of others. One event carries every filter in the new order, each with its new sort_order and revision, plus the new list revision. An unchanged order sends nothing.
Payload fields
| Field | Type | Description |
|---|---|---|
product_filters |
array |
Always present
Every filter of the store, including disabled ones, in the new storefront order. |
product_filters[*].id |
string |
Always present
Stable UUID of the filter definition. |
product_filters[*].filter_key |
string |
Always present
The key storefront filter URLs use, derived from the source and never changed: a built-in key such as |
product_filters[*].source_type |
string |
Always present
system for a built-in filter, attribute, or metafield. |
product_filters[*].source_id |
string | null |
Always present
The attribute id or metafield definition id the filter reads. null for a built-in filter. |
product_filters[*].source_owner_type |
string | null |
Always present
product or variant for a metafield filter. null for a built-in or attribute filter. |
product_filters[*].label |
string |
Always present
The filter's base-language heading. A platform-labelled built-in filter carries its platform label in the store's default language; changing the store's default language does not send product_filters/update. |
product_filters[*].platform_labelled |
boolean |
Always present
True for a built-in filter that still shows its platform label, which Tringify provides in every storefront language. |
product_filters[*].system_managed |
boolean |
Always present
True for a built-in filter: its filter type and display type are fixed, and it cannot be deleted. |
product_filters[*].filter_type |
string |
Always present
enum, multi_enum, range, boolean or color. It decides selection: shoppers pick one value of an enum, boolean or range filter and any number of values of a multi_enum or color filter. |
product_filters[*].display_type |
string |
Always present
checkbox, swatch, image_swatch, range, toggle or pills. |
product_filters[*].enabled |
boolean |
Always present
Whether the filter is offered on storefront listings. An enabled filter is still left out of a listing where it cannot narrow the results; that is decided per page view and sends no event. |
product_filters[*].sort_order |
integer |
Always present
Storefront position, from zero. Every filter of the store has its own position. |
product_filters[*].revision |
integer |
Always present
The filter's revision. Send it with the next update; it changes on every saved change, including a reorder that moves the filter. |
product_filters[*].page_types |
array |
Always present
The listing page types the filter shows on: shop, category, collection, vendor, brand, search. Not used while show_on lists any page. |
product_filters[*].show_on |
array |
Always present
The pages the filter shows only on, overriding page_types. Empty when it follows page_types. |
product_filters[*].show_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filters[*].show_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filters[*].show_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
product_filters[*].hide_on |
array |
Always present
The pages the filter never shows on. Wins over page_types and show_on. |
product_filters[*].hide_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filters[*].hide_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filters[*].hide_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
revision |
integer |
Always present
The new complete-list revision. Send it with the next reorder. |
Product filter updated
Fired when a product filter's label, filter type, display type, enabled state or the pages it shows on (page_types, show_on, hide_on) change, including when deleting a category, collection, vendor or brand removes it from show_on or hide_on. changed_fields lists what changed. Saving unchanged values sends nothing. A change of position, whether a complete reorder or one filter's new sort_order, sends product_filters/reorder instead.
Possible changed_fields values
The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.
display_type enabled filter_type hide_on label page_types show_on
Payload fields
| Field | Type | Description |
|---|---|---|
product_filter |
object |
Always present |
product_filter.id |
string |
Always present
Stable UUID of the filter definition. |
product_filter.filter_key |
string |
Always present
The key storefront filter URLs use, derived from the source and never changed: a built-in key such as |
product_filter.source_type |
string |
Always present
system for a built-in filter, attribute, or metafield. |
product_filter.source_id |
string | null |
Always present
The attribute id or metafield definition id the filter reads. null for a built-in filter. |
product_filter.source_owner_type |
string | null |
Always present
product or variant for a metafield filter. null for a built-in or attribute filter. |
product_filter.label |
string |
Always present
The filter's base-language heading. A platform-labelled built-in filter carries its platform label in the store's default language; changing the store's default language does not send product_filters/update. |
product_filter.platform_labelled |
boolean |
Always present
True for a built-in filter that still shows its platform label, which Tringify provides in every storefront language. |
product_filter.system_managed |
boolean |
Always present
True for a built-in filter: its filter type and display type are fixed, and it cannot be deleted. |
product_filter.filter_type |
string |
Always present
enum, multi_enum, range, boolean or color. It decides selection: shoppers pick one value of an enum, boolean or range filter and any number of values of a multi_enum or color filter. |
product_filter.display_type |
string |
Always present
checkbox, swatch, image_swatch, range, toggle or pills. |
product_filter.enabled |
boolean |
Always present
Whether the filter is offered on storefront listings. An enabled filter is still left out of a listing where it cannot narrow the results; that is decided per page view and sends no event. |
product_filter.sort_order |
integer |
Always present
Storefront position, from zero. Every filter of the store has its own position. |
product_filter.revision |
integer |
Always present
The filter's revision. Send it with the next update; it changes on every saved change, including a reorder that moves the filter. |
product_filter.page_types |
array |
Always present
The listing page types the filter shows on: shop, category, collection, vendor, brand, search. Not used while show_on lists any page. |
product_filter.show_on |
array |
Always present
The pages the filter shows only on, overriding page_types. Empty when it follows page_types. |
product_filter.show_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filter.show_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filter.show_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
product_filter.hide_on |
array |
Always present
The pages the filter never shows on. Wins over page_types and show_on. |
product_filter.hide_on[*].type |
string |
Always present
category, collection, vendor or brand. |
product_filter.hide_on[*].id |
string |
Always present
The category, collection, vendor or brand id. |
product_filter.hide_on[*].include_children |
boolean |
Always present
For a category, whether every category below it is covered too. false for other types. |
changed_fields |
array |
Always present
The fields this update changed: label, filter_type, display_type, enabled, page_types, show_on or hide_on. A change of position sends product_filters/reorder instead. |