Skip to main content
POST
/
v1
/
promotions
/
tiers
/
{promotionTierId}
/
enable
Enable Promotion Tier
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/promotions/tiers/{promotionTierId}/enable \
  --header 'Authorization: Bearer <token>' \
  --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:32:07.712Z",
  "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": true,
  "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
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

promotionTierId
string
required
Example:

Response

id
string
Example:
created_at
string<date-time>
Example:
updated_at
string<date-time>
Example:
name
string
banner
string
action
object
metadata
object
hierarchy
integer
promotion_id
string
campaign
object
campaign_id
string
active
boolean
start_date
string<date-time>
Example:
expiration_date
string<date-time>
Example:
validity_timeframe
object
validity_day_of_week
enum<integer>[]
validity_hours
object
summary
object
object
string
default:promotion_tier
validation_rule_assignments
object
category_id
string
Example:
categories
Category · object[]