Product Filter translations

Read and write localized product filter fields through the Store API.

Translate the label of a built-in or custom product filter for an enabled non-default store locale. Reads require read_products and read_translations; writes require write_products and write_translations. Only label is translatable, with a 100-character limit. An empty string removes the translation.

Storefront listings use the translated heading when present and otherwise use the original label. Changing the original label marks its translations outdated without removing them. Filter keys, choice values, matching behavior and configuration revisions stay unchanged. Translate choice labels through their source resources. Built-in yes/no, availability and sale-state phrases use Storefront messages.

Get filter translation

GET read_products + read_translations

Read a filter's label in one locale.

The label is the only translatable field on a filter. label.origin is merchant for the store's own translation and platform for a built-in filter that still has its platform label: Tringify provides that label in every storefront language, so it is always present. A renamed built-in filter or a custom filter with no translation returns an empty fields object. Choice labels translate at their source. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.

Path parameters

Name Type Description
id required string

Product filter definition UUID, including a built-in filter.

Example: 4b7eac32-68d9-4d1e-a322-33ce1cb324a5
locale required string

Enabled non-default store locale.

Example: fr

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 TRANSLATION_LOCALE_NOT_ENABLED

    Locale is not enabled for this store.

  • 400 TRANSLATION_DEFAULT_LOCALE_FORBIDDEN

    Translations cannot target the store's default locale.

  • 400 TRANSLATION_INVALID_RESOURCE_ID

    A filter ID is not a valid nonzero UUID.

  • 400 TRANSLATION_RESOURCE_ID_NOT_IN_STORE

    A filter does not exist in this store.

  • 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.

Set filter translation

PUT write_products + write_translations

Translate a built-in or custom filter's label.

Only supplied fields change. label accepts up to 100 characters. An empty string removes the translation; a built-in filter with its platform label then shows the platform label for the locale again, never English. Saving the platform label itself stores nothing. Changing the original label marks translations outdated; they remain visible until updated or removed. Translations do not change filter keys, choice values, matching behavior, or configuration revisions. A saved label publishes product_filters/translations/update; a removed one publishes product_filters/translations/delete; neither publishes product_filters/update. A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with TRANSLATION_WRITE_BUSY (HTTP 503) saved nothing: send it again after error.details.retry_after_seconds (the call's Retry-After header says the same). Every row or call either saved or reports an error; none is left in an unknown state.

Path parameters

Name Type Description
id required string

Product filter definition UUID, including a built-in filter.

Example: 4b7eac32-68d9-4d1e-a322-33ce1cb324a5
locale required string

Enabled non-default store locale.

Example: fr

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key string

Optional key for this translation write. Reuse it only with the same payload when repeating the request.

Body parameters

Name Type Description
translations required object

Field-keyed string values. Only label is supported.

Example: {"label":"Matière"}

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 TRANSLATION_LOCALE_NOT_ENABLED

    Locale is not enabled for this store.

  • 400 TRANSLATION_DEFAULT_LOCALE_FORBIDDEN

    Translations cannot target the store's default locale.

  • 400 TRANSLATION_INVALID_RESOURCE_ID

    A filter ID is not a valid nonzero UUID.

  • 400 TRANSLATION_RESOURCE_ID_NOT_IN_STORE

    A filter does not exist in this store.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Malformed JSON, an unknown body field, or a non-string translation value.

  • 400 TRANSLATION_FIELDS_REQUIRED

    translations has no fields.

  • 400 TRANSLATION_FIELD_NOT_TRANSLATABLE

    Only label is translatable.

  • 400 TRANSLATION_TOO_MANY_FIELDS

    The request exceeds the translation field limit.

  • 400 TRANSLATION_FIELD_VALUE_TOO_LONG

    A value exceeds the allowed length.

  • 400 TRANSLATION_FIELD_EXCEEDS_BYTE_LIMIT

    The label exceeds 100 characters.

  • 400 TRANSLATION_STAGING_INVALID_CONTROL_CHARS

    The label contains invalid control characters.

  • 409 TRANSLATION_MUTATION_CONFLICT

    The idempotency key was already used with a different request.

  • 503 TRANSLATION_WRITE_BUSY

    Other translation writes held the item or a clashing name or slug for more than 2 seconds; nothing was saved. Send the request again after error.details.retry_after_seconds (also the Retry-After header).

  • 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.

Batch get filter translations

GET read_products + read_translations

Read several filter labels in one locale.

Each resources entry is keyed by product_filter_definition:{id}. label.origin is merchant for the store's own translation and platform for a built-in filter's platform label, which is always present. A renamed built-in filter or a custom filter with no translation has an empty object. Every requested filter must belong to the token's store. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.

Path parameters

Name Type Description
locale required string

Enabled non-default store locale.

Example: fr

Query parameters

Name Type Description
ids required string

Comma-separated filter definition UUIDs.

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.

  • 400 TRANSLATION_LOCALE_NOT_ENABLED

    Locale is not enabled for this store.

  • 400 TRANSLATION_DEFAULT_LOCALE_FORBIDDEN

    Translations cannot target the store's default locale.

  • 400 TRANSLATION_INVALID_RESOURCE_ID

    A filter ID is not a valid nonzero UUID.

  • 400 TRANSLATION_RESOURCE_ID_NOT_IN_STORE

    A filter does not exist in this store.

  • 400 TRANSLATION_RESOURCE_ID_REQUIRED

    ids is missing or empty.

  • 400 TRANSLATION_TOO_MANY_RESOURCES

    ids lists more filters than the translation batch limit.

  • 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.

Batch set filter translations

PUT write_products + write_translations

Set filter translations for any languages in one call.

Each row is one filter in one language: id, locale (any enabled non-default store locale) and fields. Rows for several languages can be mixed in one call; send at most 100 rows (one row = one filter in one locale) and at most one row per filter and locale. Each row is saved on its own: a failing row never stops the others. Empty values clear the matching field translation; omitted fields keep their translation. Every row is validated exactly like the single translation endpoint. The response has totals (rows, saved, failed) and one results entry per row in request order: {id, locale, status} with status saved or failed. A failed row carries the full error (code, message, details); its codes are the single endpoint's codes plus TRANSLATION_ROW_DUPLICATE. A saved rich-text row whose unsafe markup was removed lists warnings. A top-level code and message give the outcome: TRANSLATIONS_SAVED (200, every row saved), TRANSLATIONS_PARTIALLY_SAVED (200, success: true; the message counts saved and failed rows and names the failure reasons, e.g. "2 saved, 1 failed. No source text found for the requested fields (description).") TRANSLATIONS_NOT_SAVED_RETRY (503 with a Retry-After header, success: false; no row saved because every row failed only with TRANSLATION_WRITE_BUSY, so the same call can be sent again after error.details.retry_after_seconds) or TRANSLATIONS_NOT_SAVED (422, success: false; no row saved and at least one row failed for another reason). Both carry the same totals and results in error.details. With an Idempotency-Key, repeating the same request re-applies nothing that already saved and retries the failed rows. A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with TRANSLATION_WRITE_BUSY (HTTP 503) saved nothing: send it again after error.details.retry_after_seconds (the call's Retry-After header says the same). Every row or call either saved or reports an error; none is left in an unknown state.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Idempotency-Key string

