younifyd
Menu

Get an promotion item set by id

Get an promotion item set by id

GET/promotions/item-sets/{promotionItemSetId}

Use it in a workflow

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

Request

Path parameters

promotionItemSetIdstringrequired

Promotion ItemSet ID

Response

Returns 200 with an object. Read it in later steps with {{getAnPromotionItemSetById.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.

Get an promotion item set by id — SCAYLE Admin — Documentation