#rian_api

1 messages ยท Page 1 of 1 (latest)

sleek sageBOT
#

๐Ÿ‘‹ 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/1393287084814504006

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

iron bane
#

Could you share the subscription ID (sub_123) for the scenario described, so that I can take a look how your integration works?

desert ember
#

sub_id: sub_1RjkjvFqArqfkwbM5sqOdHCf

#

our subscription upgrades are done through stripe billing portal flow

iron bane
desert ember
#

hm, i would have to upgrade api versions for this?

#

and i would need to change the subscription data for this rather than choose to do it during upgrade?

iron bane
#

Thank you for the waiting! I'm still testing this

desert ember
#

no problem ๐Ÿ™‚

iron bane
#

Thanks for waiting! Upon testing, the discount is applied during the subscription creation. After updating to the new price, the discount will not be applied as the discount has been applied earlier. It will be treated as updating to the full price regardless which billing_mode is set

desert ember
#

so i guess there's no way to just charge the $5

iron bane
#

Yes, even for flexible option. The discount will not be carried over to the upgrade since it has been applied earlier

desert ember
#

ok thanks, i guess ill try to look for an alternative solution to my issues

iron bane
#

Alternatively, you can set proration_behavior: 'none' and apply one-time invoice item with your own calculated proration with add_invoice_items:

Use Stripe Billing to manage how your customers are charged for partial use of their subscriptions.

sleek sageBOT
desert ember
#

i do it throught the stripe billing portal deep links rather than subscription api calls, i don't think I'm allowed to add any line items

rancid stratus
#

Hi taking over here as river has to step out

desert ember
#

hi duchess, but yeah i feel like im pretty restricted with customer billing portal at the moment, maybe its time for me to build a custom billing page

rancid stratus
#

Yeah if you need to customize proration behavior like in the above example, you're going to have to unfortunately

desert ember
#

i guess you dont have a solution to my original question either

rancid stratus
#

No, my colleague's assessment was correct

desert ember
#

ok thanks, ill try to get my team to prioritize creating a custom page then

#

thank you two for your help ๐Ÿ™‚