younifyd
Menu

Add Tier From Template

Add Promotion Tier From Template

POST/v1/templates/campaigns/{campaignTemplateId}/tier-setup

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Add Tier From Template action (under Templates).
  3. Fill in the fields below, then reference the result from later steps as {{addTierFromTemplate.response.data}}.

Request

Path parameters

campaignTemplateIdstringrequired

Pass the campaign template ID that was assigned by Voucherify.

Response

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

created_resourcesarray<object>

Contains a list of resources that have been added to the project when the promotion tier has been created out of the template.

idstring

Unique identifier assigned to the created resource. It is assigned by Voucherify.

objectstring

The type of the created resource.

One ofvalidation_rulesproductskuproducts_collectionsegmentslocation

promotion_tierany

Details of the added promotion tier.

objectstring

The type of the object represented by JSON. This object stores information about the campaign created out of the campaign template.

One ofpromotion_tier_setup

json
{
  "created_resources": [
    {
      "id": "string",
      "object": "validation_rules"
    }
  ],
  "promotion_tier": null,
  "object": "promotion_tier_setup"
}

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

Add Tier From Template — Voucherify — Documentation