#kylekeesling
1 messages · Page 1 of 1 (latest)
Just want to confirm - you're looking for a way to guarantee that your Subscriptions ALWAYS charge at midnight on the 1st of the month for your specific timezone?
If that's what you're trying to do then it's actually deceptively hard (because of timezones) - right now our Subscriptions are based on UTC time (which doesn't care about timezones at all)
Yes that’s the goal. I have some that do work that way but most of them are 1 hour early
I guess even if it’s are few hours into the morning it’s ok. I just don’t want them to happen before the 1st
That helps then - personally, I'd recommend that you pick a time like 5 AM (in your timezone) to anchor on.
and I'd also recommend you make sure that the time you pick lands on the 1st in UTC time as well (since you can get into weird situations where if you pick a time that's on the 1st in your timezone, but the 31st/30th/28th in UTC then sometimes the Subscriptions can get in a weird state)
ok that makes sense
can you give me an idea of the API call I need to make to ensure this? Im worried that I'll accidentally trigger a proration or something
or can it be done in the UI? (I assume it cant)
Hi taking over for karbi as they have to step out. What exactly do you need to do through the API? We have this upcoming invoice call which let's you simulate a change to see what the upcoming invoice would look like: https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I want to update a number of my subscriptions billing cycle to ensure they end on the first of the month
and I'd like to do it without triggering a proration, essentially because right now the close an hour or two before I need them too - pesky time zones
You can always set proration_behavior to none: https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How can I reset the billing_cycle_anchor of an existing subscription to a new date/time?
It seems like the only option is to set it to "now" but I'd like to update them today so that the next round of invoices on April 1st close properly
Subscription schedule might be better for you then: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#resetting-anchor
Im not sure, that seems more complicated than what I need to do, I just need to slightly tweak the next time a subscription closes out
If you want to reset the billing cycle anchor of the subscription to a time other than "now" that's what you need to do
what about doing this? https://stripe.com/docs/billing/subscriptions/billing-cycle#using-a-trial-to-change-the-billing-cycle
Yeah introducing a trial to do it would work too. Up to you
There's just not a way to change billing_cycle_anchor to anything except for "now" or "unchanged"
Im just having trouble getting my head around schedules, I dont need to add any items, and it seems like SubSchedules require that
That's fine. It's true it is a bit intimidating at first since there's so many different options available
do you know how trials effect usage-based billing?
Should work. Just see this note: https://stripe.com/docs/billing/subscriptions/billing-cycle#metered-billing
ok cool
thanks for the help, I think Ill jump into test mode and see if I can't figure something out
No problem. Good luck!