younifyd
Menu

Create an item set for promotions

Create an item set for promotions

POST/promotions/item-sets

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create an item set for promotions action (under PromotionItemSets).
  3. Fill in the fields below, then reference the result from later steps as {{createAnItemSetForPromotions.response.data}}.

Request

Request body

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

idstring

Item Set id

namestringrequired

Name of the item set

variantIdsarray<integer>

A list of variant ids that belong to the item set

conditionstring

A Common Expression Language valid condition

eligibleItemsQuantityintegerrequired

Specifies how many items need to be in a basket to form a group. The usage of this configuration depends on a promotion `max_count_type` configuration.

json
{
  "name": "T-Shirts",
  "eligibleItemsQuantity": 1,
  "id": "64cbc70225ae598c0d0d0334",
  "variantIds": [
    1,
    2,
    3
  ],
  "condition": "payload.items.exists(i, 11003 in i.variant.id)"
}

Response

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

idstring

Item Set id

namestring

Name of the item set

variantIdsarray<integer>

A list of variant ids that belong to the item set

conditionstring

A Common Expression Language valid condition

eligibleItemsQuantityinteger

Specifies how many items need to be in a basket to form a group. The usage of this configuration depends on a promotion `max_count_type` configuration.

json
{
  "name": "T-Shirts",
  "eligibleItemsQuantity": 1,
  "id": "64cbc70225ae598c0d0d0334",
  "variantIds": [
    1,
    2,
    3
  ],
  "condition": "payload.items.exists(i, 11003 in i.variant.id)"
}

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

Create an item set for promotions — SCAYLE Admin — Documentation