younifyd
Menu

Get Global

Get Global Search Configuration For Organization

GET/rest/organizations/{organizationId}/commerce/v2/configurations/search/global

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Get Global action (under Commerce).
  3. Fill in the fields below, then reference the result from later steps as {{getGlobal.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.

Response

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

conditionsarray<object>

Search conditions associated to query-based rules on a search configuration.

operatorstringrequired

The operator for the search condition.

One ofisExactlycontains

valuesarray<string>required

Values that are used by the operator.

idstring (uuid)

The unique identifier of the search configuration.

namestring

A unique name for the search configuration.

queryConfigurationobject

Query configuration.

additionalFieldsarray<string>

To retrieve [additional fields](https://docs.coveo.com/en/n73f0502#create-additional-commerce-fields) you have created, that aren’t part of the [standard commerce fields](https://docs.coveo.com/en/n73f0502#standard-commerce-fields), specify them here. These fields appear in the `additionalFields` object in the response.

facetsobject3 fields

DEPRECATED ON 2026-08-31: The facet request configuration. See https://docs.coveo.com/en/q3cc0299/deprecations/legacy-commerce-api-facet-management-deprecation for more details on the deprecation.

filterFieldRangeinteger (int32)

Default: `5`<br/>The maximum number of items to include in the childResults array of a folded query result (see SearchAPI's doc for more details).

perPageinteger (int32)

The number of results to include per page.<br/><br/><b>Note:</b> The specified value applies only to parent items, not their grouped children. Query performance may be affected when returned items include many grouped products.

productGroupingstring

The product grouping. Determines if pin rules should consider results to be grouped on the query pipeline, or not.

One ofnonequery_pipeline

sortsarray<oneOf>

Determines the order in which to retrieve the results.

rulesobject

Rules to apply at query time.

filterRulesarray<object>8 fields

List of the filter rules.

pinRulesarray<object>8 fields

List of the pin rules.

rankingRulesarray<object>9 fields

List of the ranking rules.

scopestring

Rule scope to return. One of: [specific, global]. Returns all if not specified.

One ofglobalspecific

trackingIdstring

The unique identifier of the tracking target.

json
{
  "rules": {
    "filterRules": [
      {
        "action": "include",
        "essential": false,
        "filters": [
          {
            "fieldName": "price",
            "operator": "isExactly",
            "value": {
              "type": "decimal",
              "value": 99.99
            }
          },
          {
            "fieldName": "item_count",
            "operator": "isBetween",
            "value": {
              "range": {
                "from": 1000,
                "to": 3000
              },
              "type": "range"
            }
          }
        ],
        "id": "00000000-0000-0000-0000-000000000000",
        "locales": [
          {
            "country": "US",
            "currency": "USD",
            "language": "en"
          }
        ],
        "name": "Pin #1 Short Open-Front Sweater for Women/Boost blue surfboards/Hide green t-shirts",
        "updatedAt": "2025-01-01T00:00:00Z",
        "updatedBy": "user@coveo.com"
      }
    ],
    "pinRules": [
      {
        "action": "pin",
        "essential": false,
        "id": "00000000-0000-0000-0000-000000000000",
        "locales": [
          {
            "country": "US",
            "currency": "USD",
            "language": "en"
          }
        ],
        "name": "Pin #1 Short Open-Front Sweater for Women/Boost blue surfboards/Hide green t-shirts",
        "rankByPermanentId": {
          "123456789": 1,
          "987654321": 2
        },
        "updatedAt": "2025-01-01T00:00:00Z",
        "updatedBy": "user@coveo.com"
      }
    ],
    "rankingRules": [
      {
        "action": "boost",
        "essential": false,
        "filters": [
          {
            "fieldName": "price",
            "operator": "isExactly",
            "value": {
              "type": "decimal",
              "value": 99.99
            }
          },
          {
            "fieldName": "item_count",
            "operator": "isBetween",
            "value": {
              "range": {
                "from": 1000,
                "to": 3000
              },
              "type": "range"
            }
          }
        ],
        "id": "00000000-0000-0000-0000-000000000000",
        "locales": [
          {
            "country": "US",
            "currency": "USD",
            "language": "en"
          }
        ],
        "name": "Pin #1 Short Open-Front Sweater for Women/Boost blue surfboards/Hide green t-shirts",
        "updatedAt": "2025-01-01T00:00:00Z",
        "updatedBy": "user@coveo.com",
        "value": 250
      }
    ]
  },
  "trackingId": "acmecorporation_ca",
  "conditions": [
    {
      "operator": "isExactly",
      "values": [
        "string"
      ]
    }
  ],
  "id": "755e2dd8-3a8f-19fb-b9ed-ed89c4f83c3b",
  "name": "Queries including `Summer`",
  "queryConfiguration": {
    "additionalFields": [
      "color",
      "shirtsize"
    ],
    "facets": {
      "enableIndexFacetOrdering": false,
      "facets": [
        null
      ],
      "freezeFacetOrder": false
    },
    "filterFieldRange": 0,
    "perPage": 20,
    "productGrouping": "none",
    "sorts": [
      {
        "fields": [
          {
            "direction": "asc",
            "displayNames": [
              {
                "language": "en",
                "value": "Price"
              },
              {
                "language": "fr",
                "value": "Prix"
              }
            ],
            "field": "ec_price"
          }
        ],
        "sortCriteria": "fields"
      }
    ]
  },
  "scope": "specific"
}

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

Was this page helpful?