Disable Promotion Tier
curl --request POST \
--url https://{cluster}.voucherify.io/v1/promotions/tiers/{promotionTierId}/disable \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "promo_NzjTc3ZXTe7md5SziK3uYtei",
"created_at": "2022-09-21T11:38:34.962Z",
"updated_at": "2022-09-22T10:34:09.529Z",
"name": "Order more than $100",
"banner": "Order more than $100",
"action": {
"discount": {
"type": "AMOUNT",
"amount_off": 3000,
"effect": "APPLY_TO_ORDER"
}
},
"metadata": {},
"hierarchy": 1,
"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": false,
"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
],
"summary": {
"redemptions": {
"total_redeemed": 2
},
"orders": {
"total_amount": 37650,
"total_discount_amount": 6000
}
},
"object": "promotion_tier",
"validation_rule_assignments": null
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find promotion_tier with id promo_NzjTc3ZXTe7md5SziK3uYte",
"request_id": "v-0bbaea52be14cc9782",
"resource_id": "promo_NzjTc3ZXTe7md5SziK3uYte",
"resource_type": "promotion_tier"
}Disable Promotion Tier
This method disables a promotion tier, i.e. makes the active parameter = false.
POST
/
v1
/
promotions
/
tiers
/
{promotionTierId}
/
disable
Disable Promotion Tier
curl --request POST \
--url https://{cluster}.voucherify.io/v1/promotions/tiers/{promotionTierId}/disable \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "promo_NzjTc3ZXTe7md5SziK3uYtei",
"created_at": "2022-09-21T11:38:34.962Z",
"updated_at": "2022-09-22T10:34:09.529Z",
"name": "Order more than $100",
"banner": "Order more than $100",
"action": {
"discount": {
"type": "AMOUNT",
"amount_off": 3000,
"effect": "APPLY_TO_ORDER"
}
},
"metadata": {},
"hierarchy": 1,
"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": false,
"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
],
"summary": {
"redemptions": {
"total_redeemed": 2
},
"orders": {
"total_amount": 37650,
"total_discount_amount": 6000
}
},
"object": "promotion_tier",
"validation_rule_assignments": null
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find promotion_tier with id promo_NzjTc3ZXTe7md5SziK3uYte",
"request_id": "v-0bbaea52be14cc9782",
"resource_id": "promo_NzjTc3ZXTe7md5SziK3uYte",
"resource_type": "promotion_tier"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Response
Returns the promotion tier object with an updated active parameter.
Response body schema for POST v1/promotions/tiers/{promotionTierId}/disable.

