#brometheus_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hi ๐
Have you tested this with the Subscriptions API
Essentially, you are talking about proration, something the Stripe APIs handle for you.
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
half3/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
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
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
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
- review the docs on upgrade/downgrade Subs and handle Prorations
- Write a basic simulation of your scenario in Test mode and use Test Clocks to simulate the passage of time
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.
Is there a way to set a one-off billing cycle with arbitrary start and end dates, so not monthly?
I'm not sure I follow. You can perform an update to the Subscription that resets the billing_cycle_anchor to the current timestamp ("now"). https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_cycle_anchor
So if you made the update halfway through a billing period, the result would be a one-off billing cycle that was not either the full year (first price) or month (second price).
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)
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
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?
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.
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?
Hi, taking over as my teammate needs to step away. Let me catch up.
If you're looking to offer services for free temporarily, you can pause the payment collection on a subscription: https://docs.stripe.com/billing/subscriptions/pause-payment
Since you have a bit of a unique set up, you'd want to test the flow in test mode using Test Clocks: https://docs.stripe.com/billing/testing/test-clocks
This feature enables you to advance time in test mode so you do not have wait to test subscriptions
yeah, familiar with test clocks, such an awesome feature
Agree!