younifyd
Menu

List Promotion Stacks In Campaign

List Promotion Stacks in Campaign

GET/v1/promotions/{campaignId}/stacks

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the List Promotion Stacks In Campaign action (under Promotions).
  3. Fill in the fields below, then reference the result from later steps as {{listPromotionStacksInCampaign.response.data}}.

Request

Path parameters

campaignIdstringrequired

Unique campaign ID.

Response

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

objectstring

The type of the object represented by JSON. This object stores information about promotion stacks in a dictionary.

One oflistDefault "list"

data_refstring

Identifies the name of the attribute that contains the array of promotion stack objects.

One ofdataDefault "data"

dataarray<any>

Contains array of promotion stack objects.

totalinteger

Total number of promotion stacks.

json
{
  "object": "list",
  "data_ref": "data",
  "data": [
    null
  ],
  "total": 0
}

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