younifyd
Menu

Setup

Create CMH scaffolding

POST/rest/organizations/{organizationId}/commerce/v2/setup

Use it in a workflow

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

Request

Path parameters

organizationIdstringrequired

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

Request body

Enter the body as JSON in the step's Body field.

pipelineSetupsarray<object>

List of pipeline setups to configure

deactivateRankingFactorboolean

Indicates whether the ranking factors should be deactivated for the pipeline. If null, the ranking factors will not be changed.

pipelineIdstringrequired

The identifier of the pipeline used to process the query.

pipelineProductGroupingobject2 fields

Indicates whether the pipeline should be grouped. Use this option to control the aggregation behavior of the pipeline. If null, the grouping will not be changed.

trackingIdstring

The unique identifier of the tracking target.

trackingIdToCatalogMappingarray<object>required

The mappings related to the supplied tracking IDs

catalogNamestringrequired

The name of the catalog for this mapping

countrystringrequired

Country code that must conform to the ISO 3166-1 country code specification

currencystringrequired

Currency code that must conform to the ISO 4217 currency code specification

languagestringrequired

Language code that must conform to the ISO 639-1 language code specification

json
{
  "trackingIdToCatalogMapping": [
    {
      "catalogName": "MyCatalog",
      "country": "GB",
      "currency": "USD",
      "language": "en"
    }
  ],
  "pipelineSetups": [
    {
      "pipelineId": "9716d88a-f02b-480e-bf44-ab1b1af165a8",
      "deactivateRankingFactor": false,
      "pipelineProductGrouping": {
        "trackingId": "MyTrackingID",
        "globalProductGroupingEnabled": false
      }
    }
  ],
  "trackingId": "acmecorporation_ca"
}

Response

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

globalConfigurationUpdatedarray<object>

The list of updated global configurations.

pipelineIdstring

The query pipelines updated by the setup request.

productGroupingstring

Indicates whether the product grouping configuration was updated by the setup request. Possible values: `QUERY_PIPELINE` or `NONE`.

One ofnonequery_pipeline

queryPipelinesarray<object>

The list of query pipeline configurations created or modified.

deactivateRankingFactorboolean
idstring

The unique identifier of the pipeline in UUID format.

namestring

The unique identifier of the pipeline in UUID format.

pipelineProductGroupingEnabledboolean
trackingIdToCatalogMappingarray<object>
catalogobject5 fields

This will contain the full catalog info as per the catalog resource

catalogNamestringrequired

The name of the catalog for this mapping

countrystringrequired

Country code that must conform to the ISO 3166-1 country code specification

currencystringrequired

Currency code that must conform to the ISO 4217 currency code specification

languagestringrequired

Language code that must conform to the ISO 639-1 language code specification

primarybooleanrequired

Determines if this mapping is the primary one for a specific tracking id

json
{
  "globalConfigurationUpdated": [
    {
      "pipelineId": "pipelineId",
      "productGrouping": "NONE"
    }
  ],
  "queryPipelines": [
    {
      "deactivateRankingFactor": false,
      "id": "9a0914c9-08d4-42f6-ba37-44c8c3d4c196",
      "name": "9a0914c9-08d4-42f6-ba37-44c8c3d4c196",
      "pipelineProductGroupingEnabled": false
    }
  ],
  "trackingIdToCatalogMapping": [
    {
      "catalogName": "MyCatalog",
      "country": "GB",
      "currency": "USD",
      "language": "en",
      "primary": true,
      "catalog": {
        "availabilitySourceName": "availabilitysource",
        "catalogConfiguration": {
          "available": {
            "idField": "availabilityid"
          },
          "product": {
            "idField": "productid"
          }
        },
        "id": "644e1dd7-2a7f-18fb-b8ed-ed78c3f92c2b",
        "name": "string",
        "sourceName": "acmecorporation8tp8wu3-qwpdaajjq3ahak5wlq7adhciuq"
      }
    }
  ]
}

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

Was this page helpful?