younifyd
Menu

Create Campaign From Template

Create Campaign From Template

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

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Create Campaign From Template action (under Templates).
  3. Fill in the fields below, then reference the result from later steps as {{createCampaignFromTemplate.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 {{createCampaignFromTemplate.response.data.<field>}}.

created_resourcesarray<object>

Contains a list of resources that have been added to the project when the campaign 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

campaignany

Details of the created campaign.

objectstring

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

One ofcampaign_setup

json
{
  "campaign": null,
  "created_resources": [
    {
      "id": "string",
      "object": "validation_rules"
    }
  ],
  "object": "campaign_setup"
}

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