#thebeard_api

1 messages ¡ Page 1 of 1 (latest)

wind jewelBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1360257206553022596

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

timber gate
#

Hi, taking a look here

versed granite
#

but when i retrieve configuration. it does promotion codes allowed in the configuration via the api

#

request id : req_hw3IJInM93xB68

timber gate
#

It looks like you recently enabled it. Can you create another Customer Portal Session and share the screenshot from the UI please?

versed granite
#

yea, just did not more than an hour ago

timber gate
#

Can you share the request ID for creating this new session please?

versed granite
#

i see the issue. i see that discounts are allowed on subscription_update_confirm and not on subscription_update. and the stripe portal does not allow coupons and instead we need to pass coupon via api. am i correct here?

#

is there a way to apply coupons in portal sessions similar to checkout?

#

request id: req_I6URq764T3rOeN

timber gate
#

Let me test something real quick

#

Can you click on 'Continue' and on the nesr page, you should see the promo option like this

#

Did it work?

versed granite
#

nice, i see it now

#

but it seems like i have to update quantity to enable the continue

#

so my use case is this
user is in trialng status, i ask them to update payment method, and while they add for payment method, they can add a promotion code for when trial ends

timber gate
#

I think that is because the subscription has to be updated, otherwise we're showing the current subscription they are on.

#

There is not a functionality to add a promotion code when they only update the payment method no. You can control this on your end, and potentially add a discounted price to update to after they add a payment method.

versed granite