Apply Promo Code to Membership
Applies a promo code to an active or trialing membership that does not already have one and has exactly one recurring item, for Stripe-billed memberships and memberships billed by Whop’s billing engine. The discount lands on the next invoice and follows the code’s duration (once, repeating, or forever).
Autorisations
An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.
En-têtes
A unique key that makes this request safe to retry. See Idempotent requests.
255"d9105228-4a08-46b1-8b91-42fed586d383"
Corps
Réponse
promo code applied
The membership's latest lifecycle event, such as renewing_on or canceled_on. Pair it with most_recent_action_at. null when none is recorded.
canceled_on, finished_split_pay_at, canceling_on, ending_on, renewing_on, past_due, next_payment_attempt, paused_at, trial_ends_at, unresolved_at, trial_canceling_on, null "renewing_on"
Billing state of the membership. active/trialing memberships grant access; past_due is the grace period after a failed payment; completed one-time purchases keep access; canceled/expired do not.
trialing, active, past_due, completed, canceled, expired, unresolved "active"

