Product Filters

Configure the filters shoppers use to narrow product listings.

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 read_products

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

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List product filter sources

GET read_products

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.

Example: attribute
search string

Match a source by its name, namespace, key, or slug.

Example: Material
limit integer

Number of sources, from 1 to source_list_max. Omission uses source_list_default; an oversized limit is rejected.

Example: 25
offset integer

Number of matching sources to skip.

Example: 0

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 FILTER_SOURCE_TYPE_INVALID

    source_type must be attribute or metafield.

  • 400 INVALID_INPUT

    limit is outside 1 to source_list_max, offset is negative, or search is longer than source_search_max_length. error.details.field names the parameter.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List product filters

GET read_products

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.

Example: Price
source_type string

Filter by system, attribute, or metafield.

Example: system
enabled boolean

Filter by enabled state.

Example: true
sort_by string

One of the contract's sort_columns.

Example: sort_order
sort_direction string

asc or desc.

Example: asc

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 FILTER_SOURCE_TYPE_INVALID

    source_type is not system, attribute, or metafield.

  • 400 INVALID_INPUT

    search is longer than list_search_max_length, enabled is not true or false, or sort_by or sort_direction is not supported. error.details.field names the parameter.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create a product filter

POST write_products

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.

Example: attribute
source_id required string

Attribute id or Metafield Definition id returned by List product filter sources.

Example: 42
label required string

Shopper-facing label in the store's default language.

Example: Material
filter_type required string

Filter behavior supported by the selected source: enum lets shoppers pick one value, multi_enum any number.

Example: multi_enum
display_type required string

Storefront control supported by the selected source and filter type.

Example: checkbox
enabled boolean

Whether the filter is enabled immediately. Defaults to true when omitted.

Example: true
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.

Example: 7
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
Example: ["shop","search"]
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.

Example: [{"type":"category","id":"12","include_children":true}]
hide_on array<object>

Never show the filter on these pages. A page in hide_on cannot also be in show_on.

Example: [{"type":"collection","id":"8a6f0d4e-1c2b-4d5e-9f00-1234567890ab"}]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is malformed, contains trailing JSON, or contains an unknown field.

  • 400 FILTER_VISIBILITY_INVALID

    page_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.field names the field.

  • 409 FILTER_SYSTEM_MANAGED

    The request tries to create a built-in filter or change its filter type or display type.

  • 400 FILTER_LABEL_INVALID

    Label contains control characters.

  • 400 FILTER_LABEL_REQUIRED

    Label is empty after trimming.

  • 400 FILTER_LABEL_TOO_LONG

    Label exceeds label_max_length.

  • 400 FILTER_SORT_ORDER_INVALID

    sort_order is outside zero through sort_order_max.

  • 400 FILTER_SOURCE_TYPE_INVALID

    source_type is not attribute or metafield.

  • 400 FILTER_SOURCE_ID_REQUIRED

    A non-system filter requires a source id.

  • 400 FILTER_TYPE_INVALID

    filter_type is not supported.

  • 400 FILTER_DISPLAY_TYPE_INVALID

    display_type is not supported.

  • 400 FILTER_TYPE_DISPLAY_INVALID

    The display type is not compatible with the filter type.

  • 400 FILTER_SOURCE_DISPLAY_INVALID

    The filter type or display type is not supported by the selected source.

  • 400 FILTER_SOURCE_NOT_FOUND

    The selected source does not exist in this store or the token cannot read it.

  • 400 FILTER_METAFIELD_NOT_FILTERABLE

    The Metafield Definition is not storefront-visible and filterable.

  • 409 FILTER_DEFINITION_DUPLICATE

    A filter already exists for this source.

  • 409 FILTER_LIMIT_REACHED

    The store has reached its Product Filter limit.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Reorder product filters

PUT write_products

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.

Example: 8
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.

