Search synonyms

Manage locale-specific equivalent search terms for product discovery.

Search synonym groups expand recognized words or phrases to the alternatives in that group. Expansion is case-insensitive and scoped to the store and search language. Search itself matches other forms of a word in the search language, so jumpers finds a product titled Jumper without a group. A group applies only to terms typed as written: jumpers does not use a group holding jumper, so add the plural or other forms shoppers type as terms of their own. A group's terms also find each other's word forms in the search language: with a group holding bag and tote, bag finds a product titled Totes. In predictive search, a group applies once its whole term has been typed. Other query words, product visibility, and active filters still apply; equivalent terms do not guarantee identical ranking. Changes apply to every storefront search in that language (the search page, predictive search and searching within a collection) from the next request, without a search index rebuild.

Use GET /search-synonyms/locales to discover enabled languages for these groups. Reads require read_search; writes require write_search, which also grants read access. The token must be valid and the store must have an active or trialing subscription. Use Authentication, Rate limits, and Errors for the shared request rules.

Group response fields

A group has the following fields in list, create, and update responses. Create and update also return a top-level success code and message. Create returns HTTP 201 on success; the other endpoints return HTTP 200.

Field Type Meaning
id string Group UUID. Always present.
store_id string Owning store UUID. Always present and resolved from the token.
locale string Enabled store language code. Always present; there is no wildcard group.
terms array of strings Complete set of 2–25 terms. Always present. Leading and trailing whitespace is removed, repeated spaces become one, and Unicode text is normalized. Case and order are preserved.
created_at string Creation time in the store timezone, as an RFC 3339 timestamp with the store's numeric offset (for example 2026-08-03T16:30:00+02:00). Always present.
updated_at string Last successful update time in the store timezone, in the same format as created_at. Always present.

Timestamps carry the store timezone's offset at that moment, so the offset can change with daylight saving time; compare instants, not strings.

Webhooks and language removal

Subscribe to search_synonyms/create, search_synonyms/update, and search_synonyms/delete below when maintaining a copy. An app subscribes to them with read_search. The update event contains the resulting group; the delete event contains its deletion snapshot. A bulk delete sends one delete event for each group it removes. Webhook payload timestamps use the same store-timezone format as responses.

Removing a language from the store deletes its groups, without a separate group-delete event for each one. A mirror must also handle store/locales/deleted; adding the language again does not restore those groups. See Languages for the language-deletion event and its subscription requirements.

Endpoints#

List search synonym languages

GET read_search

List enabled languages for synonym groups.

Returns the enabled language codes, display labels, and default-language flag using Search read access. Use the returned locale code when creating or moving a group.

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

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

Search synonym limits

GET read_search

Get search synonym limits.

Returns validation and list controls. list_page_size is the default page size; list_max_limit is the maximum accepted size. page_size_options suggests UI choices, but any integer from 1 to list_max_limit is accepted. max_terms_per_group limits terms in one group; max_groups_per_store limits the groups a store can have across its languages. bulk_delete_max is the most group IDs one bulk delete accepts. max_term_length and search_max_length count Unicode code points. sort_columns lists the accepted sort keys. All fields shown in the response are present.

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

  • 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 search synonyms

GET read_search

List the store's search synonym groups.

Omit locale to list groups across the store's languages. A supplied locale must be enabled on the store. data.groups is an array of complete group objects; data.total is the number of groups matching the filters before pagination. data.store_total is the number of groups in the store across all languages, whatever the filters. An empty result or a page beyond the end returns groups: [] and the matching total. The default order is created_at descending; ties use ID descending. See the group response fields above.

Query parameters

Name Type Description
page integer

Positive page number. Missing or empty uses the default; zero, negative and non-integer values are rejected.

Default: 1
Example: 1
per_page integer

Any integer from 1 to 100. Missing or empty uses the default.

Default: 25
Example: 25
search string

Case-insensitive substring of a term or locale code; at most 100 Unicode code points. Percent and underscore are treated literally.

Example: tee
locale string

Enabled store language code, matched without case sensitivity. Omit or leave empty for all languages. The wildcard * is not supported.

Example: en
sort_by string

created_at, updated_at, or locale; other values are rejected.

Default: created_at
Example: updated_at
sort_direction string

Lowercase asc or desc; other values are rejected.

Default: desc
Example: desc

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

  • 400 INVALID_INPUT

    A query value is invalid: page or per_page is not a positive integer or is out of range, search is too long, or sort_by or sort_direction is not an accepted value.

  • 400 SEARCH_SYNONYM_LOCALE_INVALID

    The language code is unsupported or is not enabled on the store.

  • 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 search synonyms

POST write_search

Create a search synonym group.

