younifyd
Menu

List Synonyms

List synonym rules

GET/rest/organizations/{organizationId}/commerce/v2/search/synonyms

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the List Synonyms action (under Commerce).
  3. Fill in the fields below, then reference the result from later steps as {{listSynonyms.response.data}}.

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:** `acmecorporation8tp8wu3`

Query parameters

trackingIdstringrequired

The unique identifier of the tracking target.

languagestring

An ISO 639-1 language code.

countrystring

An ISO 3166-1 alpha-2 country code.

currencystring

An ISO 4217 currency code.

querystring

Filter on search term (query expression) when requesting rules.

actionstring

The synonym rule type. Possible values are: one-way, two-way, and one-way-reverse.

sortstring

property.direction to sort by.

pageinteger (int32)

The 0-based index number of the page of rules to retrieve.</br>**Minimum:** `0`</br>**Default:** `0`

Default 0

perPageinteger (int32)

The number of rules to list per page.</br>**Minimum:** `1`</br>**Maximum:** `1000`</br>**Default:** `10`

Default 10

Response

Returns 200 with an object. Read it in later steps with {{listSynonyms.response.data.<field>}}.

itemsarray<object>

The retrieved page of items.

actionstringrequired

The synonym rule type. Possible values are: one-way, two-way, and one-way-reverse.

One ofone-waytwo-wayreplaceexact-match

fromarray<string>required

The search terms contained in the output query if matched against a synonym rule.

idstring (uuid)

A UUID identifying the synonym rule.

localesarray<object>3 fields

The list of locales the synonym applies to. When empty, the synonym applies to all locales.

toarray<string>

The search terms contained in the input query.

updatedAtstring

The date and time at which the synonym was last updated.

totalEntriesinteger (int64)

The total number of results that match the query.

totalPagesinteger (int32)

The total number of pages of items available.

json
{
  "items": [
    {
      "action": "one-way",
      "from": [
        "sandals",
        "sneakers"
      ],
      "id": "58bb4b98-1daa-4767-8c15-90a0ea67645c",
      "locales": [
        {
          "country": "US",
          "currency": "USD",
          "language": "en"
        }
      ],
      "to": [
        "shoes",
        "heels"
      ],
      "updatedAt": "string"
    }
  ],
  "totalEntries": 0,
  "totalPages": 0
}

Need more? See the Coveo guide for connection setup and behaviour shared by every action.

Was this page helpful?