Create Campaign Template
curl --request POST \
--url https://{cluster}.voucherify.io/v1/templates/campaigns \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "<string>",
"campaign_id": "<string>",
"promotion_tier_id": "<string>",
"description": "<string>"
}
'{
"id": "camp_tpl_0f887664cfe19f2162",
"name": "Template Halloween Campaigns",
"description": "Reuse every October",
"campaign_type": "DISCOUNT_COUPONS",
"created_at": "2024-10-17T14:37:59.488Z",
"object": "campaign_template"
}Create Campaign Template
Creates a template for a discount or gift campaign, or a promotion tier.
A template stores campaign configuration without the following details:
- Campaign name
- Category
- Code count
The following elements are not supported by campaign templates:
- Redeeming API keys
- Redeeming users
- Customer loyalty tier (legacy loyalty)
- Static segments
Promotion Tiers and Campaign Templates
You can create a campaign template out of a promotion tier. Promotion tiers are converted to a discount campaign with the DISCOUNT_COUPON type. You can use this template to create:
Campaign Templates – Documentation
Read the Campaign Templates documentation to learn more about this feature.
POST
/
v1
/
templates
/
campaigns
Create Campaign Template
curl --request POST \
--url https://{cluster}.voucherify.io/v1/templates/campaigns \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "<string>",
"campaign_id": "<string>",
"promotion_tier_id": "<string>",
"description": "<string>"
}
'{
"id": "camp_tpl_0f887664cfe19f2162",
"name": "Template Halloween Campaigns",
"description": "Reuse every October",
"campaign_type": "DISCOUNT_COUPONS",
"created_at": "2024-10-17T14:37:59.488Z",
"object": "campaign_template"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Body
application/json
Provide details for a campaign template
Request body schema for POST /templates/campaign.
Response
Returns the details of a created campaign template.
Response body schema for POST /v1/templates/campaigns.