Example: ["22222222-2222-4222-8222-222222222221","22222222-2222-4222-8222-222222222222","22222222-2222-4222-8222-222222222223","22222222-2222-4222-8222-222222222224","22222222-2222-4222-8222-222222222225","22222222-2222-4222-8222-222222222226","22222222-2222-4222-8222-222222222227","4b7eac32-68d9-4d1e-a322-33ce1cb324a5"]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is malformed, contains trailing JSON, or contains an unknown field.

  • 400 FILTER_REVISION_REQUIRED

    The update or reorder request has no usable revision.

  • 409 FILTER_REVISION_STALE

    The definition or list changed since the supplied revision.

  • 400 FILTER_ORDER_INVALID

    The 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).

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update a product filter

PUT write_products

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.

Example: 4b7eac32-68d9-4d1e-a322-33ce1cb324a5

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.

Example: 2
label string

New base-language label; the source name does not change.

Example: Fabric
filter_type string

Filter behavior supported by the definition's source: enum lets shoppers pick one value, multi_enum any number.

Example: multi_enum
display_type string

Storefront control supported by the source and resulting filter type.

Example: pills
enabled boolean

Whether the filter appears on storefront listings.

Example: true
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 product_filters/reorder. To set the whole order at once, use the reorder endpoint.

Example: 7
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
Example: ["shop","search"]
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.

Example: [{"type":"category","id":"12","include_children":true}]
hide_on array<object>

Never show the filter on these pages. A page in hide_on cannot also be in show_on.

Example: [{"type":"collection","id":"8a6f0d4e-1c2b-4d5e-9f00-1234567890ab"}]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is malformed, contains trailing JSON, or contains an unknown field.

  • 400 FILTER_VISIBILITY_INVALID

    page_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.field names the field.

  • 400 FILTER_REVISION_REQUIRED

    The update or reorder request has no usable revision.

  • 409 FILTER_REVISION_STALE

    The definition or list changed since the supplied revision.

  • 409 FILTER_SYSTEM_MANAGED

    The request tries to create a built-in filter or change its filter type or display type.

  • 400 FILTER_LABEL_INVALID

    Label contains control characters.

  • 400 FILTER_LABEL_REQUIRED

    Label is empty after trimming.

  • 400 FILTER_LABEL_TOO_LONG

    Label exceeds label_max_length.

  • 400 FILTER_SORT_ORDER_INVALID

    sort_order is outside zero through sort_order_max.

  • 400 FILTER_TYPE_INVALID

    filter_type is not supported.

  • 400 FILTER_DISPLAY_TYPE_INVALID

    display_type is not supported.

  • 400 FILTER_TYPE_DISPLAY_INVALID

    The display type is not compatible with the filter type.

  • 400 FILTER_SOURCE_DISPLAY_INVALID

    The filter type or display type is not supported by the selected source.

  • 400 FILTER_SOURCE_NOT_FOUND

    The selected source does not exist in this store or the token cannot read it.

  • 400 FILTER_METAFIELD_NOT_FILTERABLE

    The Metafield Definition is not storefront-visible and filterable.

  • 404 FILTER_DEFINITION_NOT_FOUND

    No filter of this store has this id (including an id that is not a UUID).

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete a product filter

DELETE write_products

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.

Example: 4b7eac32-68d9-4d1e-a322-33ce1cb324a5

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 FILTER_DEFINITION_NOT_FOUND

    No filter of this store has this id (including an id that is not a UUID).

  • 400 FILTER_SYSTEM_UNDELETABLE

    Built-in filters cannot be deleted.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Webhook events#

Product filter created

EVENT product_filters/create App scope: read_products Staff permission: products:write

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 price or vendor, attribute:<slug>, or metafield:<owner>:<namespace>.<key>.

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

EVENT product_filters/delete App scope: read_products Staff permission: products:write

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 price or vendor, attribute:<slug>, or metafield:<owner>:<namespace>.<key>.

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

EVENT product_filters/reorder App scope: read_products Staff permission: products:write

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 price or vendor, attribute:<slug>, or metafield:<owner>:<namespace>.<key>.

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

EVENT product_filters/update App scope: read_products Staff permission: products:write

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 price or vendor, attribute:<slug>, or metafield:<owner>:<namespace>.<key>.

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.