younifyd
Menu

Retrieve variation product details

Retrieve variation product details

GET/v1/variations

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve variation product details action (under Product Details).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveVariationProductDetails.response.data}}.

Request

Query parameters

sectionstringrequired

The section of the index to use (e.g. 'Products').

variation_idarray<string>required

One or more variation IDs to retrieve product details for. This parameter may be repeated to specify multiple IDs.

coneOf

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

uioneOf

A customer generated anonymized identifier for a user on a customer website. It should only be sent for logged in customers and helps Constructor to tie multiple client and session IDs together to form a behavioral data profile across devices.

fieldsarray<string>required

One or more product detail fields to include in the response. This parameter may be repeated to specify multiple fields.

soneOf

An integer representing the users session number (starting with `1`), incremented after a 30 minute period of inactivity.

ioneOf

A globally unique identifier for the user browser (or mobile application instance) making the request.

Response

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

trace_idstring
responseobject
variationsarray<object>required2 fields
json
{
  "trace_id": "string",
  "response": {
    "variations": [
      {
        "variation_id": "string",
        "enriched_attributes": {
          "badges": [
            {
              "type": null,
              "display_name": null,
              "metadata": null
            }
          ],
          "attributes": {}
        }
      }
    ]
  }
}

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

Retrieve variation product details — Constructor — Documentation