Promo Codes

Activate Promo Code

Changed on

Turns an inactive promo code back on so it can be redeemed at checkout.

post/promo_codes/{id}/activate

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

Promo code ID (promo_ tag).

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Response

promo code activated

PromoCode required
account, AccountSummary required

Account that owns the promo code.

affiliate, PromoCodeAffiliate nullable required
amount_off, number required

Discount amount. Percentage discounts are represented as a decimal fraction.

churned_users_only, boolean required

Whether the promo code is restricted to churned customers.

code, string nullable required

Code entered at checkout.

created_at, string required

When the promo code was created, as an ISO 8601 timestamp.

currency, 'usd' | 'sgd' | 'inr' | 'aud' | 'brl' | 'cad' | 'dkk' | 'eur' | 'nok' | 'gbp' | 'sek' | 'chf' | 'hkd' | 'huf' | 'jpy' | 'mxn' | 'myr' | 'pln' | 'czk' | 'nzd' | 'aed' | 'eth' | 'ape' | 'cop' | 'ron' | 'thb' | 'bgn' | 'idr' | 'dop' | 'php' | 'try' | 'krw' | 'twd' | 'vnd' | 'pkr' | 'clp' | 'uyu' | 'ars' | 'zar' | 'dzd' | 'tnd' | 'mad' | 'kes' | 'kwd' | 'jod' | 'all' | 'xcd' | 'amd' | 'bsd' | 'bhd' | 'bob' | 'bam' | 'khr' | 'crc' | 'xof' | 'egp' | 'etb' | 'gmd' | 'ghs' | 'gtq' | 'gyd' | 'ils' | 'jmd' | 'mop' | 'mga' | 'mur' | 'mdl' | 'mnt' | 'nad' | 'ngn' | 'mkd' | 'omr' | 'pyg' | 'pen' | 'qar' | 'rwf' | 'sar' | 'rsd' | 'lkr' | 'tzs' | 'ttd' | 'uzs' | 'rub' | 'btc' | 'cny' | 'usdt' | 'kzt' | 'awg' | 'whop_usd' | 'xau' | 'hnl' required

Currency used for a fixed-amount discount.

duration, 'forever' | 'once' | 'repeating' required

How long the discount applies.

existing_memberships_only, boolean required

Whether the promo code applies only to existing memberships.

expires_at, string nullable required

When the promo code expires, as an ISO 8601 timestamp.

id, string required

Promo code ID, prefixed promo_.

metadata, object required

Custom key-value metadata stored on the promo code.

new_users_only, boolean required

Whether the promo code is restricted to new customers.

one_per_customer, boolean required

Whether each customer may redeem the promo code only once.

product, PromoCodeProduct nullable required
promo_duration_months, integer nullable required

Billing intervals the discount applies to.

promo_type, 'percentage' | 'flat_amount' required

Whether the discount is percentage-based or a fixed amount.

status, 'active' | 'inactive' | 'archived' required

Promo code lifecycle status.

stock, integer required

Maximum uses when stock is limited.

unlimited_stock, boolean required

Whether the promo code has no redemption limit.

updated_at, string required

When the promo code was updated, as an ISO 8601 timestamp.

uses, integer required

Memberships that used the promo code.

Example response

{
  "account": {
    "id": "biz_xxxxxxxxxxxxxx",
    "title": "Shine Time Auto Detailing"
  },
  "affiliate": {
    "id": "aff_xxxxxxxxxxxxxx",
    "user": {
      "id": "user_xxxxxxxxxxxxxx",
      "name": "Dana Whitfield",
      "profile_pic": "https://ui-avatars.com/api/",
      "username": "danawhitfield"
    }
  },
  "amount_off": 0.1,
  "code": "welcome",
  "created_at": "2026-01-01T12:00:00.000Z",
  "currency": "usd",
  "duration": "repeating",
  "expires_at": "2026-01-01T12:00:00.000Z",
  "id": "promo_xxxxxxxxxxxxxx",
  "metadata": {},
  "new_users_only": true,
  "one_per_customer": true,
  "product": {
    "id": "prod_xxxxxxxxxxxxxx",
    "title": "Ceramic Coating Masterclass"
  },
  "promo_duration_months": 1,
  "promo_type": "percentage",
  "status": "active",
  "stock": 25,
  "updated_at": "2026-01-01T12:00:00.000Z",
  "uses": 1
}

Changes