#pleasant-customerportal-promotioncode

1 messages · Page 1 of 1 (latest)

steady sundialBOT
raw plaza
#

pleasant-customerportal-promotioncode

tight cove
#

hello?

raw plaza
#

Hello

tight cove
#

i am trying to allow users add promotional codes in their customer portal, i cant find any way to do this, its for a subscription

#

session = await stripe.billingPortal.sessions.create({ customer: user.stripeCustomerId, return_url: '', }); this is how i create the portal session

raw plaza
tight cove
#

there is no option for promotioncode

raw plaza
#

there is

tight cove
#

i cant find it, under ?

raw plaza
#

it's solely during the flow of changing your Subscription

#

there isn't a way to add a PromotionCode only

tight cove
#

hmm i dont really get the flow of changing your subscription? my app only has one subscription

raw plaza
#

We do not support just adding a PromotionCode to an existing Subscription on its own. We only allow this when letting you change your Subscription's underlying Price or Quantity I think

tight cove
#

gotten! await stripe.subscriptions.update(user.stripeSubscriptionId, { coupon: promoCode.coupon.id, }); i think this is a valid option but it is only valid via api

raw plaza
#

yes that's correct

tight cove
#

alright thanks