younifyd
Menu

Retrieve variations

Retrieve variations

GET/v2/variations

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve variations action (under Variations).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveVariations.response.data}}.

Request

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

idarray<string>

The ID(s) of the variations to return.

item_idarray<string>

The item ID(s) of variations to return.

next_page_cursorstring

Pagination cursor from which to start returning results. Cannot be used together with `page` or `offset`.

num_results_per_pageinteger

The number of results per page to return.

Default 100

pageinteger

The page of results to return.

offsetinteger

The number of results to skip from the beginning. Cannot be used together with `page`.

cstring

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

Response

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

total_countinteger

Total number of variations. Omitted when using cursor-based pagination (`next_page_cursor`).

variationsarray<object>
idstringrequired

The ID of the variation, must be unique.

item_idstringrequired

The ID of the item this variation is attached to.

namestring

The name of the variation, as it will appear in the results. Contains at least one alphanumeric character.

suggested_scoreinteger

A number that will influence the variation's initial ranking relative to other variation scores (the higher the score, the higher in the list of suggestions the variation will appear).

dataany

Object containing additional data attached to this variation.

updated_atstring (date-time)required

A date when the variation was updated.

next_page_cursorstring

Pagination cursor to use to receive the next page of results. The value is returned by the previous page response. Cannot be used together with `page` or `offset`.

json
{
  "variations": [
    {
      "id": "string",
      "item_id": "string",
      "updated_at": "2025-01-01T00:00:00Z",
      "name": "string",
      "suggested_score": 0,
      "data": null
    }
  ],
  "total_count": 0,
  "next_page_cursor": "string"
}

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