#brometheus_api

1 messages ยท Page 1 of 1 (latest)

spare driftBOT
#

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

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

scenic warren
#

Essentially, you are talking about proration, something the Stripe APIs handle for you.

glossy quarry
#

I explicitly want a $0 invoice at time of upgrade, not an invoice with negative total leading to Stripe Credit

#

ah sorry one typo in my initial post:

Customer on a $20/year plan, they have half 3/4 of their time remaining ($15 value)

#

And want them to be on 1.5 months of the new monthly plan before they receive their first regular monthly invoice ($10)

#

sorry need to step away for a while but if you have an idea for how to solve please share!

#

I'll check back in the next hour or two

scenic warren
#

But how would that work? Since the monthly plan has a monthly billing cycle? That would only happen if you explcitily set the billing cycle anchor to 15 days in the future when you make the update

#

We require synchronous chats here, that is how we help developers

#

This thread will be closed for inactivity but you are welcome to create a new thread

glossy quarry
#

Android plans support this (in fact it's their default) for upgrades, so just wondering how we could emulate that behavior

#

you can check the linked documentation

scenic warren
#

Prorations and customer credits are how we would apply the same behavior. You could specify you want to invoice immediately when you make the update

#

I recommend you

This will allow you to rapidly try out different approaches and validate the behaviors of different configurations so you can be certain you get the behavior you are looking for.

glossy quarry
#

Is there a way to set a one-off billing cycle with arbitrary start and end dates, so not monthly?

scenic warren
glossy quarry
#

I want to produce a one-off 1.5-month-long billing cycle starting now, for a monthly subscription

#

but would also love this billing cycle to act normally w.r.t. future prorations we might do on that billing cycle. So if we canacelled with prorations halfway through that, it would properly refund 0.75 months worth of $10 subscription ($7.50)

scenic warren
#

I think the best approach here would be to test out a few different implementations. I don't think we support a one-off 1.5 month billing cycle but you could have the first month charge $0 due to the proration and the second month charge half the expected amount due to the Customer Credit

glossy quarry
#

I guess the short version is we might be able to hack something that works similarly through one of:

  • trials
  • new subscription with delayed billing cycle anchor
  • subscription schedules
  • messing with the subscription price (potentially setting it to $0 temporarily)
  • pausing the subscription?

But this isn't something that's easily natively supported by Stripe?

scenic warren
#

I think Subscription Schedules is actually likely to be your best bet. It offers the greatest flexibilty here but that comes at a cost of increased complexity. We don't natively support a one-off billing cycle approach using the Subscription & Price objects.

spare driftBOT
glossy quarry
#

Is there a way to "pause" all invoices for that 1.5 month duration, then we reactivate as normal at the end using subscription schedules?

atomic current
#

Hi, taking over as my teammate needs to step away. Let me catch up.

glossy quarry
#

yeah, familiar with test clocks, such an awesome feature

atomic current
#

Agree!