Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Unique campaign ID assigned by Voucherify.
"camp_rRsfatlwN7unSeUIJDCYedal"
Body
Specify the promotion tier parameters.
Request body schema for POST v1/v1/promotions/{campaignId}/tiers
.
This is an object representing a promotion tier. Promotion tiers are always assigned to a campaign and cannot be used standalone.
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 tier
Activation 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
Saturday
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"
Contains details about the discount applied by the promotion tier.
Validation Rule Assignments List
Response
Returns a promotion tier object if the promotion tier was successfully added to the campaign.
Response body schema for POST v1/promotions/{campaignId}/tiers
.
This is an object representing a promotion tier. Promotion tiers are always assigned to a campaign and cannot be used standalone.
Unique promotion tier ID.
"promo_63fYCt81Aw0h7lzyRkrGZh9p"
Timestamp representing the date and time when the promotion tier was created. The value is shown in the ISO 8601 format.
"2021-12-15T11:34:01.333Z"
Timestamp representing the date and time when the promotion tier was updated. The value is shown in the ISO 8601 format.
"2022-02-09T09:20:05.603Z"
Name of the promotion tier.
Text to be displayed to your customers on your website.
Contains details about the discount applied by the promotion tier.
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.
Promotion unique ID.
Contains details about promotion tier's parent campaign.
Promotion tier's parent campaign's unique ID.
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 tier
Activation 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
Saturday
Determines the hours of validity, e.g. to create a happy hours scenario.
Contains statistics about promotion tier redemptions and orders.
The type of the object represented by JSON. This object stores information about the promotion tier.
Validation Rule Assignments List
Promotion tier category ID.
"cat_0c9da30e7116ba6bba"