younifyd
Menu

Update Promotion Stack

Update Promotion Stack

PUT/v1/promotions/{campaignId}/stacks/{stackId}

Use it in a workflow

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

Request

Path parameters

campaignIdstringrequired

ID of the promotion campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the `name` of the campaign as the path parameter value, e.g., `Loyalty Campaign`.

stackIdstringrequired

Promotion stack ID.

Request body

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

namestring

Promotion stack name.

tiersobject

Contains the tier configuration. A promotion stack can include up to 30 tiers.

idsarray<string>

Contains the list of tiers in a pre-defined sequence.

hierarchy_modestring

Category hierarchy. Categories with lower hierarchy are processed before categories with higher hierarchy value.

One ofMANUALDefault "MANUAL"

category_idstring

Promotion stack category ID.

json
{
  "name": "string",
  "tiers": {
    "ids": [
      "string"
    ],
    "hierarchy_mode": "MANUAL"
  },
  "category_id": "string"
}

Response

Returns 200 with a any. Read it in later steps with {{updatePromotionStack.response.data.<field>}}.

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