Optional key for this translation write. Reuse it only with the same payload when repeating the request.

Body parameters

Name Type Description
translations required array<object>

Up to 100 rows shaped as {id, locale, fields}. Only label is translatable.

Example: [{"fields":{"label":"Matière"},"id":"4b7eac32-68d9-4d1e-a322-33ce1cb324a5","locale":"fr"},{"fields":{"label":"Material"},"id":"4b7eac32-68d9-4d1e-a322-33ce1cb324a5","locale":"de"},{"fields":{"label":"Material"},"id":"4b7eac32-68d9-4d1e-a322-33ce1cb324a5","locale":"pt-BR"}]

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.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 400 TRANSLATION_NO_WRITES_PROVIDED

    translations is empty.

  • 400 TRANSLATION_TOO_MANY_ROWS

    More than 100 rows; nothing is written.

  • 503 TRANSLATIONS_NOT_SAVED_RETRY

    No row saved and every row failed only with TRANSLATION_WRITE_BUSY: send the same request again after error.details.retry_after_seconds (also the Retry-After header). error.details also has totals and one results entry per row with its error.

  • 422 TRANSLATIONS_NOT_SAVED

    No row saved and at least one row failed with an error that sending again will not fix; error.details has totals and one results entry per row with its error.

  • 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.

Webhook events#

Product filter translations deleted

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

Fired when a product filter's label translation is cleared for a locale, including when the filter is deleted: then one event per locale the filter had a label translation in, with the label empty, alongside product_filters/delete (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.

locale string Always present

The store language of the translation.

translation object Always present
translation.label string | null Always present

The translated label. Empty on product_filters/translations/delete.

updated_at string Always present

When the translation changed, in the store's time zone with its offset (RFC 3339).

Product filter translations updated

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

Fired when a product filter's label translation is added or changed for a locale. Translation writes do not fire product_filters/update.

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.

locale string Always present

The store language of the translation.

translation object Always present
translation.label string | null Always present

The translated label. Empty on product_filters/translations/delete.

updated_at string Always present

When the translation changed, in the store's time zone with its offset (RFC 3339).