younifyd
Menu

Get promotion item sets for given filters

Get promotion item sets for given filters

GET/promotions/item-sets

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get promotion item sets for given filters action (under PromotionItemSets).
  3. Fill in the fields below, then reference the result from later steps as {{getPromotionItemSetsForGivenFilters.response.data}}.

Request

Query parameters

filters[id]array<string>

Comma-separated list of IDs of entities that should be used for filtering.

filters[name]string

Entity name value.

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
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.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

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

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

Get promotion item sets for given filters — SCAYLE Admin — Documentation