Send JSON with an enabled language code and 2–25 terms. Leading and trailing whitespace is removed, repeated spaces become one, and Unicode text is normalized. Saved case and order are preserved. Each trimmed term can contain at most 64 Unicode code points. Empty terms and case-insensitive duplicates are rejected. A trimmed term cannot already belong to another group in the same store and language; that conflict returns 409. The same term can be used in another language. Success returns HTTP 201 with the complete group plus code: SEARCH_SYNONYM_CREATED and an English message, and emits search_synonyms/create.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
locale required string

Enabled store language code, matched without case sensitivity. Surrounding whitespace is trimmed; * is not supported.

Example: en
terms required array<string>

Complete group of 2–25 distinct, nonempty words or phrases; at most 64 Unicode code points per trimmed term.

Example: ["tee","t-shirt"]

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON, is null, or has data after the JSON value.

  • 400 INVALID_INPUT

    A term contains a control character.

  • 400 SEARCH_SYNONYM_LOCALE_INVALID

    The language code is unsupported or is not enabled on the store.

  • 400 SEARCH_SYNONYM_LOCALE_REQUIRED

    The required or supplied locale is blank.

  • 400 SEARCH_SYNONYM_TERMS_REQUIRED

    The required or supplied term array is empty.

  • 400 SEARCH_SYNONYM_TERMS_MIN

    The term array contains fewer than two terms.

  • 400 SEARCH_SYNONYM_TERMS_MAX

    The term array contains more than 25 terms; params.max gives the limit.

  • 400 SEARCH_SYNONYM_TERM_EMPTY

    A term is blank after Unicode normalization and whitespace normalization.

  • 400 SEARCH_SYNONYM_TERM_TOO_LONG

    A trimmed term exceeds 64 Unicode code points; params.max gives the limit.

  • 400 SEARCH_SYNONYM_TERM_DUPLICATE

    Two terms in the request match case-insensitively after Unicode normalization and whitespace normalization; params.term identifies the duplicate.

  • 400 SEARCH_SYNONYM_LIMIT_REACHED

    The store already has max_groups_per_store groups; params.max gives the limit.

  • 409 SEARCH_SYNONYM_TERM_IN_USE

    A term belongs to another group in this store and language; params.term is the conflicting term, normalized and in lowercase.

  • 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 search synonyms

PUT write_search

Update a search synonym group.

This PUT merges the supplied fields. Omitted or null fields retain their current values. A supplied terms array replaces the whole group; it does not append. The create validation rules still apply, so an empty array cannot clear a group. Changing locale moves the group to that enabled language and checks term ownership there. An update that changes nothing, including {}, returns the group as it is, without changing updated_at or emitting an event. The response contains the complete saved group with code: SEARCH_SYNONYM_UPDATED and an English message. A well-formed ID absent from the token's store returns 404.

Path parameters

Name Type Description
synonymId required string

The group's UUID, returned by list or create. Use an ID from the token's store.

Example: 3e41dbac-a931-4c43-9ff0-d430fa7b79c1

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
locale string

New enabled store language code. Omit or use null to retain the current language.

Example: en
terms array<string>

Complete replacement group, using the create limits. Omit or use null to retain the current terms.

Example: ["tee","t-shirt"]

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON, is null, or has data after the JSON value.

  • 400 INVALID_INPUT

    synonymId is not a well-formed UUID, or a term contains a control character.

  • 400 SEARCH_SYNONYM_LOCALE_INVALID

    The language code is unsupported or is not enabled on the store.

  • 400 SEARCH_SYNONYM_LOCALE_REQUIRED

    The required or supplied locale is blank.

  • 400 SEARCH_SYNONYM_TERMS_REQUIRED

    The required or supplied term array is empty.

  • 400 SEARCH_SYNONYM_TERMS_MIN

    The term array contains fewer than two terms.

  • 400 SEARCH_SYNONYM_TERMS_MAX

    The term array contains more than 25 terms; params.max gives the limit.

  • 400 SEARCH_SYNONYM_TERM_EMPTY

    A term is blank after Unicode normalization and whitespace normalization.

  • 400 SEARCH_SYNONYM_TERM_TOO_LONG

    A trimmed term exceeds 64 Unicode code points; params.max gives the limit.

  • 400 SEARCH_SYNONYM_TERM_DUPLICATE

    Two terms in the request match case-insensitively after Unicode normalization and whitespace normalization; params.term identifies the duplicate.

  • 409 SEARCH_SYNONYM_TERM_IN_USE

    A term belongs to another group in this store and language; params.term is the conflicting term, normalized and in lowercase.

  • 404 SEARCH_SYNONYM_NOT_FOUND

    The well-formed group ID does not exist in the token's store.

  • 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 search synonyms

DELETE write_search

Delete a search synonym group.

Removes the group from the token's store and emits search_synonyms/delete. Success has a code and message, with no data object. Repeating the deletion of a well-formed ID returns 404 once the group is absent; there is no restore endpoint.

Path parameters

Name Type Description
synonymId required string

