Add Promotion Tier to Campaign
curl --request POST \
--url https://{cluster}.voucherify.io/v1/promotions/{campaignId}/tiers \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Order more than $100",
"banner": "Order more than $100",
"action": {
"discount": {
"type": "AMOUNT",
"amount_off": 3000,
"effect": "APPLY_TO_ORDER"
}
},
"metadata": {},
"active": true,
"start_date": "2022-09-21T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_timeframe": {
"interval": "P2D",
"duration": "P1D"
},
"validity_day_of_week": [
1,
2,
3,
4
],
"validation_rules": [
"val_q8qUBMOh5qIQ"
]
}
'{
"id": "promo_JcYGIKJsnv0SpZcx2njZm69x",
"created_at": "2022-09-22T11:21:57.808Z",
"name": "Order more than $100",
"banner": "Order more than $100",
"action": {
"discount": {
"type": "AMOUNT",
"amount_off": 3000,
"effect": "APPLY_TO_ORDER"
}
},
"metadata": {},
"hierarchy": 6,
"campaign": {
"id": "camp_VEL7UX0jZjrvLx3hfNZBVzpq",
"start_date": "2022-09-21T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_day_of_week": [
1,
2,
3,
4,
5
],
"active": true,
"object": "campaign"
},
"campaign_id": null,
"active": true,
"start_date": "2022-09-21T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_timeframe": {
"interval": "P2D",
"duration": "P1D"
},
"validity_day_of_week": [
1,
2,
3,
4
],
"summary": {
"redemptions": {
"total_redeemed": 0
},
"orders": {
"total_amount": 0,
"total_discount_amount": 0
}
},
"object": "promotion_tier",
"validation_rule_assignments": {
"object": "list",
"data_ref": "data",
"data": [
{
"id": "asgm_AmeYPmiLZKaIxq01",
"rule_id": "val_q8qUBMOh5qIQ",
"related_object_id": "promo_JcYGIKJsnv0SpZcx2njZm69x",
"related_object_type": "promotion_tier",
"created_at": "2022-09-22T11:21:57.808Z",
"object": "validation_rules_assignment"
}
],
"total": 1
}
}Add Promotion Tier to Campaign
This method allows you to add a new promotion tier to an existing campaign. The tier hierarchy will be set as the next consequtive integer following the lowest ranking tier.
POST
/
v1
/
promotions
/
{campaignId}
/
tiers
Add Promotion Tier to Campaign
curl --request POST \
--url https://{cluster}.voucherify.io/v1/promotions/{campaignId}/tiers \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"name": "Order more than $100",
"banner": "Order more than $100",
"action": {
"discount": {
"type": "AMOUNT",
"amount_off": 3000,
"effect": "APPLY_TO_ORDER"
}
},
"metadata": {},
"active": true,
"start_date": "2022-09-21T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_timeframe": {
"interval": "P2D",
"duration": "P1D"
},
"validity_day_of_week": [
1,
2,
3,
4
],
"validation_rules": [
"val_q8qUBMOh5qIQ"
]
}
'{
"id": "promo_JcYGIKJsnv0SpZcx2njZm69x",
"created_at": "2022-09-22T11:21:57.808Z",
"name": "Order more than $100",
"banner": "Order more than $100",
"action": {
"discount": {
"type": "AMOUNT",
"amount_off": 3000,
"effect": "APPLY_TO_ORDER"
}
},
"metadata": {},
"hierarchy": 6,
"campaign": {
"id": "camp_VEL7UX0jZjrvLx3hfNZBVzpq",
"start_date": "2022-09-21T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_day_of_week": [
1,
2,
3,
4,
5
],
"active": true,
"object": "campaign"
},
"campaign_id": null,
"active": true,
"start_date": "2022-09-21T00:00:00.000Z",
"expiration_date": "2022-09-30T00:00:00.000Z",
"validity_timeframe": {
"interval": "P2D",
"duration": "P1D"
},
"validity_day_of_week": [
1,
2,
3,
4
],
"summary": {
"redemptions": {
"total_redeemed": 0
},
"orders": {
"total_amount": 0,
"total_discount_amount": 0
}
},
"object": "promotion_tier",
"validation_rule_assignments": {
"object": "list",
"data_ref": "data",
"data": [
{
"id": "asgm_AmeYPmiLZKaIxq01",
"rule_id": "val_q8qUBMOh5qIQ",
"related_object_id": "promo_JcYGIKJsnv0SpZcx2njZm69x",
"related_object_type": "promotion_tier",
"created_at": "2022-09-22T11:21:57.808Z",
"object": "validation_rules_assignment"
}
],
"total": 1
}
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Body
application/json
Specify the promotion tier parameters.
Request body schema for POST v1/v1/promotions/{campaignId}/tiers.
Response
200 - application/json
Returns a promotion tier object if the promotion tier was successfully added to the campaign.
Response body schema for POST v1/promotions/{campaignId}/tiers.

