Creates a promotion tier out of a discount campaign template and adds it to an existing promotion campaign.
To add a promotion tier to a campaign, you need to provide the name in the request and the campaign ID. Other fields are optional. If no other fields are sent, the configuration from the template will be used.
You can send new values of the fields listed below to replace the settings saved in the template. However, you cannot assign an action or an existing validation rule or create a new one in the request. If the template has a validation rule, a new validation rule is always created for the promotion tier. When the promotion tier has been created, then you can:
๐ 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_COUPONtype. You can use this template to create:
๐ Campaign Templates โ Documentation
Read the Campaign Templates documentation to learn more about this feature.
The access token received from the authorization server in the OAuth 2.0 flow.
Pass the campaign template ID that was assigned by Voucherify.
"camp_tpl_zLtn2H9fgcG3NwO7t4PAfHcq"
Only name and campaign_id are required. The rest of the fields will overwrite the template configuration.
Request body schema for POST /v1/templates/campaigns/{campaignTemplateId}/tier-setup.
Unique campaign identifier, assigned by Voucherify. Defines the promotion campaign to which the promotion tier will be added.
Name of the promotion tier.
Text to be displayed to your customers on your website.
The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format.
The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy.
A flag to toggle the promotion tier on or off. You can disable a promotion tier even though it's within the active period defined by the start_date and expiration_date.
true indicates an active promotion tierfalse indicates an inactive promotion tierActivation timestamp defines when the promotion tier starts to be active in ISO 8601 format. Promotion tier is inactive before this date.
"2022-09-23T00:00:00.000Z"
Activation timestamp defines when the promotion tier expires in ISO 8601 format. Promotion tier is inactive after this date.
"2022-09-26T00:00:00.000Z"
Set recurrent time periods when the earning rule is valid. For example, valid for 1 hour every other day.start_date required when including the validity_timeframe.
Integer array corresponding to the particular days of the week in which the voucher is valid.
0 Sunday1 Monday2 Tuesday3 Wednesday4 Thursday5 Friday6 Saturday0, 1, 2, 3, 4, 5, 6 Determines the hours of validity, e.g. to create a happy hours scenario.
Assign a new or update the promotion tier's category using name.
"cat_0c9da30e7116ba6bba"
Assign a new or update the promotion tier's category using id
"cat_0c9da30e7116ba6bba"
Returns the details about the added promotion tier and about the resources that have been created out of the template and added to the project.
Response body schema for POST /v1/templates/campaigns/{campaignTemplateId}/tier-setup.
Contains a list of resources that have been added to the project when the promotion tier has been created out of the template.
The type of the object represented by JSON. This object stores information about the campaign created out of the campaign template.
promotion_tier_setup Details of the added promotion tier.