kit.subscriptions.applyPromotionCode()| Field | Type | Description |
|---|---|---|
subscriptionId | string | The subscription to discount. |
stripePromotionCodeId | string | A Stripe promotion code ID (starts with promo_), not the plain-text code a customer types. |
retrieve()'s response.| Exception | When |
|---|---|
StripeOperationError | The subscription or promotion code ID does not exist, or the promotion code is no longer active. |
storage adapter is configured, the record is persisted via saveSubscription() after applying.