The group's UUID, returned by list or create. Use an ID from the token's store.

Example: 3e41dbac-a931-4c43-9ff0-d430fa7b79c1

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

  • 400 INVALID_INPUT

    synonymId is not a well-formed UUID.

  • 404 SEARCH_SYNONYM_NOT_FOUND

    The well-formed group ID does not exist in the token's store.

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

Bulk delete search synonyms

POST write_search

Delete several search synonym groups in one request.

Send up to bulk_delete_max group IDs (see the limits endpoint). Duplicate IDs count once. The groups found in the token's store are deleted together in one transaction, each emitting search_synonyms/delete; an ID that cannot be deleted is reported in data.failed with a reason: INVALID_INPUT when it is not a well-formed UUID, SEARCH_SYNONYM_NOT_FOUND when it names no group in the store. The rest are still deleted. data.deleted lists the deleted IDs. The top-level code is SEARCH_SYNONYM_BULK_DELETED with an English message counting the deleted groups.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
ids required array<string>

Group UUIDs to delete, at most bulk_delete_max.

Example: ["3e41dbac-a931-4c43-9ff0-d430fa7b79c1"]

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

    The token does not grant the required resource scope. A write_search grant also permits reads.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON, is null, or has data after the JSON value.

  • 400 SEARCH_SYNONYM_BULK_NO_IDS

    ids is missing or empty.

  • 400 SEARCH_SYNONYM_BULK_TOO_MANY

    ids holds more than bulk_delete_max distinct IDs; params.max gives the 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.

Webhook events#

Search synonym group created

EVENT search_synonyms/create App scope: read_search Staff permission: online_store.search:write

Fired after a search synonym group is created. The search_synonym object describes the saved group. Its created_at and updated_at values, like every webhook timestamp, are in the store's time zone with its offset (RFC 3339).

Payload fields

Field Type Description
search_synonym.id string Always present

Stable UUID of the created, updated, or deleted group. Always included, even when other fields are excluded from the subscription payload.

search_synonym.locale string Selectable in the Payload builder

The group's store language code. For a locale change, the update contains the new code.

search_synonym.terms array Selectable in the Payload builder

Array of 2–25 strings: the complete saved term set, with trimmed text, original case, and saved order. The delete event carries the terms from the deleted group's snapshot.

search_synonym.created_at string Selectable in the Payload builder

When the group was created, in the store's time zone with its offset (RFC 3339).

search_synonym.updated_at string Selectable in the Payload builder

When the group last changed, in the store's time zone with its offset (RFC 3339). On delete this is the group's recorded update time, not the deletion time.

Search synonym group deleted

EVENT search_synonyms/delete App scope: read_search Staff permission: online_store.search:write

Fired for each search synonym group deleted, including each group of a bulk delete. The search_synonym object is the group snapshot loaded for deletion. Its created_at and updated_at values describe that group; updated_at is not the deletion time. Removing a store language also removes its groups, without a separate search_synonyms/delete event for each group. Integrations mirroring groups should also handle store/locales/deleted.

Payload fields

Field Type Description
search_synonym.id string Always present

Stable UUID of the created, updated, or deleted group. Always included, even when other fields are excluded from the subscription payload.

search_synonym.locale string Selectable in the Payload builder

The group's store language code. For a locale change, the update contains the new code.

search_synonym.terms array Selectable in the Payload builder

Array of 2–25 strings: the complete saved term set, with trimmed text, original case, and saved order. The delete event carries the terms from the deleted group's snapshot.

search_synonym.created_at string Selectable in the Payload builder

When the group was created, in the store's time zone with its offset (RFC 3339).

search_synonym.updated_at string Selectable in the Payload builder

When the group last changed, in the store's time zone with its offset (RFC 3339). On delete this is the group's recorded update time, not the deletion time.

Search synonym group updated

EVENT search_synonyms/update App scope: read_search Staff permission: online_store.search:write

Fired after a group update that changes its language or terms; an update that changes nothing sends no event. The search_synonym object contains the resulting group, not a before/after diff. Its timestamps are in the store's time zone with its offset (RFC 3339); updated_at is the group update time.

Payload fields

Field Type Description
search_synonym.id string Always present

Stable UUID of the created, updated, or deleted group. Always included, even when other fields are excluded from the subscription payload.

search_synonym.locale string Selectable in the Payload builder

The group's store language code. For a locale change, the update contains the new code.

search_synonym.terms array Selectable in the Payload builder

Array of 2–25 strings: the complete saved term set, with trimmed text, original case, and saved order. The delete event carries the terms from the deleted group's snapshot.

search_synonym.created_at string Selectable in the Payload builder

When the group was created, in the store's time zone with its offset (RFC 3339).

search_synonym.updated_at string Selectable in the Payload builder

When the group last changed, in the store's time zone with its offset (RFC 3339). On delete this is the group's recorded update time, not the deletion time.